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.404/1.404, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001234/0.001234, allocations: 193.1 kB / 326.5 MB, free: 2.234 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.888/1.888, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.000823/0.0008229, allocations: 91.78 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003402, allocations: 12.97 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.237, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.4115, allocations: 139.5 MB / 1.036 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.4119, allocations: 79.95 kB / 1.036 GB, free: 4.188 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01966/0.4315, allocations: 7.599 MB / 1.044 GB, free: 12.56 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4316, allocations: 0 / 1.044 GB, free: 12.56 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.256e-05/0.4316, allocations: 8 kB / 1.044 GB, free: 12.55 MB / 0.698 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.001319/0.433, allocations: 0.7075 MB / 1.045 GB, free: 11.79 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.433, allocations: 8.031 kB / 1.045 GB, free: 11.79 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.4332, allocations: 55.34 kB / 1.045 GB, free: 11.73 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006673/0.4338, allocations: 407.5 kB / 1.045 GB, free: 11.29 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.4339, allocations: 33 kB / 1.045 GB, free: 11.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.812e-05/0.434, allocations: 36 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.4347, allocations: 418.4 kB / 1.045 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.4347, allocations: 0 / 1.045 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.085e-05/0.4348, allocations: 19.98 kB / 1.045 GB, free: 10.77 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.4348, allocations: 12 kB / 1.045 GB, free: 10.75 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006147/0.4354, allocations: 295.8 kB / 1.046 GB, free: 10.47 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.4374, allocations: 1.379 MB / 1.047 GB, free: 9.012 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000735/0.4382, allocations: 353.5 kB / 1.047 GB, free: 8.66 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.4382, allocations: 8 kB / 1.047 GB, free: 8.652 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.4386, allocations: 185.5 kB / 1.048 GB, free: 8.457 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.4386, allocations: 0 / 1.048 GB, free: 8.457 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.0008513/0.4395, allocations: 434.6 kB / 1.048 GB, free: 8.027 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/0.4396, allocations: 144.4 kB / 1.048 GB, free: 7.855 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.44, allocations: 316.8 kB / 1.048 GB, free: 7.547 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.44, allocations: 41.7 kB / 1.048 GB, free: 7.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.4402, allocations: 224.8 kB / 1.049 GB, free: 7.273 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.4403, allocations: 102.5 kB / 1.049 GB, free: 7.172 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.4404, allocations: 8 kB / 1.049 GB, free: 7.164 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4405, allocations: 350.8 kB / 1.049 GB, free: 6.812 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.4408, allocations: 111.9 kB / 1.049 GB, free: 6.703 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.4412, allocations: 187.1 kB / 1.049 GB, free: 6.496 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.4414, allocations: 134.2 kB / 1.05 GB, free: 6.367 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4415, allocations: 0 / 1.05 GB, free: 6.367 MB / 0.698 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006812/0.4421, allocations: 374.1 kB / 1.05 GB, free: 5.996 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4422, allocations: 4 kB / 1.05 GB, free: 5.992 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.4422, allocations: 7.984 kB / 1.05 GB, free: 5.984 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.4422, allocations: 0 / 1.05 GB, free: 5.984 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.4425, allocations: 63.91 kB / 1.05 GB, free: 5.922 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.4425, allocations: 7.938 kB / 1.05 GB, free: 5.914 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.4428, allocations: 55.78 kB / 1.05 GB, free: 5.859 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.4428, allocations: 12 kB / 1.05 GB, free: 5.848 MB / 0.698 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.0002134/0.443, allocations: 173.7 kB / 1.05 GB, free: 5.668 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.559e-05/0.4431, allocations: 43.52 kB / 1.05 GB, free: 5.625 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.512e-05/0.4432, allocations: 52.25 kB / 1.05 GB, free: 5.574 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4432, allocations: 7.938 kB / 1.05 GB, free: 5.566 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4432, allocations: 0 / 1.05 GB, free: 5.566 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4433, allocations: 0 / 1.05 GB, free: 5.566 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.4445, allocations: 0.8739 MB / 1.051 GB, free: 4.637 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4445, allocations: 0 / 1.051 GB, free: 4.637 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.4448, allocations: 55.91 kB / 1.051 GB, free: 4.582 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.4448, allocations: 0 / 1.051 GB, free: 4.582 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.4448, allocations: 8.047 kB / 1.051 GB, free: 4.574 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.4448, allocations: 0 / 1.051 GB, free: 4.574 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4449, allocations: 3.984 kB / 1.051 GB, free: 4.57 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008935/0.4457, allocations: 0.5771 MB / 1.052 GB, free: 3.977 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.4459, allocations: 140.6 kB / 1.052 GB, free: 3.82 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.355e-05/0.446, allocations: 12 kB / 1.052 GB, free: 3.809 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.4462, allocations: 27.98 kB / 1.052 GB, free: 3.781 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/0.4463, allocations: 27.95 kB / 1.052 GB, free: 3.754 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.4463, allocations: 4 kB / 1.052 GB, free: 3.75 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002605/0.4466, allocations: 259.2 kB / 1.052 GB, free: 3.496 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4466, allocations: 0 / 1.052 GB, free: 3.496 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003492/0.447, allocations: 87.69 kB / 1.052 GB, free: 3.41 MB / 0.698 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.0001691/0.4471, allocations: 115.9 kB / 1.052 GB, free: 3.289 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005947/0.4477, allocations: 291.6 kB / 1.053 GB, free: 3.004 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4477, allocations: 0 / 1.053 GB, free: 3.004 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.448, allocations: 151.9 kB / 1.053 GB, free: 2.855 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004649/0.4485, allocations: 80.22 kB / 1.053 GB, free: 2.785 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.4502, allocations: 0.9712 MB / 1.054 GB, free: 1.785 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.4507, allocations: 0.823 MB / 1.055 GB, free: 0.9336 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001822/0.4509, allocations: 43.25 kB / 1.055 GB, free: 0.8945 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.82e-05/0.451, allocations: 35.44 kB / 1.055 GB, free: 0.8594 MB / 0.698 GB Notification: Performance of SimCode: time 3.21e-07/0.451, allocations: 0 / 1.055 GB, free: 0.8594 MB / 0.698 GB Notification: Performance of Templates: time 0.3888/0.8399, allocations: 3.699 MB / 1.058 GB, free: 147.6 MB / 0.698 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