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.455/2.455, allocations: 390.5 MB / 398 MB, free: 10.94 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.001129/0.001129, allocations: 183.7 kB / 491.2 MB, free: 1.551 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.754/1.754, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001102/0.001102, allocations: 101.5 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.25e-05/2.253e-05, allocations: 11.98 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3321, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.121/1.453, allocations: 150 MB / 1.359 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/1.453, allocations: 70.69 kB / 1.359 GB, free: 17.53 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01243/1.466, allocations: 4.323 MB / 1.363 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.373e-06/1.466, allocations: 0 / 1.363 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.173e-05/1.466, allocations: 3.875 kB / 1.363 GB, free: 32.99 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.0006087/1.466, allocations: 0.5123 MB / 1.364 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/1.466, allocations: 9.438 kB / 1.364 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/1.466, allocations: 23.19 kB / 1.364 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/1.466, allocations: 210.1 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/1.467, allocations: 4.594 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/1.467, allocations: 13.22 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001202/1.467, allocations: 54.31 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/1.467, allocations: 109 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.467, allocations: 4 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/1.467, allocations: 3.969 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/1.467, allocations: 3.938 kB / 1.364 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007236/1.468, allocations: 0.6549 MB / 1.365 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/1.468, allocations: 132.5 kB / 1.365 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.656e-05/1.468, allocations: 44.48 kB / 1.365 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/1.468, allocations: 0 / 1.365 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001893/1.468, allocations: 139.1 kB / 1.365 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/1.468, allocations: 4 kB / 1.365 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0002715/1.468, allocations: 135.9 kB / 1.365 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/1.469, allocations: 110.6 kB / 1.365 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/1.469, allocations: 162.8 kB / 1.365 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/1.469, allocations: 32.8 kB / 1.365 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/1.469, allocations: 122 kB / 1.366 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/1.469, allocations: 40.72 kB / 1.366 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/1.469, allocations: 5.391 kB / 1.366 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.963e-05/1.469, allocations: 331.1 kB / 1.366 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/1.469, allocations: 84.86 kB / 1.366 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/1.469, allocations: 155.2 kB / 1.366 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/1.47, allocations: 104.1 kB / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.47, allocations: 0 / 1.366 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000543/1.47, allocations: 277.9 kB / 1.367 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/1.47, allocations: 70.16 kB / 1.367 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/1.47, allocations: 3.844 kB / 1.367 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/1.47, allocations: 15.69 kB / 1.367 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.459e-05/1.47, allocations: 20.8 kB / 1.367 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/1.47, allocations: 0 / 1.367 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004051/1.471, allocations: 108.5 kB / 1.367 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/1.471, allocations: 14.45 kB / 1.367 GB, free: 30.69 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 9.21e-05/1.471, allocations: 125.3 kB / 1.367 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/1.471, allocations: 19.44 kB / 1.367 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/1.471, allocations: 68.28 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.471, allocations: 7.781 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.471, allocations: 0 / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.471, allocations: 2.906 kB / 1.367 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/1.471, allocations: 215.9 kB / 1.367 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.471, allocations: 4 kB / 1.367 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/1.471, allocations: 24.61 kB / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/1.471, allocations: 0 / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/1.471, allocations: 3.812 kB / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/1.471, allocations: 2.766 kB / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.471, allocations: 0 / 1.367 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/1.472, allocations: 204.6 kB / 1.367 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/1.472, allocations: 91.44 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/1.472, allocations: 11.53 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/1.472, allocations: 21.02 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.78e-05/1.472, allocations: 33.28 kB / 1.368 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/1.472, allocations: 3.875 kB / 1.368 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.95e-05/1.472, allocations: 140.6 kB / 1.368 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.472, allocations: 0 / 1.368 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002519/1.472, allocations: 48.97 kB / 1.368 GB, free: 30.02 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.0001751/1.472, allocations: 118.2 kB / 1.368 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003414/1.473, allocations: 304.4 kB / 1.368 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/1.473, allocations: 0 / 1.368 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.864e-05/1.473, allocations: 61.41 kB / 1.368 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/1.473, allocations: 43.52 kB / 1.368 GB, free: 29.78 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003521/1.474, allocations: 196.9 kB / 1.368 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/1.474, allocations: 0.729 MB / 1.369 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.744e-05/1.474, allocations: 22.23 kB / 1.369 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/1.474, allocations: 25.06 kB / 1.369 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.474, allocations: 0 / 1.369 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of Templates: time 0.005266/1.479, allocations: 2.84 MB / 1.372 GB, free: 28.73 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