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: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7184/0.7184, 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.001042/0.001042, allocations: 184 kB / 187.3 MB, free: 11.88 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.38/1.38, allocations: 221.3 MB / 441.4 MB, free: 4.586 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.0008409/0.0008408, allocations: 93.97 kB / 0.5124 GB, free: 24.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001807/0.001807, allocations: 286.2 kB / 0.5939 GB, free: 7.934 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 5.732e-05/5.735e-05, allocations: 4 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3874, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1267/0.5142, allocations: 115.2 MB / 0.8769 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.5145, allocations: 80.45 kB / 0.8769 GB, free: 9.23 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03163/0.5461, allocations: 12.35 MB / 0.889 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.805e-06/0.5461, allocations: 0 / 0.889 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.052e-05/0.5462, allocations: 23.94 kB / 0.889 GB, free: 12.85 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.001379/0.5476, allocations: 0.8734 MB / 0.8899 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.5476, allocations: 8.031 kB / 0.8899 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.5478, allocations: 98.52 kB / 0.89 GB, free: 11.81 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.5479, allocations: 83.23 kB / 0.8901 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007728/0.5487, allocations: 0.5367 MB / 0.8906 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.755e-05/0.5487, allocations: 41.31 kB / 0.8906 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.633e-05/0.5488, allocations: 63.98 kB / 0.8907 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000969/0.5498, allocations: 0.6093 MB / 0.8913 GB, free: 10.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.5498, allocations: 4 kB / 0.8913 GB, free: 10.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.364e-05/0.5499, allocations: 24 kB / 0.8913 GB, free: 10.38 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.5499, allocations: 16 kB / 0.8913 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007534/0.5507, allocations: 429.1 kB / 0.8917 GB, free: 9.941 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002888/0.5536, allocations: 2.095 MB / 0.8938 GB, free: 7.785 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007064/0.5543, allocations: 432.9 kB / 0.8942 GB, free: 7.355 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.5546, allocations: 214.5 kB / 0.8944 GB, free: 7.141 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.5547, allocations: 12.39 kB / 0.8944 GB, free: 7.129 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000424/0.5551, allocations: 249.4 kB / 0.8946 GB, free: 6.875 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 5.28e-06/0.5551, allocations: 3.984 kB / 0.8946 GB, free: 6.871 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.0007185/0.5559, allocations: 431.4 kB / 0.895 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.556, allocations: 166.6 kB / 0.8952 GB, free: 6.242 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.5564, allocations: 391.9 kB / 0.8956 GB, free: 5.855 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.5565, allocations: 33.7 kB / 0.8956 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.5567, allocations: 321.1 kB / 0.8959 GB, free: 5.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.5568, allocations: 169.6 kB / 0.8961 GB, free: 5.332 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.552e-05/0.5569, allocations: 12 kB / 0.8961 GB, free: 5.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.557, allocations: 366.8 kB / 0.8964 GB, free: 4.953 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002687/0.5573, allocations: 153.1 kB / 0.8966 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000349/0.5576, allocations: 255.6 kB / 0.8968 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.558, allocations: 212.9 kB / 0.897 GB, free: 4.305 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.558, allocations: 7.938 kB / 0.897 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007899/0.5588, allocations: 0.5274 MB / 0.8976 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.5588, allocations: 33.66 kB / 0.8976 GB, free: 3.723 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.5588, allocations: 4 kB / 0.8976 GB, free: 3.719 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.5589, allocations: 4 kB / 0.8976 GB, free: 3.715 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004879/0.5594, allocations: 119.8 kB / 0.8977 GB, free: 3.598 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.5594, allocations: 11.98 kB / 0.8977 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.5598, allocations: 83.69 kB / 0.8978 GB, free: 3.504 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.5598, allocations: 19.98 kB / 0.8978 GB, free: 3.484 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.0001246/0.56, allocations: 142.5 kB / 0.898 GB, free: 3.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.251e-05/0.5601, allocations: 55.34 kB / 0.898 GB, free: 3.285 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.5602, allocations: 73.31 kB / 0.8981 GB, free: 3.211 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.5602, allocations: 4 kB / 0.8981 GB, free: 3.207 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5602, allocations: 0 / 0.8981 GB, free: 3.207 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5603, allocations: 0 / 0.8981 GB, free: 3.207 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.5618, allocations: 1.22 MB / 0.8993 GB, free: 1.926 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5618, allocations: 7.953 kB / 0.8993 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005188/0.5624, allocations: 111.8 kB / 0.8994 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.5624, allocations: 4 kB / 0.8994 GB, free: 1.805 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.5624, allocations: 8 kB / 0.8994 GB, free: 1.797 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5624, allocations: 4 kB / 0.8994 GB, free: 1.793 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.5624, allocations: 0 / 0.8994 GB, free: 1.793 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.5635, allocations: 0.7563 MB / 0.9001 GB, free: 1.023 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.5637, allocations: 180.3 kB / 0.9003 GB, free: 0.8281 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.751e-05/0.5638, allocations: 12 kB / 0.9003 GB, free: 0.8164 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.5642, allocations: 55.95 kB / 0.9004 GB, free: 0.7617 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.5643, allocations: 32.39 kB / 0.9004 GB, free: 0.7266 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.5643, allocations: 15.98 kB / 0.9004 GB, free: 0.7109 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003432/0.5647, allocations: 309.6 kB / 0.9007 GB, free: 420 kB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5647, allocations: 0 / 0.9007 GB, free: 420 kB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004471/0.5651, allocations: 151.5 kB / 0.9009 GB, free: 268 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.001345/0.5665, allocations: 1.331 MB / 0.9022 GB, free: 14.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006951/0.5672, allocations: 457.3 kB / 0.9026 GB, free: 14.45 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5672, allocations: 0 / 0.9026 GB, free: 14.45 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.5675, allocations: 214.4 kB / 0.9028 GB, free: 14.23 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.5682, allocations: 144.2 kB / 0.9029 GB, free: 14.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.5711, allocations: 1.379 MB / 0.9043 GB, free: 12.67 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.5716, allocations: 0.9021 MB / 0.9052 GB, free: 11.74 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.000286/0.5719, allocations: 68.55 kB / 0.9052 GB, free: 11.67 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003222/0.5722, allocations: 219.4 kB / 0.9054 GB, free: 11.45 MB / 0.573 GB Notification: Performance of SimCode: time 7.31e-07/0.5722, allocations: 0 / 0.9054 GB, free: 11.45 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.5977, allocations: 11.5 MB / 0.9167 GB, free: 236 kB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.5979, allocations: 168.5 kB / 0.9168 GB, free: 4 kB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.147/2.745, allocations: 0 / 0.9168 GB, free: 4 kB / 0.573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)