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.7731/0.7731, allocations: 143.4 MB / 158.3 MB, free: 5.664 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.00106/0.00106, allocations: 181.1 kB / 191.5 MB, free: 5.676 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.361/1.361, allocations: 223.2 MB / 447.7 MB, free: 4.852 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.001038/0.001038, allocations: 99.69 kB / 0.5188 GB, free: 1.215 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00163/0.00163, allocations: 258 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004181/0.0004181, allocations: 14.22 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1418, allocations: 82.8 MB / 0.7737 GB, free: 13.87 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.6103, allocations: 115.3 MB / 0.8863 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.6106, allocations: 84.36 kB / 0.8864 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03372/0.6444, allocations: 12.36 MB / 0.8984 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.715e-06/0.6444, allocations: 0 / 0.8984 GB, free: 20.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001275/0.6446, allocations: 18.44 kB / 0.8984 GB, free: 20.88 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.003041/0.6476, allocations: 0.9561 MB / 0.8994 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.6477, allocations: 8.719 kB / 0.8994 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004015/0.6481, allocations: 85.67 kB / 0.8995 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.6493, allocations: 0.5295 MB / 0.9 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.753e-05/0.6494, allocations: 46.22 kB / 0.9 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.6496, allocations: 57.5 kB / 0.9001 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.6511, allocations: 0.6541 MB / 0.9007 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.722e-05/0.6511, allocations: 0.9375 kB / 0.9007 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/0.6512, allocations: 27.62 kB / 0.9007 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.6512, allocations: 18.12 kB / 0.9008 GB, free: 19.8 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.6525, allocations: 0.5166 MB / 0.9013 GB, free: 19.79 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003624/0.6562, allocations: 2.097 MB / 0.9033 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.6574, allocations: 0.5294 MB / 0.9038 GB, free: 19.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.6574, allocations: 5.688 kB / 0.9038 GB, free: 19.08 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000698/0.6581, allocations: 309.6 kB / 0.9041 GB, free: 19.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=50): time 3.656e-06/0.6581, allocations: 0 / 0.9041 GB, free: 19.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.001567/0.6597, allocations: 0.7051 MB / 0.9048 GB, free: 18.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.6598, allocations: 165.5 kB / 0.905 GB, free: 18.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005555/0.6603, allocations: 400.8 kB / 0.9054 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.6604, allocations: 36.42 kB / 0.9054 GB, free: 18.59 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002183/0.6606, allocations: 320.2 kB / 0.9057 GB, free: 18.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.6608, allocations: 174.2 kB / 0.9059 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.382e-05/0.6608, allocations: 9.062 kB / 0.9059 GB, free: 18.32 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6609, allocations: 367.3 kB / 0.9062 GB, free: 18.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004514/0.6614, allocations: 205.9 kB / 0.9064 GB, free: 18.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.6619, allocations: 308.6 kB / 0.9067 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005068/0.6624, allocations: 257.4 kB / 0.907 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.6624, allocations: 1.562 kB / 0.907 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001222/0.6636, allocations: 0.6237 MB / 0.9076 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.6637, allocations: 36.52 kB / 0.9076 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.6637, allocations: 5.172 kB / 0.9076 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.6637, allocations: 5.406 kB / 0.9076 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005912/0.6643, allocations: 118.4 kB / 0.9077 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/0.6644, allocations: 7.969 kB / 0.9077 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/0.6649, allocations: 83.41 kB / 0.9078 GB, free: 17.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.665, allocations: 17.16 kB / 0.9078 GB, free: 17.68 MB / 0.5417 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 () * Number of clocked 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.000388/0.6654, allocations: 207 kB / 0.908 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.6655, allocations: 59.66 kB / 0.9081 GB, free: 17.54 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.6657, allocations: 63.98 kB / 0.9082 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.6657, allocations: 9.359 kB / 0.9082 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.6657, allocations: 5.844 kB / 0.9082 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.6658, allocations: 1.781 kB / 0.9082 GB, free: 17.52 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.6679, allocations: 1.311 MB / 0.9095 GB, free: 17.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.668, allocations: 0 / 0.9095 GB, free: 17.19 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005248/0.6685, allocations: 107.4 kB / 0.9096 GB, free: 17.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.6685, allocations: 10.08 kB / 0.9096 GB, free: 17.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.288e-05/0.6686, allocations: 16.83 kB / 0.9096 GB, free: 17.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.6686, allocations: 5.406 kB / 0.9096 GB, free: 17.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.6686, allocations: 4 kB / 0.9096 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.6701, allocations: 0.8883 MB / 0.9105 GB, free: 16.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.6704, allocations: 183.8 kB / 0.9106 GB, free: 16.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.865e-05/0.6705, allocations: 14.77 kB / 0.9106 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.671, allocations: 52.77 kB / 0.9107 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.6711, allocations: 36.58 kB / 0.9107 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.6711, allocations: 13.23 kB / 0.9107 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004735/0.6716, allocations: 315.4 kB / 0.911 GB, free: 16.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6716, allocations: 0 / 0.911 GB, free: 16.76 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006519/0.6723, allocations: 157.7 kB / 0.9112 GB, free: 16.73 MB / 0.5417 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) * Number of clocked states: 0 () * 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.000195/0.6725, allocations: 127 kB / 0.9113 GB, free: 16.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.6737, allocations: 0.5504 MB / 0.9119 GB, free: 16.54 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.6737, allocations: 0 / 0.9119 GB, free: 16.54 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004982/0.6742, allocations: 261.6 kB / 0.9121 GB, free: 16.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000759/0.675, allocations: 131.5 kB / 0.9122 GB, free: 16.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.6782, allocations: 1.832 MB / 0.914 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.6786, allocations: 0.9082 MB / 0.9149 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003105/0.6789, allocations: 60.66 kB / 0.915 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.679, allocations: 41.25 kB / 0.915 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of SimCode: time 5.81e-07/0.679, allocations: 0 / 0.915 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of Templates: time 0.0109/0.6899, allocations: 6.223 MB / 0.9211 GB, free: 14.46 MB / 0.5417 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)