Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") translateModel(Annex60.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006111/0.006111, allocations: 101.6 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.001295/0.001295, allocations: 192.9 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.573/1.573, allocations: 205.1 MB / 222.5 MB, free: 4.387 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.39/0.39, allocations: 54.94 MB / 324.8 MB, free: 40 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.001519/0.001519, allocations: 68.91 kB / 456.3 MB, free: 38.15 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1578, allocations: 59.59 MB / 0.5038 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.PIDHysteresis): time 0.005288/0.1631, allocations: 2.952 MB / 0.5067 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.1655, allocations: 1.005 MB / 0.5076 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003237/0.1658, allocations: 12.38 kB / 0.5077 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.1661, allocations: 62.94 kB / 0.5077 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.1663, allocations: 92.17 kB / 0.5078 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.1668, allocations: 241.1 kB / 0.508 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.1673, allocations: 0.5002 MB / 0.5085 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.1677, allocations: 221 kB / 0.5087 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.1679, allocations: 191.1 kB / 0.5089 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1681, allocations: 179 kB / 0.5091 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.087e-05/0.1681, allocations: 47.94 kB / 0.5091 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.968e-05/0.1682, allocations: 48 kB / 0.5092 GB, free: 5.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.1683, allocations: 95.69 kB / 0.5093 GB, free: 5.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000131/0.1684, allocations: 198.8 kB / 0.5095 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.1688, allocations: 0.5099 MB / 0.51 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1688, allocations: 0 / 0.51 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1688, allocations: 0 / 0.51 GB, free: 4.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1688, allocations: 0 / 0.51 GB, free: 4.527 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00102/0.1698, allocations: 0.7129 MB / 0.5107 GB, free: 3.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.1699, allocations: 8.031 kB / 0.5107 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.315e-05/0.17, allocations: 52.38 kB / 0.5107 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006098/0.1706, allocations: 408.3 kB / 0.5111 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.1707, allocations: 28.97 kB / 0.5111 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.1707, allocations: 36.03 kB / 0.5112 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.1712, allocations: 333.2 kB / 0.5115 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1713, allocations: 15.92 kB / 0.5115 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.1713, allocations: 8 kB / 0.5115 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1713, allocations: 8 kB / 0.5115 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.1717, allocations: 214.1 kB / 0.5117 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.1729, allocations: 1.182 MB / 0.5129 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.1734, allocations: 238.7 kB / 0.5131 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001811/0.1736, allocations: 112.8 kB / 0.5132 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.1737, allocations: 4.375 kB / 0.5132 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.1737, allocations: 38.5 kB / 0.5132 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.1737, allocations: 4 kB / 0.5133 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005738/0.1743, allocations: 293 kB / 0.5135 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.1743, allocations: 110.8 kB / 0.5136 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.1746, allocations: 337.7 kB / 0.514 GB, free: 184 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.1746, allocations: 29.7 kB / 0.514 GB, free: 148 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.1748, allocations: 236.2 kB / 0.5142 GB, free: 15.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.732e-05/0.1749, allocations: 70.91 kB / 0.5143 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.909e-05/0.175, allocations: 57.61 kB / 0.5143 GB, free: 15.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1752, allocations: 342.8 kB / 0.5147 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.1754, allocations: 84.83 kB / 0.5147 GB, free: 15.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.1756, allocations: 143.7 kB / 0.5149 GB, free: 15.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.176, allocations: 217.8 kB / 0.5151 GB, free: 14.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.176, allocations: 0 / 0.5151 GB, free: 14.94 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000489/0.1765, allocations: 281 kB / 0.5154 GB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1765, allocations: 12.19 kB / 0.5154 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.1765, allocations: 0 / 0.5154 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.1766, allocations: 4 kB / 0.5154 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.1768, allocations: 55.84 kB / 0.5154 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1768, allocations: 4 kB / 0.5154 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.177, allocations: 35.67 kB / 0.5155 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.177, allocations: 15.98 kB / 0.5155 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002455/0.1773, allocations: 192 kB / 0.5157 GB, free: 14.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001877/0.1775, allocations: 144.2 kB / 0.5158 GB, free: 14.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003036/0.1778, allocations: 206 kB / 0.516 GB, free: 13.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.1778, allocations: 0 / 0.516 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization_lambda0): time 0.0004223/0.1782, allocations: 269 kB / 0.5163 GB, free: 13.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.1782, allocations: 4.188 kB / 0.5163 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-06/0.1782, allocations: 8 kB / 0.5163 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.1783, allocations: 4 kB / 0.5163 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.1785, allocations: 51.91 kB / 0.5163 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.1785, allocations: 0 / 0.5163 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.1786, allocations: 35.73 kB / 0.5164 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.1787, allocations: 15.98 kB / 0.5164 GB, free: 13.57 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001572/0.1788, allocations: 196.1 kB / 0.5166 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.1789, allocations: 39.62 kB / 0.5166 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.116e-05/0.179, allocations: 39.34 kB / 0.5166 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.179, allocations: 4 kB / 0.5166 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.179, allocations: 0 / 0.5166 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.179, allocations: 3.938 kB / 0.5166 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004492/0.1795, allocations: 397.2 kB / 0.517 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1795, allocations: 3.984 kB / 0.517 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.1797, allocations: 43.91 kB / 0.5171 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1797, allocations: 0 / 0.5171 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.1798, allocations: 8 kB / 0.5171 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1798, allocations: 4 kB / 0.5171 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1798, allocations: 0 / 0.5171 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007195/0.1805, allocations: 426.9 kB / 0.5175 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.1807, allocations: 124.7 kB / 0.5176 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.1807, allocations: 8 kB / 0.5176 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1809, allocations: 20.05 kB / 0.5176 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-05/0.181, allocations: 19.91 kB / 0.5176 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.181, allocations: 8 kB / 0.5177 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.1813, allocations: 243.1 kB / 0.5179 GB, free: 11.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1813, allocations: 3.938 kB / 0.5179 GB, free: 11.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.1818, allocations: 123.5 kB / 0.518 GB, free: 11.79 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001377/0.1819, allocations: 103.2 kB / 0.5181 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.1826, allocations: 316.3 kB / 0.5184 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.1826, allocations: 0 / 0.5184 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.1828, allocations: 112.7 kB / 0.5185 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005594/0.1834, allocations: 95.72 kB / 0.5186 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.1847, allocations: 0.6967 MB / 0.5193 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.1851, allocations: 0.7918 MB / 0.5201 GB, free: 9.641 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001575/0.1853, allocations: 42.95 kB / 0.5201 GB, free: 9.598 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.88e-05/0.1854, allocations: 31.42 kB / 0.5201 GB, free: 9.566 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1854, allocations: 0 / 0.5201 GB, free: 9.566 MB / 398.1 MB Notification: Performance of Templates: time 0.007966/0.1933, allocations: 3.561 MB / 0.5236 GB, free: 6.027 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)