Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.526/2.526, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 174.9 kB / 0.4902 GB, free: 2.227 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.809/1.809, allocations: 223.1 MB / 0.7992 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 102 kB / 0.9396 GB, free: 2.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004474/0.0004475, allocations: 8.812 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3783, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2381/0.6165, allocations: 158.6 MB / 1.384 GB, free: 6.676 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.6168, allocations: 95.94 kB / 1.384 GB, free: 6.582 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02166/0.6385, allocations: 7.552 MB / 1.392 GB, free: 15 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.216e-06/0.6386, allocations: 4 kB / 1.392 GB, free: 15 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 7.38e-05/0.6386, allocations: 8 kB / 1.392 GB, free: 14.99 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001931/0.6406, allocations: 0.7003 MB / 1.392 GB, free: 14.24 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 6.825e-05/0.6407, allocations: 12.56 kB / 1.392 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/0.641, allocations: 55.39 kB / 1.392 GB, free: 14.18 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009372/0.6419, allocations: 399.5 kB / 1.393 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.642, allocations: 29 kB / 1.393 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.373e-05/0.6421, allocations: 36 kB / 1.393 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009499/0.643, allocations: 426.4 kB / 1.393 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.6431, allocations: 4 kB / 1.393 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.568e-05/0.6431, allocations: 12 kB / 1.393 GB, free: 13.22 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.6432, allocations: 16 kB / 1.393 GB, free: 13.2 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007627/0.6439, allocations: 299.8 kB / 1.393 GB, free: 12.91 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002631/0.6466, allocations: 1.367 MB / 1.395 GB, free: 11.47 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008887/0.6475, allocations: 368.8 kB / 1.395 GB, free: 11.1 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.6476, allocations: 4 kB / 1.395 GB, free: 11.1 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.648, allocations: 197.5 kB / 1.395 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=33): time 3.026e-06/0.648, allocations: 0 / 1.395 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of matching and sorting (n=33): time 0.001009/0.6491, allocations: 434.6 kB / 1.396 GB, free: 10.46 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.6492, allocations: 132.5 kB / 1.396 GB, free: 10.3 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.6496, allocations: 320.8 kB / 1.396 GB, free: 9.988 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.429e-05/0.6497, allocations: 37.7 kB / 1.396 GB, free: 9.945 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.65, allocations: 228.1 kB / 1.396 GB, free: 9.715 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.6501, allocations: 102.5 kB / 1.397 GB, free: 9.613 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-05/0.6501, allocations: 12 kB / 1.397 GB, free: 9.602 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0002281/0.6504, allocations: 354.7 kB / 1.397 GB, free: 9.246 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.6507, allocations: 112 kB / 1.397 GB, free: 9.137 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.651, allocations: 195.7 kB / 1.397 GB, free: 8.922 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.6513, allocations: 121.6 kB / 1.397 GB, free: 8.805 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.6513, allocations: 0 / 1.397 GB, free: 8.805 MB / 0.9011 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007796/0.6521, allocations: 370.8 kB / 1.398 GB, free: 8.438 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.6521, allocations: 4 kB / 1.398 GB, free: 8.434 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.6522, allocations: 4 kB / 1.398 GB, free: 8.43 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.6522, allocations: 0 / 1.398 GB, free: 8.43 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.6525, allocations: 71.89 kB / 1.398 GB, free: 8.359 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.6525, allocations: 7.938 kB / 1.398 GB, free: 8.352 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.6528, allocations: 51.8 kB / 1.398 GB, free: 8.301 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.6529, allocations: 12 kB / 1.398 GB, free: 8.289 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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.0002704/0.6531, allocations: 173.7 kB / 1.398 GB, free: 8.109 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-05/0.6532, allocations: 43.47 kB / 1.398 GB, free: 8.066 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.6534, allocations: 44.25 kB / 1.398 GB, free: 8.023 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.6534, allocations: 4 kB / 1.398 GB, free: 8.02 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.6534, allocations: 7.938 kB / 1.398 GB, free: 8.012 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.6534, allocations: 3.984 kB / 1.398 GB, free: 8.008 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.6548, allocations: 0.8584 MB / 1.399 GB, free: 7.094 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.6548, allocations: 4 kB / 1.399 GB, free: 7.09 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.6551, allocations: 59.91 kB / 1.399 GB, free: 7.031 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.6551, allocations: 0 / 1.399 GB, free: 7.031 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/0.6552, allocations: 8 kB / 1.399 GB, free: 7.023 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.6552, allocations: 0 / 1.399 GB, free: 7.023 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6552, allocations: 0 / 1.399 GB, free: 7.023 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.6563, allocations: 0.5769 MB / 1.4 GB, free: 6.43 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.6565, allocations: 148.6 kB / 1.4 GB, free: 6.266 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.6565, allocations: 8.062 kB / 1.4 GB, free: 6.258 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.6568, allocations: 35.88 kB / 1.4 GB, free: 6.223 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.392e-05/0.6569, allocations: 27.95 kB / 1.4 GB, free: 6.195 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.6569, allocations: 4 kB / 1.4 GB, free: 6.191 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003153/0.6572, allocations: 251.2 kB / 1.4 GB, free: 5.945 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6573, allocations: 0 / 1.4 GB, free: 5.945 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003982/0.6577, allocations: 87.84 kB / 1.4 GB, free: 5.859 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001866/0.6579, allocations: 116.9 kB / 1.4 GB, free: 5.734 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006357/0.6585, allocations: 292 kB / 1.4 GB, free: 5.449 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.6585, allocations: 3.984 kB / 1.4 GB, free: 5.445 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.6588, allocations: 147.9 kB / 1.401 GB, free: 5.301 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/0.6594, allocations: 74.55 kB / 1.401 GB, free: 5.227 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.6612, allocations: 0.9815 MB / 1.402 GB, free: 4.219 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.6618, allocations: 0.823 MB / 1.402 GB, free: 3.363 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002041/0.662, allocations: 43.27 kB / 1.402 GB, free: 3.32 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.739e-05/0.6621, allocations: 27.44 kB / 1.402 GB, free: 3.297 MB / 0.9011 GB Notification: Performance of SimCode: time 2.51e-07/0.6621, allocations: 0 / 1.402 GB, free: 3.297 MB / 0.9011 GB Notification: Performance of Templates: time 0.5931/1.255, allocations: 3.717 MB / 1.406 GB, free: 169.2 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.csv","../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches