Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.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.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009474/0.0009474, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001097/0.001097, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001762/0.001762, allocations: 267 kB / 291.3 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9127/0.9127, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004581/0.0004585, allocations: 9.688 kB / 0.598 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1494, allocations: 88.55 MB / 0.6845 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.003352/0.1528, allocations: 3.129 MB / 0.6875 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.1548, allocations: 1.254 MB / 0.6888 GB, free: 11.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.1551, allocations: 27.81 kB / 0.6888 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.1553, allocations: 93.91 kB / 0.6889 GB, free: 10.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003992/0.1557, allocations: 129.6 kB / 0.689 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009441/0.1567, allocations: 466.2 kB / 0.6894 GB, free: 10.4 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007777/0.1575, allocations: 0.8161 MB / 0.6902 GB, free: 9.586 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004015/0.1579, allocations: 259.4 kB / 0.6905 GB, free: 9.328 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003101/0.1582, allocations: 272.4 kB / 0.6907 GB, free: 9.062 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1585, allocations: 258.3 kB / 0.691 GB, free: 8.809 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.199e-05/0.1585, allocations: 20 kB / 0.691 GB, free: 8.789 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.1586, allocations: 24.62 kB / 0.691 GB, free: 8.766 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.705e-05/0.1587, allocations: 107.4 kB / 0.6911 GB, free: 8.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.1588, allocations: 149.2 kB / 0.6913 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005074/0.1593, allocations: 0.6195 MB / 0.6919 GB, free: 7.887 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1593, allocations: 4 kB / 0.6919 GB, free: 7.883 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1594, allocations: 0 / 0.6919 GB, free: 7.883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.1594, allocations: 0 / 0.6919 GB, free: 7.883 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001678/0.1611, allocations: 1.059 MB / 0.6929 GB, free: 6.766 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1611, allocations: 16.03 kB / 0.6929 GB, free: 6.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.1613, allocations: 94.83 kB / 0.693 GB, free: 6.656 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00085/0.1621, allocations: 0.563 MB / 0.6936 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.1622, allocations: 100.4 kB / 0.6937 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.359e-05/0.1623, allocations: 55.94 kB / 0.6937 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.1633, allocations: 0.6041 MB / 0.6943 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1634, allocations: 0 / 0.6943 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.399e-05/0.1634, allocations: 24 kB / 0.6943 GB, free: 5.215 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1634, allocations: 12 kB / 0.6943 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008836/0.1643, allocations: 443.6 kB / 0.6948 GB, free: 4.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002541/0.1669, allocations: 2.145 MB / 0.6969 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.168, allocations: 0.5166 MB / 0.6974 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004222/0.1684, allocations: 224.8 kB / 0.6976 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.997e-05/0.1685, allocations: 4 kB / 0.6976 GB, free: 1.789 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005971/0.1691, allocations: 293.9 kB / 0.6979 GB, free: 1.488 MB / 494.1 MB Notification: Performance of pre-optimization done (n=45): time 2.254e-06/0.1691, allocations: 0 / 0.6979 GB, free: 1.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=45): time 0.001342/0.1704, allocations: 0.6375 MB / 0.6985 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.1705, allocations: 92.8 kB / 0.6986 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.1712, allocations: 0.606 MB / 0.6992 GB, free: 120 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.46e-05/0.1712, allocations: 37.7 kB / 0.6992 GB, free: 76 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.1715, allocations: 356.9 kB / 0.6995 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.1716, allocations: 145.8 kB / 0.6997 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1716, allocations: 19.94 kB / 0.6997 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1717, allocations: 326 kB / 0.7 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004099/0.1722, allocations: 185 kB / 0.7002 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004526/0.1726, allocations: 284.2 kB / 0.7005 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004444/0.1731, allocations: 238.4 kB / 0.7007 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1731, allocations: 0 / 0.7007 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001096/0.1742, allocations: 0.6102 MB / 0.7013 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.1743, allocations: 193 kB / 0.7015 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.1743, allocations: 7.984 kB / 0.7015 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1743, allocations: 7.953 kB / 0.7015 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004598/0.1748, allocations: 111.9 kB / 0.7016 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.1748, allocations: 13.03 kB / 0.7016 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.1752, allocations: 71.41 kB / 0.7017 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.1752, allocations: 20 kB / 0.7017 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.1752, allocations: 9.859 kB / 0.7017 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009148/0.1761, allocations: 0.4959 MB / 0.7022 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1762, allocations: 4 kB / 0.7022 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.57e-06/0.1762, allocations: 4 kB / 0.7022 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.1766, allocations: 108.2 kB / 0.7023 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.1766, allocations: 7.938 kB / 0.7023 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.1769, allocations: 63.5 kB / 0.7024 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.177, allocations: 19.94 kB / 0.7024 GB, free: 12.71 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002593/0.1772, allocations: 279.7 kB / 0.7026 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.558e-05/0.1773, allocations: 71.16 kB / 0.7027 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.1775, allocations: 83.2 kB / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1775, allocations: 4 kB / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1775, allocations: 0 / 0.7028 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1775, allocations: 4 kB / 0.7028 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006292/0.1781, allocations: 0.6257 MB / 0.7034 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1782, allocations: 0 / 0.7034 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004367/0.1786, allocations: 83.89 kB / 0.7035 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.1786, allocations: 8 kB / 0.7035 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.254e-05/0.1787, allocations: 8 kB / 0.7035 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.1787, allocations: 7.984 kB / 0.7035 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1787, allocations: 0 / 0.7035 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.1801, allocations: 0.7484 MB / 0.7042 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.1803, allocations: 188.2 kB / 0.7044 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.254e-05/0.1804, allocations: 19.94 kB / 0.7044 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003599/0.1807, allocations: 47.97 kB / 0.7045 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.1808, allocations: 35.94 kB / 0.7045 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.1809, allocations: 11.98 kB / 0.7045 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004469/0.1813, allocations: 423.1 kB / 0.7049 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1813, allocations: 3.938 kB / 0.7049 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006056/0.1819, allocations: 219.2 kB / 0.7052 GB, free: 9.773 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001693/0.1821, allocations: 115.2 kB / 0.7053 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.1836, allocations: 0.8043 MB / 0.706 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1836, allocations: 0.75 kB / 0.706 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.184, allocations: 223.5 kB / 0.7063 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/0.1848, allocations: 181.3 kB / 0.7064 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.1867, allocations: 1.391 MB / 0.7078 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.1872, allocations: 0.9144 MB / 0.7087 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003685/0.1876, allocations: 93.11 kB / 0.7088 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.1877, allocations: 51.44 kB / 0.7088 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of SimCode: time 3e-07/0.1877, allocations: 0 / 0.7088 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of Templates: time 0.012/0.1997, allocations: 6.9 MB / 0.7156 GB, free: 15.12 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)