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.7375/0.7375, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009555/0.0009555, allocations: 189.9 kB / 187.3 MB, free: 11.89 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.424/1.424, allocations: 221.3 MB / 441.4 MB, free: 4.617 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.0009265/0.0009263, allocations: 96.97 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002636/0.002636, allocations: 280.3 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.085e-05/3.088e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4069/0.407, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.5266, allocations: 115.2 MB / 0.8768 GB, free: 9.344 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.5268, allocations: 83.83 kB / 0.8768 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03166/0.5585, allocations: 12.34 MB / 0.8889 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5585, allocations: 0 / 0.8889 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.718e-05/0.5586, allocations: 20.12 kB / 0.8889 GB, free: 12.9 MB / 0.5573 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.001512/0.5601, allocations: 0.8683 MB / 0.8898 GB, free: 11.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.5601, allocations: 8.25 kB / 0.8898 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.5603, allocations: 83.02 kB / 0.8899 GB, free: 11.89 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000801/0.5611, allocations: 0.5367 MB / 0.8904 GB, free: 11.31 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/0.5612, allocations: 49.31 kB / 0.8904 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.762e-05/0.5612, allocations: 60 kB / 0.8905 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.5623, allocations: 0.6054 MB / 0.8911 GB, free: 10.56 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.5623, allocations: 4 kB / 0.8911 GB, free: 10.56 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.5624, allocations: 20 kB / 0.8911 GB, free: 10.54 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.5624, allocations: 16 kB / 0.8911 GB, free: 10.52 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.5631, allocations: 437.1 kB / 0.8915 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003029/0.5662, allocations: 2.095 MB / 0.8936 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007082/0.5669, allocations: 437 kB / 0.894 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.5672, allocations: 214.5 kB / 0.8942 GB, free: 7.289 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.5673, allocations: 4.438 kB / 0.8942 GB, free: 7.285 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004326/0.5677, allocations: 257.4 kB / 0.8944 GB, free: 7.023 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 2.795e-06/0.5677, allocations: 0 / 0.8944 GB, free: 7.023 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.0007667/0.5685, allocations: 427.5 kB / 0.8949 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.011e-05/0.5686, allocations: 166.6 kB / 0.895 GB, free: 6.398 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004298/0.569, allocations: 395.9 kB / 0.8954 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.5691, allocations: 37.7 kB / 0.8954 GB, free: 5.965 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.5693, allocations: 317.1 kB / 0.8957 GB, free: 5.652 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.5694, allocations: 165.6 kB / 0.8959 GB, free: 5.488 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.5695, allocations: 12 kB / 0.8959 GB, free: 5.477 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.5696, allocations: 366.8 kB / 0.8962 GB, free: 5.109 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.5699, allocations: 153.1 kB / 0.8964 GB, free: 4.961 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.5702, allocations: 259.6 kB / 0.8966 GB, free: 4.672 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.5705, allocations: 212.8 kB / 0.8968 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5705, allocations: 4 kB / 0.8968 GB, free: 4.453 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007782/0.5713, allocations: 0.5312 MB / 0.8974 GB, free: 3.914 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.5714, allocations: 33.66 kB / 0.8974 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.5714, allocations: 4 kB / 0.8974 GB, free: 3.871 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.5714, allocations: 4 kB / 0.8974 GB, free: 3.867 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.5719, allocations: 124 kB / 0.8975 GB, free: 3.746 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.5719, allocations: 4 kB / 0.8975 GB, free: 3.742 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004325/0.5724, allocations: 87.48 kB / 0.8976 GB, free: 3.656 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/0.5724, allocations: 16 kB / 0.8976 GB, free: 3.641 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.0001535/0.5726, allocations: 142.6 kB / 0.8978 GB, free: 3.496 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.5727, allocations: 59.33 kB / 0.8978 GB, free: 3.438 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.5728, allocations: 65.33 kB / 0.8979 GB, free: 3.371 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5728, allocations: 4 kB / 0.8979 GB, free: 3.367 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.5728, allocations: 4 kB / 0.8979 GB, free: 3.363 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.5729, allocations: 3.984 kB / 0.8979 GB, free: 3.359 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.5744, allocations: 1.228 MB / 0.8991 GB, free: 2.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.5744, allocations: 0 / 0.8991 GB, free: 2.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000515/0.5749, allocations: 111.8 kB / 0.8992 GB, free: 1.961 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.575, allocations: 0 / 0.8992 GB, free: 1.961 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.575, allocations: 12 kB / 0.8992 GB, free: 1.949 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.575, allocations: 6.734 kB / 0.8992 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.575, allocations: 3.938 kB / 0.8992 GB, free: 1.941 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009855/0.576, allocations: 0.7486 MB / 0.9 GB, free: 1.18 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.5762, allocations: 180.4 kB / 0.9001 GB, free: 0.9844 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.985e-05/0.5763, allocations: 16.08 kB / 0.9001 GB, free: 0.9688 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.5767, allocations: 63.89 kB / 0.9002 GB, free: 0.9062 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.16e-05/0.5768, allocations: 32.39 kB / 0.9002 GB, free: 0.8711 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.5769, allocations: 15.98 kB / 0.9002 GB, free: 0.8555 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000316/0.5772, allocations: 309.6 kB / 0.9005 GB, free: 0.5547 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5772, allocations: 0 / 0.9005 GB, free: 0.5547 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004415/0.5776, allocations: 151.5 kB / 0.9007 GB, free: 416 kB / 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.0001454/0.5778, allocations: 125.5 kB / 0.9008 GB, free: 284 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.000674/0.5785, allocations: 461.2 kB / 0.9012 GB, free: 15.81 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5785, allocations: 3.938 kB / 0.9012 GB, free: 15.81 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.5788, allocations: 206.5 kB / 0.9014 GB, free: 15.61 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006534/0.5795, allocations: 132.1 kB / 0.9016 GB, free: 15.48 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.5821, allocations: 1.268 MB / 0.9028 GB, free: 14.18 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.5825, allocations: 0.906 MB / 0.9037 GB, free: 13.24 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002946/0.5828, allocations: 60.56 kB / 0.9038 GB, free: 13.18 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.5829, allocations: 43.42 kB / 0.9038 GB, free: 13.14 MB / 0.573 GB Notification: Performance of SimCode: time 1.523e-06/0.5829, allocations: 0 / 0.9038 GB, free: 13.14 MB / 0.573 GB Notification: Performance of Templates: time 0.01252/0.5954, allocations: 6.243 MB / 0.9099 GB, free: 6.996 MB / 0.573 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)