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.001167/0.001167, allocations: 110.5 kB / 16.38 MB, free: 6.004 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.00103/0.00103, allocations: 191.2 kB / 17.32 MB, free: 5.613 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.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002182/0.002183, allocations: 273.3 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9444/0.9444, allocations: 169.3 MB / 0.4989 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 103.8 kB / 0.682 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4403/0.442, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.004926/0.447, allocations: 4.122 MB / 0.771 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002216/0.4492, allocations: 1.329 MB / 0.7723 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003096/0.4496, allocations: 27.88 kB / 0.7723 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003175/0.4499, allocations: 122.8 kB / 0.7724 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.4502, allocations: 174.4 kB / 0.7726 GB, free: 14.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007709/0.451, allocations: 422 kB / 0.773 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007925/0.4518, allocations: 0.9593 MB / 0.7739 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005675/0.4524, allocations: 469.7 kB / 0.7744 GB, free: 12.28 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.4527, allocations: 326.8 kB / 0.7747 GB, free: 11.96 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.453, allocations: 338.3 kB / 0.775 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.985e-05/0.4531, allocations: 92 kB / 0.7751 GB, free: 11.54 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.885e-05/0.4532, allocations: 92 kB / 0.7752 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.4534, allocations: 183.3 kB / 0.7754 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.4537, allocations: 390.1 kB / 0.7757 GB, free: 10.89 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008009/0.4545, allocations: 1.058 MB / 0.7768 GB, free: 9.828 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4545, allocations: 0 / 0.7768 GB, free: 9.828 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4545, allocations: 0 / 0.7768 GB, free: 9.828 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.21e-05/0.4545, allocations: 0 / 0.7768 GB, free: 9.828 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001691/0.4562, allocations: 1.092 MB / 0.7778 GB, free: 8.676 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.4563, allocations: 8.031 kB / 0.7778 GB, free: 8.668 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.4564, allocations: 80 kB / 0.7779 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008621/0.4573, allocations: 0.5651 MB / 0.7785 GB, free: 7.988 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.4573, allocations: 41.69 kB / 0.7785 GB, free: 7.949 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.031e-05/0.4574, allocations: 56.38 kB / 0.7786 GB, free: 7.895 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009912/0.4584, allocations: 0.6079 MB / 0.7792 GB, free: 7.266 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.4584, allocations: 11.84 kB / 0.7792 GB, free: 7.254 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.4585, allocations: 24 kB / 0.7792 GB, free: 7.23 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.4585, allocations: 12 kB / 0.7792 GB, free: 7.219 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.4594, allocations: 461 kB / 0.7796 GB, free: 6.766 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.462, allocations: 1.985 MB / 0.7816 GB, free: 4.711 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008819/0.4629, allocations: 441 kB / 0.782 GB, free: 4.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004328/0.4634, allocations: 242.1 kB / 0.7822 GB, free: 4.031 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.4634, allocations: 4.438 kB / 0.7822 GB, free: 4.027 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004955/0.4639, allocations: 265.1 kB / 0.7825 GB, free: 3.758 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/0.4639, allocations: 4 kB / 0.7825 GB, free: 3.754 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.001261/0.4652, allocations: 0.5766 MB / 0.7831 GB, free: 3.176 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.4652, allocations: 59.83 kB / 0.7831 GB, free: 3.105 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.4657, allocations: 442.8 kB / 0.7835 GB, free: 2.664 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.4657, allocations: 37.7 kB / 0.7836 GB, free: 2.621 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.466, allocations: 336.2 kB / 0.7839 GB, free: 2.285 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.4661, allocations: 173.4 kB / 0.7841 GB, free: 2.113 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.4662, allocations: 90.25 kB / 0.7841 GB, free: 2.016 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4663, allocations: 366.8 kB / 0.7845 GB, free: 1.648 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003744/0.4667, allocations: 161 kB / 0.7846 GB, free: 1.492 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.4672, allocations: 249.8 kB / 0.7849 GB, free: 1.223 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007745/0.4679, allocations: 452 kB / 0.7853 GB, free: 0.7539 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.468, allocations: 4 kB / 0.7853 GB, free: 0.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009952/0.469, allocations: 0.5623 MB / 0.7859 GB, free: 176 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.469, allocations: 37.64 kB / 0.7859 GB, free: 132 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.469, allocations: 7.984 kB / 0.7859 GB, free: 124 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.469, allocations: 7.938 kB / 0.7859 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.4695, allocations: 120.1 kB / 0.786 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.4696, allocations: 4 kB / 0.786 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.4699, allocations: 51.52 kB / 0.7861 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.4699, allocations: 20 kB / 0.7861 GB, free: 15.92 MB / 0.5606 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.0002338/0.4702, allocations: 213.2 kB / 0.7863 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.4702, allocations: 59.28 kB / 0.7864 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.4704, allocations: 69.58 kB / 0.7864 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.4704, allocations: 4 kB / 0.7864 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.4704, allocations: 0 / 0.7864 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4704, allocations: 3.984 kB / 0.7864 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.472, allocations: 1.17 MB / 0.7876 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.472, allocations: 0 / 0.7876 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.4725, allocations: 95.89 kB / 0.7877 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.4725, allocations: 4 kB / 0.7877 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.846e-05/0.4726, allocations: 19.98 kB / 0.7877 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.4726, allocations: 3.984 kB / 0.7877 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4726, allocations: 0 / 0.7877 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.4739, allocations: 0.7689 MB / 0.7885 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.474, allocations: 168.3 kB / 0.7886 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.4741, allocations: 8 kB / 0.7886 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.4744, allocations: 27.97 kB / 0.7886 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.599e-05/0.4745, allocations: 32.39 kB / 0.7887 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.4745, allocations: 12 kB / 0.7887 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003062/0.4748, allocations: 310.9 kB / 0.789 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4748, allocations: 4 kB / 0.789 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004204/0.4753, allocations: 143.5 kB / 0.7891 GB, free: 12.73 MB / 0.5606 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.0001167/0.4754, allocations: 107.2 kB / 0.7892 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009056/0.4763, allocations: 485.5 kB / 0.7897 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4763, allocations: 0 / 0.7897 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004112/0.4767, allocations: 222.3 kB / 0.7899 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007254/0.4775, allocations: 148.9 kB / 0.79 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.4799, allocations: 1.374 MB / 0.7914 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.4804, allocations: 0.8899 MB / 0.7923 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.4805, allocations: 47.36 kB / 0.7923 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of SimCode: time 3.31e-07/0.4805, allocations: 4 kB / 0.7923 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of Templates: time 0.009493/0.49, allocations: 7.596 MB / 0.7997 GB, free: 1.844 MB / 0.5606 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)