Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009133/0.0009133, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9813/0.9813, allocations: 177.1 MB / 200.5 MB, free: 5.832 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 168.6 kB / 257 MB, free: 13.2 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02457/0.02457, allocations: 6.656 MB / 320.1 MB, free: 11.7 MB / 298.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 391.7 MB, free: 4.023 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.387e-05/2.595e-05, allocations: 9.828 kB / 391.7 MB, free: 4.016 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01933/0.01936, allocations: 16.03 MB / 407.7 MB, free: 3.914 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.03326, allocations: 5.481 MB / 413.2 MB, free: 14.42 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003106/0.03637, allocations: 115.4 kB / 413.3 MB, free: 14.3 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003067/0.03943, allocations: 1.223 MB / 414.6 MB, free: 13.07 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00399/0.04342, allocations: 1.634 MB / 416.2 MB, free: 11.43 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.04512, allocations: 1.02 MB / 417.2 MB, free: 10.41 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00443/0.04955, allocations: 4.979 MB / 422.2 MB, free: 5.406 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002375/0.05193, allocations: 1.917 MB / 424.1 MB, free: 3.426 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003992/0.05592, allocations: 3.216 MB / 427.3 MB, free: 208 kB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.0585, allocations: 2.249 MB / 429.6 MB, free: 13.95 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006659/0.05917, allocations: 0.5703 MB / 430.1 MB, free: 13.38 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.06028, allocations: 0.7847 MB / 430.9 MB, free: 12.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007696/0.06105, allocations: 1.355 MB / 432.3 MB, free: 11.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.06238, allocations: 1.684 MB / 434 MB, free: 9.547 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003414/0.06579, allocations: 3.945 MB / 437.9 MB, free: 5.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.0658, allocations: 3.938 kB / 437.9 MB, free: 5.586 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.0658, allocations: 4 kB / 437.9 MB, free: 5.582 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.317e-05/0.06583, allocations: 0 / 437.9 MB, free: 5.582 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.006065/0.0719, allocations: 5.276 MB / 443.2 MB, free: 244 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.07193, allocations: 8.031 kB / 443.2 MB, free: 236 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1456/0.2175, allocations: 1.446 MB / 444.6 MB, free: 159.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006775/0.2243, allocations: 2.703 MB / 447.3 MB, free: 158.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/0.2246, allocations: 276.5 kB / 447.6 MB, free: 158.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008995/0.2255, allocations: 371.6 kB / 448 MB, free: 158 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005933/0.2314, allocations: 2.945 MB / 450.9 MB, free: 156.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.425e-05/0.2315, allocations: 5.906 kB / 450.9 MB, free: 156.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/0.2317, allocations: 153.3 kB / 451.1 MB, free: 156.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.2319, allocations: 155 kB / 451.2 MB, free: 156.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00374/0.2357, allocations: 1.404 MB / 452.6 MB, free: 156.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.2509, allocations: 12.59 MB / 465.2 MB, free: 147.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002517/0.2534, allocations: 2.026 MB / 467.3 MB, free: 145.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.2551, allocations: 1.238 MB / 468.5 MB, free: 144.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004327/0.2594, allocations: 2.875 MB / 471.4 MB, free: 141.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.2594, allocations: 47.58 kB / 471.4 MB, free: 141.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 3.476e-06/0.2594, allocations: 0 / 471.4 MB, free: 141.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=159): time 0.007284/0.2667, allocations: 4.217 MB / 475.6 MB, free: 137.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.2667, allocations: 68.72 kB / 475.7 MB, free: 137.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.2685, allocations: 1.784 MB / 477.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.782e-05/0.2686, allocations: 49.7 kB / 477.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006345/0.2692, allocations: 1.899 MB / 479.4 MB, free: 133.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003104/0.2695, allocations: 0.5877 MB / 480 MB, free: 132.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000369/0.2699, allocations: 434 kB / 480.4 MB, free: 132.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.2699, allocations: 480.7 kB / 480.9 MB, free: 132 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005145/0.2704, allocations: 320.2 kB / 481.2 MB, free: 131.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008025/0.2712, allocations: 1.44 MB / 482.7 MB, free: 129.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.2728, allocations: 1.931 MB / 484.6 MB, free: 127.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/0.2728, allocations: 11.06 kB / 484.6 MB, free: 127.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.002747/0.2755, allocations: 2.026 MB / 486.6 MB, free: 125.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.2756, allocations: 16 kB / 486.6 MB, free: 125.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.699e-05/0.2756, allocations: 24.75 kB / 486.7 MB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006042/0.2762, allocations: 266.6 kB / 486.9 MB, free: 125 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009038/0.2771, allocations: 0.4914 MB / 487.4 MB, free: 124.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.2801, allocations: 5.047 MB / 492.5 MB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.2813, allocations: 104 kB / 492.6 MB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.2815, allocations: 104 kB / 492.7 MB, free: 119 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009329/0.2824, allocations: 303.7 kB / 493 MB, free: 118.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003223/0.2827, allocations: 278.5 kB / 493.2 MB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.2846, allocations: 1.418 MB / 494.7 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.2846, allocations: 16 kB / 494.7 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2846, allocations: 4 kB / 494.7 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.2846, allocations: 7.969 kB / 494.7 MB, free: 117 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.2894, allocations: 4 MB / 498.7 MB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.2894, allocations: 4 kB / 498.7 MB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006297/0.2901, allocations: 271.8 kB / 499 MB, free: 112.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000593/0.2907, allocations: 270.5 kB / 499.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.085e-05/0.2908, allocations: 39.98 kB / 499.3 MB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.2941, allocations: 7.288 MB / 0.4947 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2941, allocations: 4 kB / 0.4947 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.2966, allocations: 1.913 MB / 0.4965 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006859/0.2973, allocations: 402.4 kB / 0.4969 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.2975, allocations: 28 kB / 0.497 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005062/0.298, allocations: 63.89 kB / 0.497 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.2982, allocations: 121.1 kB / 0.4971 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.417e-05/0.2983, allocations: 43.98 kB / 0.4972 GB, free: 102.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.2993, allocations: 0.9828 MB / 0.4981 GB, free: 101.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2993, allocations: 0 / 0.4981 GB, free: 101.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00164/0.3009, allocations: 0.664 MB / 0.4988 GB, free: 100.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002795/0.3012, allocations: 165 kB / 0.4989 GB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.3031, allocations: 1.644 MB / 0.5005 GB, free: 98.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3031, allocations: 0 / 0.5005 GB, free: 98.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009398/0.3041, allocations: 1.199 MB / 0.5017 GB, free: 97.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.3053, allocations: 0.4962 MB / 0.5022 GB, free: 96.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006805/0.3121, allocations: 5.71 MB / 0.5078 GB, free: 91.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000568/0.3127, allocations: 0.8737 MB / 0.5086 GB, free: 90.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009014/0.3136, allocations: 434.5 kB / 0.509 GB, free: 89.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.3139, allocations: 152.5 kB / 0.5092 GB, free: 89.58 MB / 410.7 MB Notification: Performance of SimCode: time 1.923e-06/0.3139, allocations: 4 kB / 0.5092 GB, free: 89.57 MB / 410.7 MB Notification: Performance of Templates: time 0.03374/0.3476, allocations: 29.71 MB / 0.5382 GB, free: 60.32 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=240 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6423620749264956]