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.0102/0.0102, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.383/1.383, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001804/0.001804, allocations: 188.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03475/0.03475, allocations: 8.79 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 75.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1068, allocations: 51.56 MB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.3197/0.4266, allocations: 25.42 MB / 0.5282 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.4433, allocations: 7.949 MB / 0.536 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007081/0.4506, allocations: 173.7 kB / 0.5362 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01863/0.4692, allocations: 7.68 MB / 0.5437 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01437/0.4836, allocations: 3.107 MB / 0.5467 GB, free: 3.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007553/0.4912, allocations: 2.012 MB / 0.5487 GB, free: 2.941 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01873/0.5099, allocations: 9.218 MB / 0.5577 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03515/0.5451, allocations: 17.26 MB / 0.5745 GB, free: 5.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009846/0.555, allocations: 4.77 MB / 0.5792 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009867/0.565, allocations: 5.236 MB / 0.5843 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003976/0.569, allocations: 1.352 MB / 0.5856 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006649/0.5756, allocations: 1.722 MB / 0.5873 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004312/0.58, allocations: 2.667 MB / 0.5899 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01174/0.5917, allocations: 5.082 MB / 0.5949 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02226/0.614, allocations: 18.16 MB / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.6141, allocations: 0 / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.6141, allocations: 0 / 0.6126 GB, free: 15.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005615/0.6146, allocations: 0 / 0.6126 GB, free: 15.52 MB / 430.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.03551/0.6502, allocations: 10.76 MB / 0.6231 GB, free: 4.754 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.6502, allocations: 8.031 kB / 0.6231 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03316/0.6834, allocations: 5.676 MB / 0.6287 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01417/0.6976, allocations: 5.794 MB / 0.6343 GB, free: 9.312 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007935/0.6984, allocations: 0.5767 MB / 0.6349 GB, free: 8.746 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005594/0.704, allocations: 0.7618 MB / 0.6356 GB, free: 7.992 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04887/0.753, allocations: 12.76 MB / 0.6481 GB, free: 11.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005766/0.7536, allocations: 11.91 kB / 0.6481 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004201/0.7578, allocations: 324.6 kB / 0.6484 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009844/0.7588, allocations: 0.4967 MB / 0.6489 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04942/0.8083, allocations: 12.26 MB / 0.6609 GB, free: 14.11 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1257/0.934, allocations: 43.25 MB / 0.7031 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02934/0.9634, allocations: 25.19 MB / 0.7277 GB, free: 5.668 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005185/0.9687, allocations: 2.98 MB / 0.7306 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004335/0.9691, allocations: 241.1 kB / 0.7308 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4571/1.426, allocations: 2.576 MB / 0.7334 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.246e-05/1.426, allocations: 0 / 0.7334 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03908/1.465, allocations: 18.1 MB / 0.751 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.466, allocations: 356.4 kB / 0.7514 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/1.471, allocations: 3.52 MB / 0.7548 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005886/1.472, allocations: 88.05 kB / 0.7549 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.474, allocations: 3.375 MB / 0.7582 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001187/1.475, allocations: 1.35 MB / 0.7595 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001783/1.477, allocations: 1.081 MB / 0.7606 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.255e-05/1.477, allocations: 306.4 kB / 0.7609 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004025/1.481, allocations: 2.551 MB / 0.7633 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/1.485, allocations: 4.512 MB / 0.7677 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007301/1.492, allocations: 7.454 MB / 0.775 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.716e-05/1.492, allocations: 15.84 kB / 0.775 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01213/1.504, allocations: 8.273 MB / 0.7831 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.862e-05/1.504, allocations: 61.45 kB / 0.7832 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.488e-05/1.505, allocations: 58.84 kB / 0.7832 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/1.507, allocations: 1.001 MB / 0.7842 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003815/1.511, allocations: 1.261 MB / 0.7854 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.521, allocations: 8.802 MB / 0.794 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/1.526, allocations: 366.6 kB / 0.7944 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007559/1.527, allocations: 262.7 kB / 0.7946 GB, free: 136.6 MB / 0.5294 GB 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.004377/1.531, allocations: 2.908 MB / 0.7975 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009253/1.532, allocations: 387 kB / 0.7979 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008462/1.541, allocations: 6.177 MB / 0.8039 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.436e-05/1.541, allocations: 40 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/1.541, allocations: 12 kB / 0.8039 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-05/1.541, allocations: 19.92 kB / 0.804 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/1.562, allocations: 14.64 MB / 0.8182 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/1.562, allocations: 4 kB / 0.8183 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002438/1.564, allocations: 0.6826 MB / 0.8189 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002211/1.566, allocations: 0.8775 MB / 0.8198 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002695/1.567, allocations: 89.3 kB / 0.8199 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00877/1.575, allocations: 7.752 MB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.576, allocations: 8.031 kB / 0.8274 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/1.587, allocations: 8.775 MB / 0.836 GB, free: 94.55 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002598/1.59, allocations: 0.91 MB / 0.8369 GB, free: 93.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009034/1.591, allocations: 76 kB / 0.837 GB, free: 93.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.593, allocations: 195.8 kB / 0.8372 GB, free: 93.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006029/1.594, allocations: 275.1 kB / 0.8374 GB, free: 93.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/1.594, allocations: 112 kB / 0.8375 GB, free: 92.98 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003126/1.597, allocations: 2.359 MB / 0.8398 GB, free: 90.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/1.597, allocations: 4 kB / 0.8398 GB, free: 90.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005849/1.603, allocations: 1.454 MB / 0.8413 GB, free: 89.17 MB / 0.5294 GB 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.0006288/1.603, allocations: 249.9 kB / 0.8415 GB, free: 88.92 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009559/1.613, allocations: 6.473 MB / 0.8478 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/1.613, allocations: 0 / 0.8478 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004413/1.617, allocations: 3.093 MB / 0.8508 GB, free: 79.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004178/1.622, allocations: 0.8116 MB / 0.8516 GB, free: 78.54 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/1.643, allocations: 13.75 MB / 0.8651 GB, free: 64.69 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004684/1.648, allocations: 5.002 MB / 0.8699 GB, free: 59.65 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004019/1.652, allocations: 1.594 MB / 0.8715 GB, free: 58.05 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000963/1.653, allocations: 323.4 kB / 0.8718 GB, free: 57.74 MB / 0.5294 GB Notification: Performance of SimCode: time 9.02e-07/1.653, allocations: 0 / 0.8718 GB, free: 57.74 MB / 0.5294 GB Notification: Performance of Templates: time 0.0933/1.746, allocations: 58.99 MB / 0.9294 GB, free: 15.14 MB / 0.545 GB 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)