Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.00136/0.00136, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0013/0.0013, allocations: 196.1 kB / 16.14 MB, free: 6.684 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.431/1.431, allocations: 222.9 MB / 239.8 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002559/0.002559, allocations: 278.7 kB / 290.2 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.083/1.083, allocations: 178.6 MB / 0.5068 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00273/0.00273, allocations: 102 kB / 0.6057 GB, free: 24.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1509, allocations: 89.16 MB / 0.6928 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005572/0.1565, allocations: 4.124 MB / 0.6968 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.1586, allocations: 1.291 MB / 0.6981 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.1589, allocations: 27.88 kB / 0.6981 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.1592, allocations: 95.2 kB / 0.6982 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003008/0.1595, allocations: 142.8 kB / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007709/0.1603, allocations: 393.6 kB / 0.6987 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000862/0.1611, allocations: 0.8696 MB / 0.6995 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006137/0.1618, allocations: 426.4 kB / 0.7 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.1621, allocations: 278.6 kB / 0.7002 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.1624, allocations: 302.4 kB / 0.7005 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.393e-05/0.1625, allocations: 40 kB / 0.7005 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.868e-05/0.1626, allocations: 40 kB / 0.7006 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.1627, allocations: 135.3 kB / 0.7007 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003312/0.1631, allocations: 346.1 kB / 0.701 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009156/0.164, allocations: 0.9927 MB / 0.702 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.164, allocations: 0 / 0.702 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.22e-07/0.164, allocations: 0 / 0.702 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.164, allocations: 0 / 0.702 GB, free: 11.32 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001875/0.1659, allocations: 1.073 MB / 0.7031 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.166, allocations: 8.031 kB / 0.7031 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1661, allocations: 84 kB / 0.7031 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008659/0.167, allocations: 0.5533 MB / 0.7037 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.167, allocations: 49.69 kB / 0.7037 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1671, allocations: 60.38 kB / 0.7038 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.1683, allocations: 0.6079 MB / 0.7044 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.1684, allocations: 7.844 kB / 0.7044 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.694e-05/0.1684, allocations: 24 kB / 0.7044 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.1684, allocations: 16 kB / 0.7044 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.1695, allocations: 460.9 kB / 0.7049 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003009/0.1725, allocations: 2.005 MB / 0.7068 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009839/0.1735, allocations: 445.5 kB / 0.7073 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004959/0.174, allocations: 238.1 kB / 0.7075 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.379e-05/0.1741, allocations: 4.438 kB / 0.7075 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006159/0.1747, allocations: 277.1 kB / 0.7078 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 1.804e-06/0.1747, allocations: 0 / 0.7078 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001377/0.1761, allocations: 0.5766 MB / 0.7083 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.1762, allocations: 63.84 kB / 0.7084 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.1767, allocations: 438 kB / 0.7088 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.1767, allocations: 41.7 kB / 0.7088 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/0.177, allocations: 324.2 kB / 0.7091 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1772, allocations: 169.5 kB / 0.7093 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.1773, allocations: 98.12 kB / 0.7094 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001956/0.1775, allocations: 366.8 kB / 0.7097 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.1779, allocations: 165 kB / 0.7099 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004788/0.1784, allocations: 249.8 kB / 0.7101 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/0.1793, allocations: 452 kB / 0.7106 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1794, allocations: 0 / 0.7106 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00112/0.1805, allocations: 0.5623 MB / 0.7111 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.1805, allocations: 41.62 kB / 0.7112 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1805, allocations: 0 / 0.7112 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1806, allocations: 4.25 kB / 0.7112 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005235/0.1811, allocations: 119.8 kB / 0.7113 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1811, allocations: 4 kB / 0.7113 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.1815, allocations: 63.5 kB / 0.7113 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.1815, allocations: 16 kB / 0.7114 GB, free: 1.414 MB / 0.4981 GB 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.0002886/0.1818, allocations: 210.9 kB / 0.7116 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.237e-05/0.1819, allocations: 59.28 kB / 0.7116 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.1821, allocations: 65.58 kB / 0.7117 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1821, allocations: 4 kB / 0.7117 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1821, allocations: 0 / 0.7117 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.1821, allocations: 11.97 kB / 0.7117 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.184, allocations: 1.181 MB / 0.7128 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.184, allocations: 0 / 0.7128 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005007/0.1845, allocations: 87.89 kB / 0.7129 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1845, allocations: 0 / 0.7129 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.1846, allocations: 15.98 kB / 0.7129 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/0.1846, allocations: 8 kB / 0.713 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1846, allocations: 0 / 0.713 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.186, allocations: 0.7639 MB / 0.7137 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.1863, allocations: 172.3 kB / 0.7139 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.796e-05/0.1863, allocations: 12 kB / 0.7139 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.1867, allocations: 27.97 kB / 0.7139 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/0.1868, allocations: 32.39 kB / 0.7139 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.1868, allocations: 15.98 kB / 0.714 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000381/0.1872, allocations: 310.8 kB / 0.7142 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1872, allocations: 0 / 0.7142 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004239/0.1876, allocations: 143.5 kB / 0.7144 GB, free: 14.22 MB / 0.5137 GB 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.0001379/0.1878, allocations: 115.2 kB / 0.7145 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009789/0.1887, allocations: 485 kB / 0.715 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1888, allocations: 0 / 0.715 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004551/0.1892, allocations: 214.4 kB / 0.7152 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000759/0.19, allocations: 146.5 kB / 0.7153 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00287/0.1929, allocations: 1.617 MB / 0.7169 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000545/0.1934, allocations: 0.8902 MB / 0.7177 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000271/0.1937, allocations: 64.59 kB / 0.7178 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.1938, allocations: 35.44 kB / 0.7178 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.1938, allocations: 0 / 0.7178 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.01151/0.2054, allocations: 5.597 MB / 0.7233 GB, free: 5.082 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)