Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008622/0.0008622, allocations: 86.25 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 223.3 MB / 239 MB, free: 5.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 180.5 kB / 290.3 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03321/0.03321, allocations: 8.79 MB / 350.2 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004307/0.0004307, allocations: 9.688 kB / 413.2 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 52.55 MB / 465.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01544/0.125, allocations: 13.93 MB / 479.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.1374, allocations: 4.907 MB / 484.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003892/0.1414, allocations: 83.69 kB / 484.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003703/0.1451, allocations: 0.9285 MB / 485.6 MB, free: 9.617 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005202/0.1504, allocations: 1.282 MB / 486.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.1528, allocations: 0.6674 MB / 487.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006819/0.1596, allocations: 4.645 MB / 492.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004629/0.1643, allocations: 2.46 MB / 494.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002833/0.1672, allocations: 1.459 MB / 496.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003773/0.1709, allocations: 1.887 MB / 498 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001277/0.1723, allocations: 236 kB / 498.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.1748, allocations: 443.7 kB / 498.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.1765, allocations: 0.8796 MB / 499.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.1786, allocations: 0.8395 MB / 0.4887 GB, free: 10.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008668/0.1873, allocations: 6.108 MB / 0.4946 GB, free: 4.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1874, allocations: 8 kB / 0.4946 GB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1874, allocations: 0 / 0.4946 GB, free: 4.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002927/0.1877, allocations: 0 / 0.4946 GB, free: 4.609 MB / 334.1 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.01477/0.2025, allocations: 4.253 MB / 0.4988 GB, free: 292 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.2025, allocations: 15.97 kB / 0.4988 GB, free: 276 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006332/0.2089, allocations: 0.9592 MB / 0.4997 GB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008308/0.2172, allocations: 2.587 MB / 0.5023 GB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004145/0.2177, allocations: 275.4 kB / 0.5025 GB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.2193, allocations: 371.9 kB / 0.5029 GB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.2337, allocations: 4.753 MB / 0.5075 GB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001817/0.2339, allocations: 3.938 kB / 0.5075 GB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/0.235, allocations: 152 kB / 0.5077 GB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002118/0.2352, allocations: 151.4 kB / 0.5078 GB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.246, allocations: 4.034 MB / 0.5118 GB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03445/0.2805, allocations: 15.9 MB / 0.5273 GB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2363/0.5168, allocations: 6.94 MB / 0.5341 GB, free: 56.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002932/0.5198, allocations: 1.533 MB / 0.5356 GB, free: 56.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007241/0.5271, allocations: 4.243 MB / 0.5397 GB, free: 56.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.5271, allocations: 50.19 kB / 0.5397 GB, free: 56.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.028e-06/0.5272, allocations: 3.469 kB / 0.5398 GB, free: 56.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01476/0.5419, allocations: 6.503 MB / 0.5461 GB, free: 54.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.542, allocations: 71.62 kB / 0.5462 GB, free: 54.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004275/0.5463, allocations: 2.216 MB / 0.5483 GB, free: 54.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001688/0.5465, allocations: 56.14 kB / 0.5484 GB, free: 54.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/0.5478, allocations: 1.702 MB / 0.5501 GB, free: 52.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/0.5483, allocations: 0.5437 MB / 0.5506 GB, free: 52.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.5484, allocations: 45.16 kB / 0.5506 GB, free: 52.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.5486, allocations: 385.3 kB / 0.551 GB, free: 52.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.5499, allocations: 0.8246 MB / 0.5518 GB, free: 51.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.5516, allocations: 1.481 MB / 0.5532 GB, free: 50.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001705/0.5533, allocations: 1.088 MB / 0.5543 GB, free: 50.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.5533, allocations: 6.625 kB / 0.5543 GB, free: 50.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004696/0.558, allocations: 2.955 MB / 0.5572 GB, free: 48.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.5581, allocations: 15.77 kB / 0.5572 GB, free: 48.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.492e-05/0.5581, allocations: 19.72 kB / 0.5572 GB, free: 48.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007536/0.5589, allocations: 306 kB / 0.5575 GB, free: 48.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.5604, allocations: 496.3 kB / 0.558 GB, free: 48.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003604/0.5641, allocations: 4.501 MB / 0.5624 GB, free: 44.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.5658, allocations: 87.03 kB / 0.5625 GB, free: 44.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.5659, allocations: 92.03 kB / 0.5626 GB, free: 44.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001817/0.5677, allocations: 1.122 MB / 0.5637 GB, free: 44.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.5681, allocations: 236.3 kB / 0.5639 GB, free: 44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003559/0.5717, allocations: 2.43 MB / 0.5663 GB, free: 42.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.5717, allocations: 20.14 kB / 0.5663 GB, free: 42.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5717, allocations: 3.562 kB / 0.5663 GB, free: 42.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5717, allocations: 11.97 kB / 0.5663 GB, free: 42.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006776/0.5785, allocations: 5.786 MB / 0.5719 GB, free: 38.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.5785, allocations: 3.812 kB / 0.5719 GB, free: 38.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.5796, allocations: 270.6 kB / 0.5722 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007191/0.5804, allocations: 332.6 kB / 0.5725 GB, free: 38.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.639e-05/0.5805, allocations: 39.98 kB / 0.5726 GB, free: 38.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004624/0.5851, allocations: 6.438 MB / 0.5788 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5851, allocations: 7.984 kB / 0.5789 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004391/0.5895, allocations: 3.529 MB / 0.5823 GB, free: 28.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009528/0.5905, allocations: 0.4966 MB / 0.5828 GB, free: 27.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.5908, allocations: 33.47 kB / 0.5828 GB, free: 27.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009635/0.5917, allocations: 75.95 kB / 0.5829 GB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.5919, allocations: 121 kB / 0.583 GB, free: 27.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.043e-05/0.592, allocations: 47.98 kB / 0.5831 GB, free: 27.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001923/0.594, allocations: 1.495 MB / 0.5845 GB, free: 25.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.594, allocations: 0 / 0.5845 GB, free: 25.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002211/0.5962, allocations: 0.6523 MB / 0.5851 GB, free: 25.16 MB / 366.1 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 (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000282/0.5965, allocations: 163.8 kB / 0.5853 GB, free: 25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003407/0.5999, allocations: 2.439 MB / 0.5877 GB, free: 22.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5999, allocations: 0 / 0.5877 GB, free: 22.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/0.6016, allocations: 1.42 MB / 0.5891 GB, free: 21.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.604, allocations: 0.5535 MB / 0.5896 GB, free: 20.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.6143, allocations: 7.803 MB / 0.5972 GB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001967/0.6163, allocations: 2.519 MB / 0.5997 GB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001917/0.6183, allocations: 0.5116 MB / 0.6002 GB, free: 9.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004021/0.6187, allocations: 155.4 kB / 0.6003 GB, free: 9.477 MB / 366.1 MB Notification: Performance of SimCode: time 1.123e-06/0.6187, allocations: 0 / 0.6003 GB, free: 9.477 MB / 366.1 MB Notification: Performance of Templates: time 0.05295/0.6716, allocations: 30.14 MB / 0.6298 GB, free: 11.62 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) Environment - environmentSimulation: