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.001239/0.001239, 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.001272/0.001272, allocations: 191.9 kB / 16.13 MB, free: 6.66 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.292/1.292, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 283.1 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.941/0.941, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 88.12 kB / 0.5945 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1352, allocations: 86.98 MB / 0.6794 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004945/0.1402, allocations: 4.131 MB / 0.6835 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1423, allocations: 1.278 MB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002697/0.1426, allocations: 23.88 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.1429, allocations: 91.22 kB / 0.6848 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.1432, allocations: 150.8 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007461/0.1439, allocations: 381.1 kB / 0.6853 GB, free: 11.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007222/0.1447, allocations: 0.8851 MB / 0.6862 GB, free: 10.26 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005515/0.1452, allocations: 434.3 kB / 0.6866 GB, free: 9.816 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002728/0.1455, allocations: 270.8 kB / 0.6869 GB, free: 9.551 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.1458, allocations: 302.3 kB / 0.6872 GB, free: 9.254 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.041e-05/0.1459, allocations: 44 kB / 0.6872 GB, free: 9.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.708e-05/0.146, allocations: 40 kB / 0.6872 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.1461, allocations: 135.4 kB / 0.6874 GB, free: 9.039 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002878/0.1464, allocations: 342 kB / 0.6877 GB, free: 8.703 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007405/0.1471, allocations: 0.9889 MB / 0.6887 GB, free: 7.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1471, allocations: 4 kB / 0.6887 GB, free: 7.707 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1472, allocations: 0 / 0.6887 GB, free: 7.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1472, allocations: 4 kB / 0.6887 GB, free: 7.703 MB / 494.1 MB 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.001687/0.1489, allocations: 1.069 MB / 0.6897 GB, free: 6.574 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.1489, allocations: 8.031 kB / 0.6897 GB, free: 6.566 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.149, allocations: 87.84 kB / 0.6898 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007483/0.1498, allocations: 0.5495 MB / 0.6903 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.424e-05/0.1498, allocations: 45.69 kB / 0.6904 GB, free: 5.848 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.292e-05/0.1499, allocations: 64.36 kB / 0.6904 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.151, allocations: 0.6039 MB / 0.691 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.151, allocations: 4 kB / 0.691 GB, free: 5.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.1511, allocations: 28 kB / 0.6911 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.1511, allocations: 16 kB / 0.6911 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009975/0.1521, allocations: 457 kB / 0.6915 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1548, allocations: 2.008 MB / 0.6935 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009146/0.1557, allocations: 445 kB / 0.6939 GB, free: 2.145 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004493/0.1562, allocations: 242.1 kB / 0.6941 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.1563, allocations: 8.438 kB / 0.6941 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005815/0.1568, allocations: 257.3 kB / 0.6944 GB, free: 1.637 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.1569, allocations: 3.938 kB / 0.6944 GB, free: 1.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001257/0.1581, allocations: 0.5844 MB / 0.695 GB, free: 1.043 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1582, allocations: 59.84 kB / 0.695 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004571/0.1586, allocations: 442 kB / 0.6954 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.1587, allocations: 37.7 kB / 0.6955 GB, free: 500 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.1589, allocations: 325 kB / 0.6958 GB, free: 172 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.159, allocations: 169.5 kB / 0.6959 GB, free: 0 / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.1592, allocations: 94.23 kB / 0.696 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1593, allocations: 366.8 kB / 0.6964 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004171/0.1598, allocations: 165 kB / 0.6965 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004321/0.1602, allocations: 249.8 kB / 0.6968 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007979/0.161, allocations: 460 kB / 0.6972 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.161, allocations: 0 / 0.6972 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001008/0.162, allocations: 0.5624 MB / 0.6978 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.684e-05/0.1621, allocations: 33.64 kB / 0.6978 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1621, allocations: 4 kB / 0.6978 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1621, allocations: 4 kB / 0.6978 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.1626, allocations: 119.8 kB / 0.6979 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.1626, allocations: 4 kB / 0.6979 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.163, allocations: 63.75 kB / 0.698 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/0.163, allocations: 20 kB / 0.698 GB, free: 13.8 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.0002374/0.1633, allocations: 212 kB / 0.6982 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.1634, allocations: 63.19 kB / 0.6983 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.1635, allocations: 61.59 kB / 0.6983 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1635, allocations: 7.984 kB / 0.6983 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1635, allocations: 4 kB / 0.6983 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1635, allocations: 3.938 kB / 0.6983 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.1652, allocations: 1.17 MB / 0.6995 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1652, allocations: 4 kB / 0.6995 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.1657, allocations: 99.81 kB / 0.6996 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1657, allocations: 4 kB / 0.6996 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.1658, allocations: 12 kB / 0.6996 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.1658, allocations: 0 / 0.6996 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1658, allocations: 0 / 0.6996 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.1671, allocations: 0.7602 MB / 0.7003 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.1673, allocations: 172.3 kB / 0.7005 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.303e-05/0.1673, allocations: 8 kB / 0.7005 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.1677, allocations: 35.88 kB / 0.7005 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.1678, allocations: 32.39 kB / 0.7006 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.633e-05/0.1678, allocations: 12 kB / 0.7006 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003222/0.1681, allocations: 310.9 kB / 0.7009 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1682, allocations: 11.88 kB / 0.7009 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004263/0.1686, allocations: 143.5 kB / 0.701 GB, free: 10.6 MB / 0.4981 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.0001245/0.1687, allocations: 110.2 kB / 0.7011 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000925/0.1696, allocations: 485.5 kB / 0.7016 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1697, allocations: 0 / 0.7016 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004182/0.1701, allocations: 218.4 kB / 0.7018 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007458/0.1708, allocations: 154.9 kB / 0.702 GB, free: 9.637 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.1735, allocations: 1.616 MB / 0.7035 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.1739, allocations: 0.8902 MB / 0.7044 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002657/0.1742, allocations: 60.58 kB / 0.7045 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.1743, allocations: 43.42 kB / 0.7045 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.1743, allocations: 0 / 0.7045 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of Templates: time 0.01037/0.1847, allocations: 5.579 MB / 0.7099 GB, free: 1.469 MB / 0.4981 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)