Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.395/1.395, allocations: 223.3 MB / 239 MB, free: 5.434 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.001133/0.001132, allocations: 184.5 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03375/0.03375, allocations: 8.798 MB / 350.2 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 10 kB / 413.2 MB, free: 43.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 52.56 MB / 465.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.02914/0.1314, allocations: 22.23 MB / 488 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01465/0.1461, allocations: 7.317 MB / 495.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004409/0.1505, allocations: 159.6 kB / 495.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004995/0.1555, allocations: 1.43 MB / 496.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008172/0.1637, allocations: 2.506 MB / 499.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004351/0.1681, allocations: 1.313 MB / 0.489 GB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01673/0.1848, allocations: 10.82 MB / 0.4995 GB, free: 15.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02697/0.2118, allocations: 13.8 MB / 0.513 GB, free: 1.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006012/0.2179, allocations: 3.52 MB / 0.5164 GB, free: 14.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00644/0.2243, allocations: 3.977 MB / 0.5203 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001934/0.2263, allocations: 0.5195 MB / 0.5208 GB, free: 9.676 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00395/0.2303, allocations: 0.8668 MB / 0.5217 GB, free: 8.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002632/0.2329, allocations: 1.662 MB / 0.5233 GB, free: 7.141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00318/0.2361, allocations: 1.705 MB / 0.525 GB, free: 5.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.264/0.5001, allocations: 15.31 MB / 0.5399 GB, free: 21.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.5001, allocations: 3.75 kB / 0.5399 GB, free: 21.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.5001, allocations: 1 kB / 0.5399 GB, free: 21.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000643/0.5008, allocations: 0 / 0.5399 GB, free: 21.88 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03456/0.5354, allocations: 9.132 MB / 0.5488 GB, free: 17.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.5354, allocations: 12.41 kB / 0.5489 GB, free: 17.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03348/0.5689, allocations: 5.66 MB / 0.5544 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01704/0.586, allocations: 5.599 MB / 0.5599 GB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008642/0.587, allocations: 0.5818 MB / 0.5604 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004177/0.5911, allocations: 0.7699 MB / 0.5612 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04553/0.6367, allocations: 12.71 MB / 0.5736 GB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006344/0.6374, allocations: 15.77 kB / 0.5736 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004061/0.6415, allocations: 327.5 kB / 0.5739 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007244/0.6422, allocations: 0.4919 MB / 0.5744 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03136/0.6736, allocations: 12.18 MB / 0.5863 GB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09374/0.7674, allocations: 43.82 MB / 0.6291 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02618/0.7936, allocations: 25.14 MB / 0.6536 GB, free: 15.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006232/0.7999, allocations: 2.964 MB / 0.6565 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006424/0.8006, allocations: 247.3 kB / 0.6568 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005519/0.8061, allocations: 2.578 MB / 0.6593 GB, free: 9.227 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 1.052e-05/0.8062, allocations: 0 / 0.6593 GB, free: 9.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.04866/0.8548, allocations: 19.68 MB / 0.6785 GB, free: 5.449 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.8551, allocations: 351.5 kB / 0.6788 GB, free: 5.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005402/0.8605, allocations: 3.503 MB / 0.6823 GB, free: 1.527 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006904/0.8612, allocations: 85.7 kB / 0.6823 GB, free: 1.438 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.8637, allocations: 3.384 MB / 0.6856 GB, free: 14.03 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001833/0.8656, allocations: 1.35 MB / 0.687 GB, free: 12.69 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003797/0.866, allocations: 112 kB / 0.6871 GB, free: 12.58 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003605/0.8663, allocations: 0.5258 MB / 0.6876 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004099/0.8704, allocations: 2.533 MB / 0.6901 GB, free: 9.512 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005689/0.8761, allocations: 4.497 MB / 0.6944 GB, free: 4.164 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005672/0.8818, allocations: 3.533 MB / 0.6979 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.191e-05/0.8819, allocations: 27.53 kB / 0.6979 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01405/0.896, allocations: 8.232 MB / 0.706 GB, free: 8.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.234e-05/0.8961, allocations: 53.7 kB / 0.706 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.77e-05/0.8962, allocations: 60 kB / 0.7061 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00253/0.8987, allocations: 1.006 MB / 0.7071 GB, free: 7.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004536/0.9033, allocations: 1.257 MB / 0.7083 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2288/1.132, allocations: 8.213 MB / 0.7163 GB, free: 167.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00534/1.137, allocations: 363.5 kB / 0.7167 GB, free: 167.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/1.139, allocations: 266.2 kB / 0.7169 GB, free: 167.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006726/1.145, allocations: 2.898 MB / 0.7197 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/1.147, allocations: 391.3 kB / 0.7201 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/1.158, allocations: 6.179 MB / 0.7261 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.066e-05/1.158, allocations: 39.5 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.952e-05/1.158, allocations: 10.5 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.991e-05/1.158, allocations: 23.42 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02334/1.181, allocations: 14.91 MB / 0.7408 GB, free: 160.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/1.182, allocations: 3.875 kB / 0.7408 GB, free: 160.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002444/1.184, allocations: 0.6846 MB / 0.7414 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/1.186, allocations: 0.8776 MB / 0.7423 GB, free: 160 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/1.186, allocations: 85.59 kB / 0.7424 GB, free: 159.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008841/1.195, allocations: 7.175 MB / 0.7494 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.195, allocations: 3.625 kB / 0.7494 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/1.209, allocations: 8.756 MB / 0.7579 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002571/1.211, allocations: 0.9414 MB / 0.7589 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.213, allocations: 72 kB / 0.7589 GB, free: 150.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/1.215, allocations: 201.9 kB / 0.7591 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005439/1.215, allocations: 268.5 kB / 0.7594 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002057/1.215, allocations: 119 kB / 0.7595 GB, free: 149.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003725/1.219, allocations: 2.333 MB / 0.7618 GB, free: 147.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.219, allocations: 0 / 0.7618 GB, free: 147.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00803/1.227, allocations: 1.462 MB / 0.7632 GB, free: 146.4 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001114/1.228, allocations: 254.5 kB / 0.7634 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.239, allocations: 6.44 MB / 0.7697 GB, free: 139.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.239, allocations: 1.484 kB / 0.7697 GB, free: 139.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005326/1.245, allocations: 3.082 MB / 0.7727 GB, free: 136.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004908/1.25, allocations: 0.7889 MB / 0.7735 GB, free: 136 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/1.274, allocations: 16.5 MB / 0.7896 GB, free: 119.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005045/1.279, allocations: 5.012 MB / 0.7945 GB, free: 114.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00509/1.284, allocations: 1.586 MB / 0.7961 GB, free: 112.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/1.285, allocations: 335.4 kB / 0.7964 GB, free: 112.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.282e-06/1.285, allocations: 0 / 0.7964 GB, free: 112.5 MB / 494.1 MB Notification: Performance of Templates: time 0.09037/1.376, allocations: 57.43 MB / 0.8525 GB, free: 55.38 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1) Environment - environmentSimulation: