Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.228/2.228, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001054/0.001054, allocations: 180.8 kB / 487.4 MB, free: 5.027 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.47/1.47, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009971/0.0009972, allocations: 99.59 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.276e-05/2.279e-05, allocations: 12 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3197, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.156/1.476, allocations: 149.3 MB / 1.352 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003321/1.476, allocations: 70.73 kB / 1.352 GB, free: 18.33 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01936/1.496, allocations: 4.319 MB / 1.356 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.145e-06/1.496, allocations: 0 / 1.356 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.511e-05/1.496, allocations: 11.81 kB / 1.356 GB, free: 33.79 MB / 0.8386 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.0009906/1.497, allocations: 0.5098 MB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.232e-05/1.497, allocations: 7.719 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/1.497, allocations: 31.12 kB / 1.357 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/1.497, allocations: 200.5 kB / 1.357 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/1.498, allocations: 3.844 kB / 1.357 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/1.498, allocations: 15.59 kB / 1.357 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000201/1.498, allocations: 54.55 kB / 1.357 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/1.498, allocations: 112.6 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/1.498, allocations: 3.844 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/1.498, allocations: 3.953 kB / 1.357 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/1.498, allocations: 4 kB / 1.357 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/1.499, allocations: 0.6491 MB / 1.358 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/1.5, allocations: 127.2 kB / 1.358 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.332e-05/1.5, allocations: 46.48 kB / 1.358 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/1.5, allocations: 4 kB / 1.358 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/1.5, allocations: 138.3 kB / 1.358 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.814e-06/1.5, allocations: 0 / 1.358 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003933/1.501, allocations: 140.1 kB / 1.358 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/1.501, allocations: 113.8 kB / 1.358 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/1.501, allocations: 164.4 kB / 1.358 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/1.501, allocations: 32.72 kB / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/1.501, allocations: 123.4 kB / 1.358 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/1.501, allocations: 38.25 kB / 1.358 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/1.501, allocations: 3.844 kB / 1.358 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.501, allocations: 327.6 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002248/1.501, allocations: 85.83 kB / 1.359 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002339/1.502, allocations: 149.3 kB / 1.359 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/1.502, allocations: 101 kB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/1.502, allocations: 3.953 kB / 1.359 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007915/1.503, allocations: 285 kB / 1.359 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.939e-05/1.503, allocations: 69.05 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/1.503, allocations: 3.844 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/1.503, allocations: 3.328 kB / 1.359 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/1.503, allocations: 22.78 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/1.503, allocations: 7.781 kB / 1.359 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005791/1.504, allocations: 105.6 kB / 1.36 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/1.504, allocations: 17.41 kB / 1.36 GB, free: 31.5 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001397/1.504, allocations: 116.8 kB / 1.36 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/1.504, allocations: 19.45 kB / 1.36 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/1.504, allocations: 76.31 kB / 1.36 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/1.504, allocations: 7.969 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.504, allocations: 3.938 kB / 1.36 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/1.504, allocations: 6.703 kB / 1.36 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/1.505, allocations: 214 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/1.505, allocations: 0 / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/1.505, allocations: 22.28 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/1.505, allocations: 3.953 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/1.505, allocations: 6.703 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/1.505, allocations: 0 / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.505, allocations: 3.906 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/1.505, allocations: 203.4 kB / 1.36 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/1.505, allocations: 91.33 kB / 1.36 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/1.505, allocations: 7.875 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/1.505, allocations: 23.02 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/1.505, allocations: 26.12 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/1.505, allocations: 13.73 kB / 1.36 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001366/1.506, allocations: 137 kB / 1.361 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.11e-07/1.506, allocations: 0 / 1.361 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004105/1.506, allocations: 56.55 kB / 1.361 GB, free: 30.82 MB / 0.8386 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 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0002284/1.506, allocations: 113.2 kB / 1.361 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004916/1.507, allocations: 301.6 kB / 1.361 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.507, allocations: 0 / 1.361 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/1.507, allocations: 60.66 kB / 1.361 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/1.507, allocations: 38.83 kB / 1.361 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005005/1.508, allocations: 193.7 kB / 1.361 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/1.508, allocations: 0.7331 MB / 1.362 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001055/1.508, allocations: 21.44 kB / 1.362 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.26e-05/1.508, allocations: 26.06 kB / 1.362 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/1.508, allocations: 0 / 1.362 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of Templates: time 0.0076/1.516, allocations: 2.851 MB / 1.365 GB, free: 29.54 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches