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.00165/0.00165, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001769/0.001769, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.4/1.4, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002584/0.002584, allocations: 295.8 kB / 291 MB, free: 14.65 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.199/1.199, allocations: 178.5 MB / 0.5076 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002823/0.002823, allocations: 103.8 kB / 0.6066 GB, free: 9.684 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1688, allocations: 89.14 MB / 0.6936 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPID): time 0.005552/0.1744, allocations: 3.737 MB / 0.6973 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002394/0.1768, allocations: 1.286 MB / 0.6985 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002853/0.1771, allocations: 23.88 kB / 0.6985 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.1775, allocations: 99.03 kB / 0.6986 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.178, allocations: 143 kB / 0.6988 GB, free: 11.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.179, allocations: 0.5369 MB / 0.6993 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00101/0.1801, allocations: 0.9604 MB / 0.7002 GB, free: 9.656 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005245/0.1806, allocations: 353.8 kB / 0.7006 GB, free: 9.293 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004108/0.181, allocations: 366.3 kB / 0.7009 GB, free: 8.934 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003783/0.1814, allocations: 354 kB / 0.7013 GB, free: 8.586 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1815, allocations: 79.94 kB / 0.7013 GB, free: 8.508 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.1816, allocations: 80 kB / 0.7014 GB, free: 8.43 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.1818, allocations: 175.3 kB / 0.7016 GB, free: 8.258 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.1821, allocations: 381.7 kB / 0.7019 GB, free: 7.883 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006691/0.1828, allocations: 0.6588 MB / 0.7026 GB, free: 7.223 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1828, allocations: 0 / 0.7026 GB, free: 7.223 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1828, allocations: 0 / 0.7026 GB, free: 7.223 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.445e-06/0.1828, allocations: 0 / 0.7026 GB, free: 7.223 MB / 0.545 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.002072/0.1849, allocations: 1.179 MB / 0.7037 GB, free: 5.984 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.185, allocations: 12.03 kB / 0.7038 GB, free: 5.973 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1851, allocations: 95.81 kB / 0.7038 GB, free: 5.879 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009359/0.1861, allocations: 0.6025 MB / 0.7044 GB, free: 5.234 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.1862, allocations: 92.97 kB / 0.7045 GB, free: 5.133 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-05/0.1863, allocations: 56.36 kB / 0.7046 GB, free: 5.078 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1875, allocations: 0.6003 MB / 0.7052 GB, free: 4.438 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1875, allocations: 4 kB / 0.7052 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.203e-05/0.1876, allocations: 24 kB / 0.7052 GB, free: 4.41 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.1876, allocations: 12 kB / 0.7052 GB, free: 4.398 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1886, allocations: 423.6 kB / 0.7056 GB, free: 3.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003201/0.1919, allocations: 2.118 MB / 0.7077 GB, free: 1.781 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.1932, allocations: 0.4959 MB / 0.7082 GB, free: 1.273 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004861/0.1937, allocations: 212.8 kB / 0.7084 GB, free: 1.062 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 5.571e-05/0.1938, allocations: 19.92 kB / 0.7084 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007804/0.1945, allocations: 274 kB / 0.7086 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of pre-optimization done (n=45): time 4.188e-06/0.1946, allocations: 0 / 0.7086 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of matching and sorting (n=45): time 0.001575/0.1961, allocations: 0.6152 MB / 0.7092 GB, free: 144 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.1962, allocations: 88.8 kB / 0.7093 GB, free: 36 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2715/0.4678, allocations: 0.6075 MB / 0.7099 GB, free: 50.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4679, allocations: 37.11 kB / 0.71 GB, free: 50.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002314/0.4682, allocations: 362.3 kB / 0.7103 GB, free: 50.61 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.644e-05/0.4683, allocations: 154.7 kB / 0.7104 GB, free: 50.58 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.4684, allocations: 91.02 kB / 0.7105 GB, free: 50.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.178e-05/0.4685, allocations: 327.4 kB / 0.7108 GB, free: 50.26 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/0.4689, allocations: 181.4 kB / 0.711 GB, free: 50.25 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.4694, allocations: 278.1 kB / 0.7113 GB, free: 50.15 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008429/0.4702, allocations: 478.5 kB / 0.7117 GB, free: 49.97 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.4702, allocations: 3.5 kB / 0.7117 GB, free: 49.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001129/0.4714, allocations: 0.5995 MB / 0.7123 GB, free: 49.71 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.4714, allocations: 33.75 kB / 0.7124 GB, free: 49.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.4714, allocations: 2.656 kB / 0.7124 GB, free: 49.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.4714, allocations: 6.188 kB / 0.7124 GB, free: 49.68 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004453/0.4719, allocations: 116 kB / 0.7125 GB, free: 49.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4719, allocations: 4.719 kB / 0.7125 GB, free: 49.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003735/0.4723, allocations: 70.34 kB / 0.7126 GB, free: 49.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.4723, allocations: 20.55 kB / 0.7126 GB, free: 49.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004604/0.4728, allocations: 305 kB / 0.7129 GB, free: 49.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000374/0.4732, allocations: 266.9 kB / 0.7131 GB, free: 49.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006733/0.4739, allocations: 456.7 kB / 0.7136 GB, free: 49.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-06/0.4739, allocations: 5.516 kB / 0.7136 GB, free: 49.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0008757/0.4748, allocations: 0.5707 MB / 0.7141 GB, free: 48.79 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.4748, allocations: 38.83 kB / 0.7142 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.4748, allocations: 6.781 kB / 0.7142 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.241e-06/0.4748, allocations: 6.484 kB / 0.7142 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.4752, allocations: 104.2 kB / 0.7143 GB, free: 48.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.4752, allocations: 10.94 kB / 0.7143 GB, free: 48.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.4756, allocations: 50.81 kB / 0.7143 GB, free: 48.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.4756, allocations: 21.12 kB / 0.7143 GB, free: 48.71 MB / 0.545 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.0001336/0.4757, allocations: 205.2 kB / 0.7145 GB, free: 48.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.882e-05/0.4758, allocations: 74.84 kB / 0.7146 GB, free: 48.48 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.476, allocations: 83.61 kB / 0.7147 GB, free: 48.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.476, allocations: 10.28 kB / 0.7147 GB, free: 48.42 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.476, allocations: 0 / 0.7147 GB, free: 48.42 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.476, allocations: 3.422 kB / 0.7147 GB, free: 48.42 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005008/0.4765, allocations: 0.6237 MB / 0.7153 GB, free: 48.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4765, allocations: 0.5625 kB / 0.7153 GB, free: 48.06 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004228/0.477, allocations: 83.77 kB / 0.7154 GB, free: 48.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.477, allocations: 3 kB / 0.7154 GB, free: 48.06 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.477, allocations: 9.375 kB / 0.7154 GB, free: 48.05 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.477, allocations: 7.844 kB / 0.7154 GB, free: 48.05 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.477, allocations: 0 / 0.7154 GB, free: 48.05 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.4783, allocations: 0.7282 MB / 0.7161 GB, free: 47.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.4784, allocations: 193.5 kB / 0.7163 GB, free: 47.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.4785, allocations: 10.53 kB / 0.7163 GB, free: 47.56 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003828/0.4789, allocations: 39.98 kB / 0.7164 GB, free: 47.55 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.999e-05/0.479, allocations: 29.59 kB / 0.7164 GB, free: 47.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.479, allocations: 14.83 kB / 0.7164 GB, free: 47.54 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003621/0.4794, allocations: 432.1 kB / 0.7168 GB, free: 47.36 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4794, allocations: 0 / 0.7168 GB, free: 47.36 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0005136/0.4799, allocations: 210.6 kB / 0.717 GB, free: 47.3 MB / 0.545 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.0001266/0.4801, allocations: 120.5 kB / 0.7171 GB, free: 47.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.4815, allocations: 0.8078 MB / 0.7179 GB, free: 46.87 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4815, allocations: 0 / 0.7179 GB, free: 46.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.4819, allocations: 213.5 kB / 0.7181 GB, free: 46.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008631/0.4827, allocations: 206.8 kB / 0.7183 GB, free: 46.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.4846, allocations: 1.473 MB / 0.7198 GB, free: 45.82 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.4849, allocations: 0.916 MB / 0.7206 GB, free: 45.11 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.485, allocations: 55.62 kB / 0.7207 GB, free: 45.09 MB / 0.545 GB Notification: Performance of SimCode: time 3.9e-07/0.485, allocations: 0 / 0.7207 GB, free: 45.09 MB / 0.545 GB Notification: Performance of Templates: time 0.01055/0.4956, allocations: 8.643 MB / 0.7291 GB, free: 44.24 MB / 0.545 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)