Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 102.2 kB / 16.27 MB, free: 6 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.461/1.461, allocations: 222.9 MB / 239.9 MB, free: 4.645 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.001985/0.001985, allocations: 203.7 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03402/0.03402, allocations: 8.797 MB / 349.2 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 84.59 kB / 411.8 MB, free: 42.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1047, allocations: 51.56 MB / 463.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02823/0.1329, allocations: 25.42 MB / 488.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.1516, allocations: 7.936 MB / 496.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005767/0.1574, allocations: 175.5 kB / 496.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01801/0.1754, allocations: 7.648 MB / 0.4927 GB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.1867, allocations: 3.053 MB / 0.4957 GB, free: 1.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006664/0.1934, allocations: 2.017 MB / 0.4976 GB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01432/0.2077, allocations: 9.165 MB / 0.5066 GB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02832/0.2361, allocations: 17.32 MB / 0.5235 GB, free: 5.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008353/0.2445, allocations: 4.738 MB / 0.5281 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2389/0.4834, allocations: 5.262 MB / 0.5333 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005011/0.4884, allocations: 1.354 MB / 0.5346 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007385/0.4959, allocations: 1.722 MB / 0.5363 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005406/0.5013, allocations: 2.679 MB / 0.5389 GB, free: 22.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01272/0.514, allocations: 5.086 MB / 0.5438 GB, free: 21.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02485/0.5389, allocations: 18.05 MB / 0.5615 GB, free: 16.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.539, allocations: 6.094 kB / 0.5615 GB, free: 16.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.539, allocations: 0 / 0.5615 GB, free: 16.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005735/0.5396, allocations: 0 / 0.5615 GB, free: 16.49 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.03855/0.5781, allocations: 10.81 MB / 0.572 GB, free: 9.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.5782, allocations: 11.47 kB / 0.572 GB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03182/0.61, allocations: 5.628 MB / 0.5775 GB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01235/0.6224, allocations: 5.657 MB / 0.5831 GB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005715/0.623, allocations: 0.5811 MB / 0.5836 GB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003873/0.6269, allocations: 0.7739 MB / 0.5844 GB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03646/0.6634, allocations: 12.76 MB / 0.5969 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000292/0.6637, allocations: 11.56 kB / 0.5969 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003243/0.6669, allocations: 325.8 kB / 0.5972 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000541/0.6675, allocations: 0.4929 MB / 0.5977 GB, free: 5.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02934/0.6968, allocations: 12.24 MB / 0.6096 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08547/0.7823, allocations: 43.71 MB / 0.6523 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0252/0.8076, allocations: 25.18 MB / 0.6769 GB, free: 1.023 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005338/0.813, allocations: 2.972 MB / 0.6798 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004206/0.8134, allocations: 242.9 kB / 0.68 GB, free: 13.79 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00409/0.8175, allocations: 2.578 MB / 0.6825 GB, free: 11.14 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 6.773e-06/0.8176, allocations: 4 kB / 0.6825 GB, free: 11.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03998/0.8575, allocations: 18.11 MB / 0.7002 GB, free: 8.926 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001777/0.8578, allocations: 351.5 kB / 0.7006 GB, free: 8.508 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007181/0.8649, allocations: 3.522 MB / 0.704 GB, free: 4.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0012/0.8662, allocations: 89.7 kB / 0.7041 GB, free: 4.887 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002967/0.8692, allocations: 3.371 MB / 0.7074 GB, free: 1.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001982/0.8712, allocations: 1.346 MB / 0.7087 GB, free: 164 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2341/1.105, allocations: 1.079 MB / 0.7098 GB, free: 166.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.682e-05/1.105, allocations: 305.9 kB / 0.71 GB, free: 166.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003851/1.109, allocations: 2.553 MB / 0.7125 GB, free: 166.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005268/1.114, allocations: 4.512 MB / 0.7169 GB, free: 164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.125, allocations: 7.447 MB / 0.7242 GB, free: 161.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/1.125, allocations: 22.09 kB / 0.7242 GB, free: 161.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01663/1.142, allocations: 8.276 MB / 0.7323 GB, free: 159.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.142, allocations: 54.73 kB / 0.7324 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/1.142, allocations: 61.19 kB / 0.7324 GB, free: 159.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/1.145, allocations: 1.007 MB / 0.7334 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004869/1.15, allocations: 1.255 MB / 0.7346 GB, free: 159.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/1.161, allocations: 8.826 MB / 0.7433 GB, free: 154.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005327/1.166, allocations: 356.6 kB / 0.7436 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/1.168, allocations: 267.3 kB / 0.7439 GB, free: 154.4 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005813/1.174, allocations: 2.903 MB / 0.7467 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009847/1.175, allocations: 395 kB / 0.7471 GB, free: 152.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009646/1.184, allocations: 6.179 MB / 0.7531 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/1.184, allocations: 40 kB / 0.7531 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.184, allocations: 15.94 kB / 0.7532 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.416e-05/1.184, allocations: 22.92 kB / 0.7532 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02325/1.208, allocations: 14.91 MB / 0.7677 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/1.208, allocations: 4 kB / 0.7677 GB, free: 137.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002615/1.21, allocations: 0.6799 MB / 0.7684 GB, free: 137.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002282/1.213, allocations: 0.891 MB / 0.7693 GB, free: 136.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004537/1.213, allocations: 87.27 kB / 0.7694 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008995/1.222, allocations: 7.759 MB / 0.7769 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.222, allocations: 15.97 kB / 0.7769 GB, free: 128.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01182/1.234, allocations: 8.772 MB / 0.7855 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002246/1.236, allocations: 0.9062 MB / 0.7864 GB, free: 118.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007501/1.237, allocations: 76 kB / 0.7865 GB, free: 118.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/1.239, allocations: 191.8 kB / 0.7867 GB, free: 118.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005413/1.24, allocations: 279.1 kB / 0.7869 GB, free: 118.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/1.24, allocations: 112 kB / 0.787 GB, free: 118.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003152/1.243, allocations: 2.363 MB / 0.7893 GB, free: 115.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.243, allocations: 0 / 0.7893 GB, free: 115.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005395/1.248, allocations: 1.452 MB / 0.7908 GB, free: 114.3 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006255/1.249, allocations: 247.6 kB / 0.791 GB, free: 114.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0248/1.274, allocations: 11.93 MB / 0.8026 GB, free: 102.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.274, allocations: 4 kB / 0.8026 GB, free: 102.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004753/1.279, allocations: 3.08 MB / 0.8057 GB, free: 99.07 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004118/1.283, allocations: 0.8037 MB / 0.8064 GB, free: 98.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0226/1.305, allocations: 13.72 MB / 0.8198 GB, free: 84.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004365/1.31, allocations: 4.854 MB / 0.8246 GB, free: 79.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/1.311, allocations: 375.3 kB / 0.8249 GB, free: 79.23 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/1.311, allocations: 0 / 0.8249 GB, free: 79.23 MB / 494.1 MB Notification: Performance of Templates: time 0.3558/1.667, allocations: 131.6 MB / 0.9534 GB, free: 101.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)