Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.382/2.382, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001032/0.001032, allocations: 184 kB / 0.4902 GB, free: 2.211 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.603/1.603, allocations: 223.2 MB / 0.7992 GB, free: 14.59 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.0009443/0.0009443, allocations: 100.3 kB / 0.9396 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003918, allocations: 15.81 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.203/0.5474, allocations: 150.8 MB / 1.376 GB, free: 2.668 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5477, allocations: 75.95 kB / 1.377 GB, free: 2.594 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0124/0.5601, allocations: 4.356 MB / 1.381 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.487e-06/0.5602, allocations: 7.984 kB / 1.381 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.5602, allocations: 0 / 1.381 GB, free: 14.22 MB / 0.8855 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.0007437/0.561, allocations: 0.537 MB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.561, allocations: 8.562 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.5611, allocations: 23.81 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.5613, allocations: 202.7 kB / 1.382 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.5613, allocations: 12 kB / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.861e-05/0.5614, allocations: 20 kB / 1.382 GB, free: 13.32 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.5617, allocations: 141 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.5617, allocations: 3.984 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.5617, allocations: 7.953 kB / 1.382 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5618, allocations: 4 kB / 1.382 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.562, allocations: 95.88 kB / 1.382 GB, free: 13.06 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000833/0.5629, allocations: 0.6842 MB / 1.383 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.5633, allocations: 156 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.5633, allocations: 4.078 kB / 1.383 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/0.5636, allocations: 161.9 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.5636, allocations: 0 / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0005823/0.5642, allocations: 229.3 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.5643, allocations: 106.8 kB / 1.383 GB, free: 11.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.5645, allocations: 185.5 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.5645, allocations: 37.7 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.266e-05/0.5646, allocations: 124.5 kB / 1.383 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.5647, allocations: 35.62 kB / 1.383 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/0.5647, allocations: 4 kB / 1.383 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5648, allocations: 334.8 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.5651, allocations: 111.9 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.5654, allocations: 189.6 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/0.5656, allocations: 155.8 kB / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5657, allocations: 0 / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006812/0.5663, allocations: 396.7 kB / 1.385 GB, free: 9.965 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.434e-05/0.5664, allocations: 71.39 kB / 1.385 GB, free: 9.883 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.5664, allocations: 0 / 1.385 GB, free: 9.883 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.5664, allocations: 4 kB / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.5666, allocations: 32.28 kB / 1.385 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.5666, allocations: 0 / 1.385 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.567, allocations: 103.9 kB / 1.385 GB, free: 9.746 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.567, allocations: 19.98 kB / 1.385 GB, free: 9.727 MB / 0.8855 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 () * Number of clocked 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.0001353/0.5672, allocations: 150.3 kB / 1.385 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.5672, allocations: 15.81 kB / 1.385 GB, free: 9.555 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.5675, allocations: 106.6 kB / 1.385 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5675, allocations: 8 kB / 1.385 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5675, allocations: 0 / 1.385 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.5675, allocations: 0 / 1.385 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.5677, allocations: 249.4 kB / 1.385 GB, free: 9.148 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.5677, allocations: 0 / 1.385 GB, free: 9.148 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.5679, allocations: 23.86 kB / 1.385 GB, free: 9.125 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5679, allocations: 4 kB / 1.385 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.034e-05/0.5679, allocations: 7.984 kB / 1.385 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.5679, allocations: 4 kB / 1.385 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.5679, allocations: 0 / 1.385 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003798/0.5683, allocations: 234 kB / 1.386 GB, free: 8.844 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-05/0.5684, allocations: 100.9 kB / 1.386 GB, free: 8.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.5684, allocations: 0 / 1.386 GB, free: 8.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.5685, allocations: 27.98 kB / 1.386 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.62e-05/0.5686, allocations: 35.88 kB / 1.386 GB, free: 8.664 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.5687, allocations: 15.89 kB / 1.386 GB, free: 8.648 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001056/0.5688, allocations: 148 kB / 1.386 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5688, allocations: 0 / 1.386 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002785/0.5691, allocations: 55.94 kB / 1.386 GB, free: 8.449 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0002109/0.5693, allocations: 117.4 kB / 1.386 GB, free: 8.328 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006026/0.5699, allocations: 366.3 kB / 1.386 GB, free: 7.949 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.5699, allocations: 0 / 1.386 GB, free: 7.949 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.5701, allocations: 83.89 kB / 1.387 GB, free: 7.867 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.5704, allocations: 36.02 kB / 1.387 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005594/0.5709, allocations: 330.3 kB / 1.387 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.5712, allocations: 0.7284 MB / 1.388 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.604e-05/0.5713, allocations: 17.55 kB / 1.388 GB, free: 6.703 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.5714, allocations: 23.42 kB / 1.388 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5714, allocations: 0 / 1.388 GB, free: 6.68 MB / 0.8855 GB Notification: Performance of Templates: time 0.006123/0.5775, allocations: 3.089 MB / 1.391 GB, free: 3.621 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches