Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Annex60.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00849/0.00849, allocations: 99.64 kB / 15.73 MB, free: 6.469 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.001981/0.001982, allocations: 191.9 kB / 16.67 MB, free: 6.379 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.512/1.512, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.408/0.408, allocations: 54.95 MB / 324.8 MB, free: 44 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.001512/0.001512, allocations: 69.41 kB / 456.3 MB, free: 38.46 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1234, allocations: 59.6 MB / 0.5038 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPIDWithReset): time 0.004555/0.128, allocations: 4.118 MB / 0.5078 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.1316, allocations: 1.438 MB / 0.5092 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000576/0.1322, allocations: 27.88 kB / 0.5092 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.1327, allocations: 130.7 kB / 0.5094 GB, free: 5.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003367/0.133, allocations: 178.4 kB / 0.5095 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007993/0.1338, allocations: 460.8 kB / 0.51 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006373/0.1345, allocations: 0.9866 MB / 0.5109 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004767/0.1349, allocations: 470.1 kB / 0.5114 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.1352, allocations: 334.7 kB / 0.5117 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.1355, allocations: 342.3 kB / 0.512 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.101e-05/0.1356, allocations: 92 kB / 0.5121 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.707e-05/0.1357, allocations: 96 kB / 0.5122 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1358, allocations: 175.4 kB / 0.5124 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.136, allocations: 402 kB / 0.5128 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00068/0.1367, allocations: 1.067 MB / 0.5138 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1367, allocations: 0 / 0.5138 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1367, allocations: 0 / 0.5138 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.1368, allocations: 0 / 0.5138 GB, free: 0.5625 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: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.00189/0.1387, allocations: 1.096 MB / 0.5149 GB, free: 15.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.1387, allocations: 8.031 kB / 0.5149 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.1389, allocations: 84 kB / 0.515 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009263/0.1398, allocations: 0.5767 MB / 0.5155 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.1399, allocations: 45.69 kB / 0.5156 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.14, allocations: 64.12 kB / 0.5156 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.141, allocations: 0.6114 MB / 0.5162 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.141, allocations: 8 kB / 0.5162 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.1411, allocations: 24 kB / 0.5163 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1411, allocations: 16 kB / 0.5163 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009439/0.1421, allocations: 457 kB / 0.5167 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.145, allocations: 2.02 MB / 0.5187 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009429/0.1459, allocations: 444.9 kB / 0.5191 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004586/0.1464, allocations: 246 kB / 0.5193 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.492e-05/0.1464, allocations: 4.438 kB / 0.5193 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006179/0.1471, allocations: 257.3 kB / 0.5196 GB, free: 10.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.866e-06/0.1471, allocations: 4 kB / 0.5196 GB, free: 10.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.001484/0.1486, allocations: 0.5811 MB / 0.5202 GB, free: 9.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/0.1487, allocations: 63.83 kB / 0.5202 GB, free: 9.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/0.1493, allocations: 446 kB / 0.5206 GB, free: 9.309 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.1493, allocations: 41.58 kB / 0.5207 GB, free: 9.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/0.1497, allocations: 344.2 kB / 0.521 GB, free: 8.918 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.1499, allocations: 165.6 kB / 0.5212 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/0.1501, allocations: 90.25 kB / 0.5213 GB, free: 8.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0004407/0.1505, allocations: 362.8 kB / 0.5216 GB, free: 8.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.151, allocations: 179 kB / 0.5218 GB, free: 8.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006066/0.1516, allocations: 253.8 kB / 0.522 GB, free: 7.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009157/0.1525, allocations: 460 kB / 0.5225 GB, free: 7.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1526, allocations: 3.938 kB / 0.5225 GB, free: 7.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001097/0.1537, allocations: 0.5701 MB / 0.523 GB, free: 6.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/0.1537, allocations: 37.69 kB / 0.5231 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.1537, allocations: 0 / 0.5231 GB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.1538, allocations: 4.25 kB / 0.5231 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.1543, allocations: 119.8 kB / 0.5232 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.1543, allocations: 4 kB / 0.5232 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.1546, allocations: 55.52 kB / 0.5232 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.1547, allocations: 19.98 kB / 0.5232 GB, free: 6.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005428/0.1552, allocations: 317.2 kB / 0.5235 GB, free: 6.211 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000356/0.1556, allocations: 245.8 kB / 0.5238 GB, free: 5.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007053/0.1563, allocations: 440 kB / 0.5242 GB, free: 5.484 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.723e-06/0.1563, allocations: 0 / 0.5242 GB, free: 5.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.0009763/0.1573, allocations: 0.5467 MB / 0.5247 GB, free: 4.926 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.1574, allocations: 33.7 kB / 0.5248 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.1574, allocations: 4 kB / 0.5248 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.1574, allocations: 8 kB / 0.5248 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.1578, allocations: 111.8 kB / 0.5249 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1578, allocations: 4 kB / 0.5249 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.1581, allocations: 51.77 kB / 0.5249 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.1582, allocations: 20 kB / 0.525 GB, free: 4.691 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0001746/0.1584, allocations: 216.1 kB / 0.5252 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/0.1584, allocations: 55.34 kB / 0.5252 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001897/0.1586, allocations: 65.58 kB / 0.5253 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1587, allocations: 8 kB / 0.5253 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.1587, allocations: 0 / 0.5253 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.1587, allocations: 7.922 kB / 0.5253 GB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.1605, allocations: 1.182 MB / 0.5264 GB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1605, allocations: 4 kB / 0.5265 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004699/0.161, allocations: 95.88 kB / 0.5265 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.161, allocations: 0 / 0.5265 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.1611, allocations: 12 kB / 0.5266 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.1611, allocations: 3.938 kB / 0.5266 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.1611, allocations: 7.984 kB / 0.5266 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.1625, allocations: 0.765 MB / 0.5273 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.1627, allocations: 168.3 kB / 0.5275 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.716e-05/0.1628, allocations: 16 kB / 0.5275 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002917/0.1631, allocations: 23.97 kB / 0.5275 GB, free: 1.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.471e-05/0.1632, allocations: 32.39 kB / 0.5275 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.1632, allocations: 12 kB / 0.5276 GB, free: 1.926 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003437/0.1636, allocations: 318.8 kB / 0.5279 GB, free: 1.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1636, allocations: 0 / 0.5279 GB, free: 1.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006846/0.1643, allocations: 259 kB / 0.5281 GB, free: 1.363 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.0001405/0.1644, allocations: 111.2 kB / 0.5282 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.1659, allocations: 0.7699 MB / 0.529 GB, free: 464 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.1659, allocations: 4.125 kB / 0.529 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.1663, allocations: 218.4 kB / 0.5292 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008331/0.1672, allocations: 171.6 kB / 0.5293 GB, free: 80 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.17, allocations: 1.357 MB / 0.5307 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.1705, allocations: 0.8942 MB / 0.5315 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003306/0.1708, allocations: 76.64 kB / 0.5316 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.1709, allocations: 43.44 kB / 0.5317 GB, free: 13.65 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1709, allocations: 0 / 0.5317 GB, free: 13.65 MB / 414.1 MB Notification: Performance of Templates: time 0.01311/0.184, allocations: 6.486 MB / 0.538 GB, free: 7.223 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)