Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Annex60.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005802/0.005802, allocations: 104.2 kB / 15.74 MB, free: 6.488 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.001356/0.001356, allocations: 199.3 kB / 16.68 MB, free: 6.375 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3819/0.3819, allocations: 54.95 MB / 324.9 MB, free: 15.95 MB / 270.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.001504/0.001504, allocations: 67.36 kB / 456.2 MB, free: 38.36 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1325, allocations: 59.59 MB / 0.5037 GB, free: 9.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004493/0.137, allocations: 3.126 MB / 0.5067 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1391, allocations: 1.039 MB / 0.5078 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003033/0.1395, allocations: 14.84 kB / 0.5078 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002438/0.1397, allocations: 69.98 kB / 0.5078 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.1399, allocations: 106.2 kB / 0.5079 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.1405, allocations: 269 kB / 0.5082 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1409, allocations: 0.5602 MB / 0.5087 GB, free: 5.789 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.1414, allocations: 253.9 kB / 0.509 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.1416, allocations: 219 kB / 0.5092 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1418, allocations: 214.9 kB / 0.5094 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.1419, allocations: 52 kB / 0.5094 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.1419, allocations: 52 kB / 0.5095 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.749e-05/0.142, allocations: 115.6 kB / 0.5096 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.1421, allocations: 238.7 kB / 0.5098 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.1426, allocations: 0.576 MB / 0.5104 GB, free: 4.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1426, allocations: 0 / 0.5104 GB, free: 4.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1426, allocations: 0 / 0.5104 GB, free: 4.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1426, allocations: 3.938 kB / 0.5104 GB, free: 4.121 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001009/0.1437, allocations: 0.7661 MB / 0.5111 GB, free: 3.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1437, allocations: 12.03 kB / 0.5112 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.454e-05/0.1438, allocations: 56.28 kB / 0.5112 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005564/0.1444, allocations: 432.5 kB / 0.5116 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.1444, allocations: 33.31 kB / 0.5117 GB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.604e-05/0.1445, allocations: 40.12 kB / 0.5117 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.145, allocations: 405.6 kB / 0.5121 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.145, allocations: 0 / 0.5121 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.132e-05/0.1451, allocations: 16 kB / 0.5121 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1451, allocations: 8 kB / 0.5121 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004561/0.1455, allocations: 267.8 kB / 0.5124 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.1468, allocations: 1.313 MB / 0.5136 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005714/0.1474, allocations: 325.8 kB / 0.514 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.1476, allocations: 137.3 kB / 0.5141 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1477, allocations: 0 / 0.5141 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003082/0.148, allocations: 189.8 kB / 0.5143 GB, free: 15.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.653e-06/0.148, allocations: 0 / 0.5143 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.000814/0.1488, allocations: 373.8 kB / 0.5146 GB, free: 15.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.1489, allocations: 89.11 kB / 0.5147 GB, free: 15.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1493, allocations: 345.7 kB / 0.515 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.1493, allocations: 33.7 kB / 0.5151 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.1495, allocations: 240.4 kB / 0.5153 GB, free: 14.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.164e-05/0.1496, allocations: 102.6 kB / 0.5154 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.1497, allocations: 66.06 kB / 0.5155 GB, free: 14.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.1499, allocations: 366.7 kB / 0.5158 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.1502, allocations: 110.2 kB / 0.5159 GB, free: 14.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.1504, allocations: 173.1 kB / 0.5161 GB, free: 14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004471/0.1509, allocations: 259.8 kB / 0.5163 GB, free: 13.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1509, allocations: 4 kB / 0.5163 GB, free: 13.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000645/0.1516, allocations: 358.3 kB / 0.5167 GB, free: 13.37 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1516, allocations: 4 kB / 0.5167 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1516, allocations: 4 kB / 0.5167 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.1516, allocations: 4 kB / 0.5167 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.1519, allocations: 64.09 kB / 0.5167 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.1519, allocations: 8 kB / 0.5168 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1521, allocations: 39.67 kB / 0.5168 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.1521, allocations: 15.98 kB / 0.5168 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000287/0.1524, allocations: 216.9 kB / 0.517 GB, free: 13.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002222/0.1527, allocations: 174.1 kB / 0.5172 GB, free: 12.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003574/0.153, allocations: 241.9 kB / 0.5174 GB, free: 12.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.542e-06/0.153, allocations: 8 kB / 0.5174 GB, free: 12.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization_lambda0): time 0.0005017/0.1536, allocations: 337.2 kB / 0.5177 GB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.455e-06/0.1536, allocations: 8 kB / 0.5177 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1536, allocations: 0 / 0.5177 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.08e-06/0.1536, allocations: 7.938 kB / 0.5178 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002247/0.1538, allocations: 63.91 kB / 0.5178 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.1538, allocations: 7.938 kB / 0.5178 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.154, allocations: 39.86 kB / 0.5179 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.154, allocations: 12 kB / 0.5179 GB, free: 12.09 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: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0001908/0.1542, allocations: 204.1 kB / 0.5181 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.118e-05/0.1543, allocations: 43.52 kB / 0.5181 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.267e-05/0.1544, allocations: 40.25 kB / 0.5181 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.1544, allocations: 4 kB / 0.5181 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.1544, allocations: 0 / 0.5181 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1544, allocations: 4 kB / 0.5182 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.1555, allocations: 0.8197 MB / 0.519 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1555, allocations: 0 / 0.519 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.1557, allocations: 47.91 kB / 0.519 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.1558, allocations: 0 / 0.519 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1558, allocations: 8 kB / 0.519 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.1558, allocations: 4 kB / 0.519 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1558, allocations: 7.875 kB / 0.519 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008236/0.1566, allocations: 0.516 MB / 0.5195 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1568, allocations: 140.6 kB / 0.5197 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.548e-05/0.1568, allocations: 4 kB / 0.5197 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.157, allocations: 15.98 kB / 0.5197 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.1571, allocations: 35.97 kB / 0.5197 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.1571, allocations: 8 kB / 0.5197 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002454/0.1574, allocations: 243.2 kB / 0.5199 GB, free: 9.859 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1574, allocations: 0 / 0.5199 GB, free: 9.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005053/0.1579, allocations: 159.3 kB / 0.5201 GB, free: 9.703 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00013/0.158, allocations: 119.1 kB / 0.5202 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007691/0.1588, allocations: 420.6 kB / 0.5206 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1588, allocations: 0 / 0.5206 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.1591, allocations: 132.4 kB / 0.5207 GB, free: 9.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.1596, allocations: 96.36 kB / 0.5208 GB, free: 8.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.161, allocations: 0.814 MB / 0.5216 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.1614, allocations: 0.812 MB / 0.5224 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.1616, allocations: 47.27 kB / 0.5225 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.319e-05/0.1617, allocations: 31.44 kB / 0.5225 GB, free: 7.195 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1617, allocations: 0 / 0.5225 GB, free: 7.195 MB / 398.1 MB Notification: Performance of Templates: time 0.008205/0.17, allocations: 3.987 MB / 0.5264 GB, free: 3.23 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)