Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Annex60.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID") translateModel(Annex60.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009649/0.009649, allocations: 101.5 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 188.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3975/0.3975, allocations: 54.95 MB / 324.8 MB, free: 60 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 75.91 kB / 456.2 MB, free: 38.55 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.126, allocations: 59.59 MB / 0.5037 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPID): time 0.005251/0.1313, allocations: 3.706 MB / 0.5074 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003289/0.1346, allocations: 1.412 MB / 0.5087 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008461/0.1355, allocations: 25.53 kB / 0.5088 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004235/0.136, allocations: 133.8 kB / 0.5089 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006992/0.1367, allocations: 182.5 kB / 0.5091 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.1379, allocations: 0.6073 MB / 0.5097 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007426/0.1386, allocations: 0.9916 MB / 0.5106 GB, free: 3.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004246/0.1391, allocations: 357.6 kB / 0.511 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.1394, allocations: 378.3 kB / 0.5113 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1397, allocations: 362 kB / 0.5117 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.732e-05/0.1398, allocations: 80 kB / 0.5118 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.799e-05/0.1398, allocations: 80 kB / 0.5118 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.14, allocations: 183.3 kB / 0.512 GB, free: 2.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.1402, allocations: 385.7 kB / 0.5124 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.1409, allocations: 0.8989 MB / 0.5133 GB, free: 1.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1409, allocations: 0 / 0.5133 GB, free: 1.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1409, allocations: 3.938 kB / 0.5133 GB, free: 1.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1409, allocations: 0 / 0.5133 GB, free: 1.176 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001657/0.1426, allocations: 1.199 MB / 0.5144 GB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.1426, allocations: 12.03 kB / 0.5144 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.1428, allocations: 95.72 kB / 0.5145 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.1438, allocations: 0.6378 MB / 0.5152 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1439, allocations: 93.28 kB / 0.5152 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.1441, allocations: 55.94 kB / 0.5153 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.1451, allocations: 0.6119 MB / 0.5159 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.1451, allocations: 3.984 kB / 0.5159 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.1452, allocations: 27.98 kB / 0.5159 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.1452, allocations: 12 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009499/0.1462, allocations: 435.6 kB / 0.5164 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.149, allocations: 2.114 MB / 0.5184 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.1502, allocations: 0.5072 MB / 0.5189 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.1506, allocations: 216.7 kB / 0.5191 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.1506, allocations: 4 kB / 0.5191 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005799/0.1512, allocations: 290.6 kB / 0.5194 GB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.774e-06/0.1512, allocations: 0 / 0.5194 GB, free: 10.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.001357/0.1526, allocations: 0.6103 MB / 0.52 GB, free: 10 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.197e-05/0.1527, allocations: 88.8 kB / 0.5201 GB, free: 9.898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006321/0.1533, allocations: 0.6217 MB / 0.5207 GB, free: 9.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.898e-05/0.1534, allocations: 33.7 kB / 0.5207 GB, free: 9.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.1536, allocations: 372.7 kB / 0.5211 GB, free: 8.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.1537, allocations: 157.7 kB / 0.5212 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1539, allocations: 94.25 kB / 0.5213 GB, free: 8.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.154, allocations: 329.9 kB / 0.5216 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004195/0.1544, allocations: 183 kB / 0.5218 GB, free: 8.094 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004608/0.1549, allocations: 284.2 kB / 0.5221 GB, free: 7.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008689/0.1558, allocations: 485.8 kB / 0.5225 GB, free: 7.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1558, allocations: 0 / 0.5225 GB, free: 7.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001101/0.1569, allocations: 0.606 MB / 0.5231 GB, free: 6.641 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.1569, allocations: 33.69 kB / 0.5232 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1569, allocations: 4 kB / 0.5232 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.157, allocations: 4.312 kB / 0.5232 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004567/0.1574, allocations: 111.8 kB / 0.5233 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1574, allocations: 8 kB / 0.5233 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.1578, allocations: 59.5 kB / 0.5233 GB, free: 6.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.1578, allocations: 25.09 kB / 0.5234 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004417/0.1583, allocations: 301.1 kB / 0.5237 GB, free: 6.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003582/0.1587, allocations: 260.2 kB / 0.5239 GB, free: 5.812 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006397/0.1593, allocations: 438 kB / 0.5243 GB, free: 5.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.1593, allocations: 0 / 0.5243 GB, free: 5.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0008739/0.1602, allocations: 0.5553 MB / 0.5249 GB, free: 4.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.1602, allocations: 37.69 kB / 0.5249 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1602, allocations: 12.25 kB / 0.5249 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.98e-06/0.1603, allocations: 8 kB / 0.5249 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.1606, allocations: 95.89 kB / 0.525 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1607, allocations: 7.938 kB / 0.525 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.161, allocations: 47.58 kB / 0.5251 GB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.161, allocations: 20 kB / 0.5251 GB, free: 4.551 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001568/0.1612, allocations: 227.3 kB / 0.5253 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.793e-05/0.1613, allocations: 75.06 kB / 0.5254 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.1614, allocations: 87.33 kB / 0.5254 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1614, allocations: 4 kB / 0.5255 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1614, allocations: 0 / 0.5255 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1614, allocations: 0 / 0.5255 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.1621, allocations: 0.6258 MB / 0.5261 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1621, allocations: 0 / 0.5261 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.1626, allocations: 83.88 kB / 0.5261 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1626, allocations: 4 kB / 0.5261 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.156e-05/0.1626, allocations: 4 kB / 0.5262 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.1627, allocations: 11.94 kB / 0.5262 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1627, allocations: 0 / 0.5262 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.1641, allocations: 0.7324 MB / 0.5269 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.1644, allocations: 200 kB / 0.5271 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.1644, allocations: 8 kB / 0.5271 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003982/0.1648, allocations: 35.95 kB / 0.5271 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.1649, allocations: 31.95 kB / 0.5271 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.165, allocations: 15.98 kB / 0.5272 GB, free: 2.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004632/0.1654, allocations: 435 kB / 0.5276 GB, free: 1.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1655, allocations: 8 kB / 0.5276 GB, free: 1.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005596/0.166, allocations: 215.3 kB / 0.5278 GB, free: 1.684 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001299/0.1662, allocations: 107.2 kB / 0.5279 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.1675, allocations: 0.7807 MB / 0.5286 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1676, allocations: 0 / 0.5286 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004405/0.168, allocations: 208.7 kB / 0.5288 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008492/0.1689, allocations: 222.1 kB / 0.5291 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.1708, allocations: 1.196 MB / 0.5302 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.1712, allocations: 0.9258 MB / 0.5311 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003208/0.1715, allocations: 89.19 kB / 0.5312 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.1717, allocations: 47.44 kB / 0.5313 GB, free: 14.02 MB / 414.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1717, allocations: 0 / 0.5313 GB, free: 14.02 MB / 414.1 MB Notification: Performance of Templates: time 0.01363/0.1853, allocations: 8.193 MB / 0.5393 GB, free: 5.895 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPID.pipe 2>&1)