Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.447/1.447, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001251/0.001251, allocations: 184.9 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.858/1.858, allocations: 205.4 MB / 0.5775 GB, free: 20.24 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.000869/0.000869, allocations: 95.06 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003159/0.0003159, allocations: 15.66 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1892, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1642/0.3534, allocations: 132.1 MB / 1.029 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.3536, allocations: 71.97 kB / 1.029 GB, free: 11.5 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006365/0.36, allocations: 2.138 MB / 1.031 GB, free: 9.359 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.843e-06/0.3601, allocations: 0 / 1.031 GB, free: 9.359 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3601, allocations: 0 / 1.031 GB, free: 9.359 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008176/0.3609, allocations: 0.5073 MB / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3609, allocations: 12.03 kB / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.423e-05/0.361, allocations: 11.91 kB / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.3611, allocations: 182.9 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.3612, allocations: 12 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.3612, allocations: 12 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004458/0.3616, allocations: 190.1 kB / 1.032 GB, free: 8.34 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.3617, allocations: 0 / 1.032 GB, free: 8.34 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.3617, allocations: 0 / 1.032 GB, free: 8.34 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3617, allocations: 7.953 kB / 1.032 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.3623, allocations: 175.8 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009359/0.3632, allocations: 0.6062 MB / 1.033 GB, free: 7.496 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005931/0.3638, allocations: 227.8 kB / 1.033 GB, free: 7.246 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.3638, allocations: 4 kB / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004929/0.3643, allocations: 194.5 kB / 1.033 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.3644, allocations: 0 / 1.033 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0009965/0.3654, allocations: 337.3 kB / 1.034 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.285e-05/0.3654, allocations: 110.8 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.3656, allocations: 149.2 kB / 1.034 GB, free: 6.402 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.3656, allocations: 33.7 kB / 1.034 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.3657, allocations: 116.3 kB / 1.034 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.3657, allocations: 43.52 kB / 1.034 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.3658, allocations: 0 / 1.034 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.3659, allocations: 330.8 kB / 1.034 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.3662, allocations: 103.9 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.3665, allocations: 159 kB / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.3668, allocations: 99.81 kB / 1.035 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3668, allocations: 0 / 1.035 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006854/0.3675, allocations: 293.2 kB / 1.035 GB, free: 5.203 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3676, allocations: 4 kB / 1.035 GB, free: 5.199 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3676, allocations: 0 / 1.035 GB, free: 5.199 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.3676, allocations: 4 kB / 1.035 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.3679, allocations: 47.97 kB / 1.035 GB, free: 5.148 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.3679, allocations: 7.984 kB / 1.035 GB, free: 5.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.3682, allocations: 63.89 kB / 1.035 GB, free: 5.078 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.3682, allocations: 4 kB / 1.035 GB, free: 5.074 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001233/0.3683, allocations: 125.8 kB / 1.035 GB, free: 4.941 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.3684, allocations: 19.77 kB / 1.035 GB, free: 4.922 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002703/0.3686, allocations: 114.6 kB / 1.035 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3687, allocations: 4 kB / 1.035 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.3687, allocations: 0 / 1.035 GB, free: 4.805 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.3687, allocations: 3.984 kB / 1.035 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.3689, allocations: 229.5 kB / 1.036 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3689, allocations: 0 / 1.036 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.3691, allocations: 35.97 kB / 1.036 GB, free: 4.492 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3691, allocations: 8.516 kB / 1.036 GB, free: 4.484 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.3691, allocations: 7.984 kB / 1.036 GB, free: 4.477 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3691, allocations: 4 kB / 1.036 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3691, allocations: 0 / 1.036 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006236/0.3697, allocations: 311.5 kB / 1.036 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.3698, allocations: 88.92 kB / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.3698, allocations: 8 kB / 1.036 GB, free: 4.02 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.3701, allocations: 47.95 kB / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3702, allocations: 52.03 kB / 1.036 GB, free: 3.922 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.3702, allocations: 4 kB / 1.036 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.935e-05/0.3703, allocations: 124.8 kB / 1.036 GB, free: 3.797 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3703, allocations: 4 kB / 1.036 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002238/0.3706, allocations: 36 kB / 1.036 GB, free: 3.758 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001666/0.3707, allocations: 115.2 kB / 1.036 GB, free: 3.637 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006637/0.3714, allocations: 235.8 kB / 1.037 GB, free: 3.406 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3714, allocations: 0 / 1.037 GB, free: 3.406 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.3718, allocations: 116.1 kB / 1.037 GB, free: 3.293 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.372, allocations: 31.94 kB / 1.037 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005804/0.3726, allocations: 293.8 kB / 1.037 GB, free: 2.945 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.3728, allocations: 0.7165 MB / 1.038 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 9.076e-05/0.3729, allocations: 25.62 kB / 1.038 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.743e-05/0.373, allocations: 23.42 kB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/0.373, allocations: 0 / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of Templates: time 0.004242/0.3773, allocations: 2.125 MB / 1.04 GB, free: 52 kB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches