Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.405/1.405, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 184.9 kB / 316.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 85.41 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.061e-05/2.063e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2634, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9128/1.176, allocations: 139.7 MB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/1.177, allocations: 77.58 kB / 1.022 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01875/1.195, allocations: 7.515 MB / 1.029 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.332e-06/1.195, allocations: 0 / 1.029 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.448e-05/1.195, allocations: 12 kB / 1.029 GB, free: 7.855 MB / 0.6511 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.001061/1.197, allocations: 0.6408 MB / 1.03 GB, free: 7.203 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/1.197, allocations: 12.03 kB / 1.03 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/1.197, allocations: 55.34 kB / 1.03 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005718/1.197, allocations: 403.4 kB / 1.03 GB, free: 6.762 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/1.197, allocations: 12 kB / 1.03 GB, free: 6.75 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/1.197, allocations: 20 kB / 1.03 GB, free: 6.73 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004676/1.198, allocations: 232.3 kB / 1.03 GB, free: 6.598 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/1.198, allocations: 338 kB / 1.031 GB, free: 6.324 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/1.198, allocations: 4 kB / 1.031 GB, free: 6.32 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/1.198, allocations: 3.984 kB / 1.031 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/1.199, allocations: 8 kB / 1.031 GB, free: 6.309 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/1.2, allocations: 1.294 MB / 1.032 GB, free: 5.195 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005169/1.201, allocations: 303 kB / 1.032 GB, free: 5 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/1.201, allocations: 113.2 kB / 1.032 GB, free: 4.934 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/1.201, allocations: 4 kB / 1.032 GB, free: 4.93 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/1.201, allocations: 161 kB / 1.033 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 3.858e-06/1.201, allocations: 0 / 1.033 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.0004954/1.202, allocations: 262.3 kB / 1.033 GB, free: 4.602 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/1.202, allocations: 132.5 kB / 1.033 GB, free: 4.441 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002854/1.202, allocations: 276.8 kB / 1.033 GB, free: 4.219 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/1.202, allocations: 25.7 kB / 1.033 GB, free: 4.188 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/1.202, allocations: 225.4 kB / 1.033 GB, free: 4.016 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.537e-05/1.203, allocations: 108.6 kB / 1.034 GB, free: 3.922 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/1.203, allocations: 7.938 kB / 1.034 GB, free: 3.914 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.203, allocations: 347.3 kB / 1.034 GB, free: 3.582 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/1.203, allocations: 84.06 kB / 1.034 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/1.203, allocations: 155.8 kB / 1.034 GB, free: 3.41 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/1.203, allocations: 96.36 kB / 1.034 GB, free: 3.352 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/1.203, allocations: 0 / 1.034 GB, free: 3.352 MB / 0.6511 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004423/1.204, allocations: 304 kB / 1.034 GB, free: 3.121 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/1.204, allocations: 4 kB / 1.034 GB, free: 3.117 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/1.204, allocations: 4 kB / 1.034 GB, free: 3.113 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/1.204, allocations: 0 / 1.034 GB, free: 3.113 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/1.204, allocations: 74.64 kB / 1.035 GB, free: 3.043 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/1.204, allocations: 4 kB / 1.035 GB, free: 3.039 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/1.204, allocations: 39.7 kB / 1.035 GB, free: 3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.649e-05/1.204, allocations: 15.69 kB / 1.035 GB, free: 2.988 MB / 0.6511 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 () * 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.0001221/1.204, allocations: 117.2 kB / 1.035 GB, free: 2.867 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/1.205, allocations: 43.48 kB / 1.035 GB, free: 2.824 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.648e-05/1.205, allocations: 40 kB / 1.035 GB, free: 2.805 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/1.205, allocations: 4 kB / 1.035 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/1.205, allocations: 0 / 1.035 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/1.205, allocations: 0 / 1.035 GB, free: 2.801 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/1.206, allocations: 0.7533 MB / 1.036 GB, free: 2.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/1.206, allocations: 0 / 1.036 GB, free: 2.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/1.206, allocations: 59.41 kB / 1.036 GB, free: 2.125 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/1.206, allocations: 4 kB / 1.036 GB, free: 2.121 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/1.206, allocations: 0 / 1.036 GB, free: 2.121 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/1.206, allocations: 0 / 1.036 GB, free: 2.121 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.206, allocations: 0 / 1.036 GB, free: 2.121 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/1.207, allocations: 493.1 kB / 1.036 GB, free: 1.75 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/1.207, allocations: 145.6 kB / 1.036 GB, free: 1.605 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/1.207, allocations: 4 kB / 1.036 GB, free: 1.602 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/1.207, allocations: 23.97 kB / 1.036 GB, free: 1.578 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.513e-05/1.207, allocations: 27.02 kB / 1.036 GB, free: 1.555 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/1.207, allocations: 11.81 kB / 1.036 GB, free: 1.547 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002121/1.207, allocations: 208.3 kB / 1.036 GB, free: 1.387 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/1.207, allocations: 4 kB / 1.036 GB, free: 1.383 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003249/1.208, allocations: 75.75 kB / 1.037 GB, free: 1.309 MB / 0.6511 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) * 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.0001936/1.208, allocations: 117 kB / 1.037 GB, free: 1.191 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004315/1.208, allocations: 233.9 kB / 1.037 GB, free: 1.039 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.208, allocations: 0 / 1.037 GB, free: 1.039 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/1.209, allocations: 117.8 kB / 1.037 GB, free: 0.9609 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/1.209, allocations: 73.89 kB / 1.037 GB, free: 0.9023 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/1.21, allocations: 0.5644 MB / 1.038 GB, free: 388 kB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/1.211, allocations: 0.8191 MB / 1.038 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001709/1.211, allocations: 47.2 kB / 1.038 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/1.211, allocations: 27.44 kB / 1.038 GB, free: 15.46 MB / 0.6667 GB Notification: Performance of SimCode: time 3.41e-07/1.211, allocations: 0 / 1.038 GB, free: 15.46 MB / 0.6667 GB Notification: Performance of Templates: time 0.007411/1.218, allocations: 3.362 MB / 1.042 GB, free: 12.14 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches