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.001671/0.001671, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001424/0.001424, allocations: 190.2 kB / 16.25 MB, free: 6.633 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.399/1.399, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00257/0.00257, allocations: 302.9 kB / 290.4 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.063/1.063, allocations: 178.6 MB / 0.507 GB, free: 4.734 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 96.16 kB / 0.6059 GB, free: 25.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1482, allocations: 89.15 MB / 0.693 GB, free: 4.719 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.004997/0.1532, allocations: 3.734 MB / 0.6966 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.1554, allocations: 1.29 MB / 0.6979 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/0.1557, allocations: 27.88 kB / 0.6979 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.156, allocations: 91.11 kB / 0.698 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004604/0.1564, allocations: 145.8 kB / 0.6981 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1575, allocations: 0.5244 MB / 0.6986 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009796/0.1585, allocations: 0.9682 MB / 0.6996 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000508/0.159, allocations: 349.8 kB / 0.6999 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004047/0.1594, allocations: 370.3 kB / 0.7003 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003627/0.1598, allocations: 358 kB / 0.7006 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.1599, allocations: 76 kB / 0.7007 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.16, allocations: 80 kB / 0.7008 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.1602, allocations: 187.2 kB / 0.7009 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.1605, allocations: 373.7 kB / 0.7013 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007888/0.1613, allocations: 0.8564 MB / 0.7021 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1613, allocations: 0 / 0.7021 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1613, allocations: 0 / 0.7021 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.1613, allocations: 0 / 0.7021 GB, free: 11.31 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002048/0.1634, allocations: 1.187 MB / 0.7033 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1634, allocations: 12.03 kB / 0.7033 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.1636, allocations: 91.81 kB / 0.7034 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009225/0.1645, allocations: 0.5948 MB / 0.704 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.1647, allocations: 105 kB / 0.7041 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/0.1647, allocations: 48.38 kB / 0.7041 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.1659, allocations: 0.6003 MB / 0.7047 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1659, allocations: 4 kB / 0.7047 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.695e-05/0.166, allocations: 20 kB / 0.7047 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.166, allocations: 12 kB / 0.7047 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.167, allocations: 427.6 kB / 0.7052 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.1699, allocations: 2.114 MB / 0.7072 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.1711, allocations: 0.5029 MB / 0.7077 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/0.1716, allocations: 214.2 kB / 0.7079 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.1716, allocations: 5.094 kB / 0.7079 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007038/0.1724, allocations: 293.9 kB / 0.7082 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 1.934e-06/0.1724, allocations: 0 / 0.7082 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001468/0.1738, allocations: 0.611 MB / 0.7088 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.411e-05/0.1739, allocations: 88.86 kB / 0.7089 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.1747, allocations: 0.6138 MB / 0.7095 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.1747, allocations: 37.7 kB / 0.7095 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.175, allocations: 356.9 kB / 0.7099 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.1752, allocations: 145.8 kB / 0.71 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001673/0.1753, allocations: 102.1 kB / 0.7101 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1755, allocations: 329.9 kB / 0.7104 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/0.1759, allocations: 187 kB / 0.7106 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.1765, allocations: 276.2 kB / 0.7108 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009472/0.1774, allocations: 474 kB / 0.7113 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.1775, allocations: 7.875 kB / 0.7113 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00124/0.1787, allocations: 0.5983 MB / 0.7119 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/0.1787, allocations: 29.7 kB / 0.7119 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1788, allocations: 4 kB / 0.7119 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1788, allocations: 4 kB / 0.7119 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.1793, allocations: 107.8 kB / 0.712 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.1793, allocations: 8 kB / 0.712 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.1797, allocations: 67.75 kB / 0.7121 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.1797, allocations: 20 kB / 0.7121 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005668/0.1803, allocations: 309.2 kB / 0.7124 GB, free: 376 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000479/0.1808, allocations: 268.2 kB / 0.7127 GB, free: 76 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008699/0.1817, allocations: 457.9 kB / 0.7131 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.037e-06/0.1817, allocations: 4 kB / 0.7131 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001145/0.1828, allocations: 0.5789 MB / 0.7137 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.1829, allocations: 33.7 kB / 0.7137 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.1829, allocations: 0 / 0.7137 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.741e-06/0.1829, allocations: 4 kB / 0.7137 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.1834, allocations: 107.8 kB / 0.7138 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1834, allocations: 4 kB / 0.7138 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/0.1837, allocations: 55.56 kB / 0.7139 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.906e-05/0.1838, allocations: 16 kB / 0.7139 GB, free: 14.77 MB / 0.5137 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.184, allocations: 225.6 kB / 0.7141 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1841, allocations: 71.16 kB / 0.7142 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.1843, allocations: 83.2 kB / 0.7142 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1843, allocations: 4 kB / 0.7143 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.1843, allocations: 0 / 0.7143 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1843, allocations: 3.938 kB / 0.7143 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007028/0.185, allocations: 0.6257 MB / 0.7149 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.185, allocations: 0 / 0.7149 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/0.1855, allocations: 83.89 kB / 0.7149 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1855, allocations: 0 / 0.7149 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.861e-05/0.1856, allocations: 15.98 kB / 0.715 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1856, allocations: 0 / 0.715 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1856, allocations: 0 / 0.715 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.1871, allocations: 0.7274 MB / 0.7157 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.1874, allocations: 196 kB / 0.7159 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.88e-05/0.1875, allocations: 8 kB / 0.7159 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/0.1879, allocations: 31.97 kB / 0.7159 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.817e-05/0.188, allocations: 35.95 kB / 0.7159 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.188, allocations: 15.98 kB / 0.7159 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005015/0.1885, allocations: 435 kB / 0.7164 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1885, allocations: 0 / 0.7164 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005937/0.1891, allocations: 215.3 kB / 0.7166 GB, free: 11.93 MB / 0.5137 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 (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.0001365/0.1893, allocations: 111.2 kB / 0.7167 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001744/0.191, allocations: 0.8055 MB / 0.7175 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.191, allocations: 4.188 kB / 0.7175 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004825/0.1915, allocations: 219.5 kB / 0.7177 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/0.1924, allocations: 220.5 kB / 0.7179 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.1946, allocations: 1.441 MB / 0.7193 GB, free: 9.078 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.1951, allocations: 0.9141 MB / 0.7202 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003864/0.1955, allocations: 89.12 kB / 0.7203 GB, free: 8.051 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.1957, allocations: 51.42 kB / 0.7203 GB, free: 8 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.1957, allocations: 0 / 0.7203 GB, free: 8 MB / 0.5137 GB Notification: Performance of Templates: time 0.014/0.2097, allocations: 7.514 MB / 0.7277 GB, free: 0.582 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)