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.576/2.576, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001534/0.001534, allocations: 176.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.689/1.689, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.001055/0.001056, allocations: 87.89 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.103e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3444, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.104/1.448, allocations: 150.7 MB / 1.366 GB, free: 3.34 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/1.449, allocations: 73.02 kB / 1.366 GB, free: 3.301 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01344/1.462, allocations: 4.345 MB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.883e-06/1.462, allocations: 0 / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.374e-05/1.462, allocations: 4 kB / 1.37 GB, free: 15.53 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.0008181/1.463, allocations: 0.5128 MB / 1.371 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.463, allocations: 8.031 kB / 1.371 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/1.463, allocations: 23 kB / 1.371 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/1.463, allocations: 206.5 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/1.463, allocations: 11.5 kB / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/1.464, allocations: 19.38 kB / 1.371 GB, free: 14.69 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/1.464, allocations: 122 kB / 1.371 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/1.464, allocations: 7.984 kB / 1.371 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/1.464, allocations: 11.33 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/1.464, allocations: 0 / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001444/1.464, allocations: 62.36 kB / 1.371 GB, free: 14.52 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/1.465, allocations: 0.6782 MB / 1.372 GB, free: 13.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/1.465, allocations: 140.8 kB / 1.372 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.639e-05/1.466, allocations: 47.02 kB / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/1.466, allocations: 0 / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/1.466, allocations: 149.8 kB / 1.372 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/1.466, allocations: 0 / 1.372 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.000388/1.466, allocations: 145 kB / 1.372 GB, free: 13.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/1.466, allocations: 110.8 kB / 1.372 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/1.467, allocations: 169.7 kB / 1.373 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/1.467, allocations: 37.08 kB / 1.373 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/1.467, allocations: 120.8 kB / 1.373 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/1.467, allocations: 42.2 kB / 1.373 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.477e-05/1.467, allocations: 7.375 kB / 1.373 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.467, allocations: 337.2 kB / 1.373 GB, free: 12.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/1.467, allocations: 87.75 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/1.467, allocations: 167.3 kB / 1.373 GB, free: 12.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/1.468, allocations: 141.7 kB / 1.374 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.468, allocations: 3.938 kB / 1.374 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005723/1.468, allocations: 345.8 kB / 1.374 GB, free: 12.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.296e-05/1.468, allocations: 74.89 kB / 1.374 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.468, allocations: 64 / 1.374 GB, free: 11.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/1.468, allocations: 16.06 kB / 1.374 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/1.469, allocations: 19.98 kB / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/1.469, allocations: 0 / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/1.469, allocations: 111.4 kB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-05/1.469, allocations: 19.61 kB / 1.374 GB, free: 11.79 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.0001375/1.469, allocations: 124.2 kB / 1.374 GB, free: 11.67 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/1.469, allocations: 15.81 kB / 1.374 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001728/1.469, allocations: 80.64 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/1.469, allocations: 0 / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/1.469, allocations: 4 kB / 1.374 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/1.469, allocations: 3.984 kB / 1.374 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/1.47, allocations: 245.3 kB / 1.375 GB, free: 11.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.47, allocations: 8 kB / 1.375 GB, free: 11.31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.582e-05/1.47, allocations: 15.98 kB / 1.375 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/1.47, allocations: 144 / 1.375 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/1.47, allocations: 7.25 kB / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/1.47, allocations: 0 / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.47, allocations: 4 kB / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/1.47, allocations: 209.3 kB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.794e-05/1.47, allocations: 92.91 kB / 1.375 GB, free: 10.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/1.47, allocations: 7.062 kB / 1.375 GB, free: 10.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/1.47, allocations: 23.97 kB / 1.375 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/1.471, allocations: 35.47 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/1.471, allocations: 7.562 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001163/1.471, allocations: 141.5 kB / 1.375 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.471, allocations: 0 / 1.375 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003138/1.471, allocations: 51.94 kB / 1.375 GB, free: 10.74 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.0002285/1.471, allocations: 126.8 kB / 1.375 GB, free: 10.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004804/1.472, allocations: 318.3 kB / 1.376 GB, free: 10.35 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.472, allocations: 0 / 1.376 GB, free: 10.35 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001236/1.472, allocations: 57.12 kB / 1.376 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/1.472, allocations: 45.97 kB / 1.376 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004953/1.473, allocations: 227.8 kB / 1.376 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/1.473, allocations: 0.7207 MB / 1.377 GB, free: 9.309 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001009/1.473, allocations: 21.55 kB / 1.377 GB, free: 9.285 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.09e-05/1.473, allocations: 23.42 kB / 1.377 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of SimCode: time 6.21e-07/1.473, allocations: 0 / 1.377 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of Templates: time 0.0072/1.481, allocations: 3.087 MB / 1.38 GB, free: 6.219 MB / 0.8386 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