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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8464/0.8464, allocations: 141.8 MB / 149.3 MB, free: 9.23 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009815/0.0009815, allocations: 172.9 kB / 182.2 MB, free: 9.469 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 221.5 MB / 436.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 88.05 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00167/0.00167, allocations: 290.9 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.327e-05, allocations: 4 kB / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4725/0.4725, allocations: 82.77 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.6169, allocations: 114.5 MB / 0.8692 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.6172, allocations: 79.83 kB / 0.8693 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03202/0.6492, allocations: 12.25 MB / 0.8812 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.222e-06/0.6493, allocations: 4 kB / 0.8813 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.348e-05/0.6493, allocations: 16 kB / 0.8813 GB, free: 0.9531 MB / 0.5417 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.001679/0.651, allocations: 0.8683 MB / 0.8821 GB, free: 36 kB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.6511, allocations: 8.031 kB / 0.8821 GB, free: 28 kB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002401/0.6513, allocations: 87.06 kB / 0.8822 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008747/0.6522, allocations: 0.5388 MB / 0.8827 GB, free: 15.36 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.6522, allocations: 16 kB / 0.8827 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.344e-05/0.6523, allocations: 36 kB / 0.8828 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007933/0.6531, allocations: 390.6 kB / 0.8832 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000921/0.6541, allocations: 0.5208 MB / 0.8837 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.6541, allocations: 0 / 0.8837 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-05/0.6542, allocations: 8 kB / 0.8837 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.6542, allocations: 12 kB / 0.8837 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003016/0.6572, allocations: 1.984 MB / 0.8856 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006689/0.6579, allocations: 399.5 kB / 0.886 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002939/0.6582, allocations: 208.4 kB / 0.8862 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.6583, allocations: 8.438 kB / 0.8862 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004169/0.6587, allocations: 244.4 kB / 0.8864 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.6587, allocations: 0 / 0.8864 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.0006822/0.6594, allocations: 396.2 kB / 0.8868 GB, free: 11.06 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.785e-05/0.6595, allocations: 170.5 kB / 0.887 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.6599, allocations: 353.1 kB / 0.8873 GB, free: 10.51 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.256e-05/0.6599, allocations: 33.7 kB / 0.8873 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002257/0.6601, allocations: 316.3 kB / 0.8877 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.6603, allocations: 161.6 kB / 0.8878 GB, free: 9.996 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.6603, allocations: 0 / 0.8878 GB, free: 9.996 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.6604, allocations: 366.8 kB / 0.8882 GB, free: 9.629 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.6607, allocations: 141.1 kB / 0.8883 GB, free: 9.492 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.661, allocations: 254.4 kB / 0.8885 GB, free: 9.207 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.6613, allocations: 162.1 kB / 0.8887 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6613, allocations: 0 / 0.8887 GB, free: 9.055 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007245/0.662, allocations: 470.3 kB / 0.8891 GB, free: 8.586 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.6621, allocations: 37.69 kB / 0.8892 GB, free: 8.543 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.6621, allocations: 0 / 0.8892 GB, free: 8.543 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.6621, allocations: 11.95 kB / 0.8892 GB, free: 8.531 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.6627, allocations: 124 kB / 0.8893 GB, free: 8.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.6627, allocations: 4 kB / 0.8893 GB, free: 8.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.6631, allocations: 63.64 kB / 0.8894 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.6632, allocations: 23.67 kB / 0.8894 GB, free: 8.324 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001245/0.6633, allocations: 116.9 kB / 0.8895 GB, free: 8.203 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.813e-05/0.6634, allocations: 55.34 kB / 0.8896 GB, free: 8.148 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.6635, allocations: 57.19 kB / 0.8896 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.6635, allocations: 8 kB / 0.8896 GB, free: 8.086 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.6635, allocations: 3.953 kB / 0.8896 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.6636, allocations: 3.984 kB / 0.8896 GB, free: 8.078 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.665, allocations: 1.1 MB / 0.8907 GB, free: 6.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.6651, allocations: 0 / 0.8907 GB, free: 6.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005365/0.6656, allocations: 111.8 kB / 0.8908 GB, free: 6.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.6656, allocations: 7.938 kB / 0.8908 GB, free: 6.812 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.6657, allocations: 11.98 kB / 0.8908 GB, free: 6.801 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.6657, allocations: 7.953 kB / 0.8908 GB, free: 6.793 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.6657, allocations: 0 / 0.8908 GB, free: 6.793 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.6667, allocations: 0.7134 MB / 0.8915 GB, free: 6.07 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.6669, allocations: 172.5 kB / 0.8917 GB, free: 5.883 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.459e-05/0.667, allocations: 8 kB / 0.8917 GB, free: 5.875 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.6674, allocations: 47.86 kB / 0.8917 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.6675, allocations: 40.33 kB / 0.8918 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.6676, allocations: 12 kB / 0.8918 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002976/0.6679, allocations: 271 kB / 0.8921 GB, free: 5.516 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6679, allocations: 0 / 0.8921 GB, free: 5.516 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004763/0.6684, allocations: 135.5 kB / 0.8922 GB, free: 5.383 MB / 0.5573 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.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.000176/0.6685, allocations: 123.1 kB / 0.8923 GB, free: 5.254 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0006596/0.6692, allocations: 439.1 kB / 0.8927 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6692, allocations: 0 / 0.8927 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002945/0.6695, allocations: 197.6 kB / 0.8929 GB, free: 4.613 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006814/0.6702, allocations: 116.2 kB / 0.893 GB, free: 4.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.6729, allocations: 1.233 MB / 0.8942 GB, free: 3.238 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.6734, allocations: 0.9056 MB / 0.8951 GB, free: 2.305 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002905/0.6737, allocations: 68.34 kB / 0.8952 GB, free: 2.234 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.6738, allocations: 35.44 kB / 0.8952 GB, free: 2.199 MB / 0.5573 GB Notification: Performance of SimCode: time 3.31e-07/0.6738, allocations: 3.938 kB / 0.8952 GB, free: 2.195 MB / 0.5573 GB Notification: Performance of Templates: time 0.3368/1.011, allocations: 5.52 MB / 0.9006 GB, free: 127.8 MB / 0.5573 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)