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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.295/1.295, allocations: 249.4 MB / 256.7 MB, free: 6.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 188 kB / 316 MB, free: 3.535 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.525/1.525, allocations: 205.1 MB / 0.5667 GB, free: 15.59 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.001074/0.001074, allocations: 86.52 kB / 0.671 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.999e-06/1.003e-05, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.232, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6215/0.8536, allocations: 132.4 MB / 1.014 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.8539, allocations: 72.27 kB / 1.014 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006896/0.8608, allocations: 1.878 MB / 1.016 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.8609, allocations: 0 / 1.016 GB, free: 4.57 MB / 0.6355 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.0009521/0.8618, allocations: 0.4884 MB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.8619, allocations: 8.031 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.425e-05/0.862, allocations: 15.81 kB / 1.016 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.8621, allocations: 190.9 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.8622, allocations: 4 kB / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.8622, allocations: 8.75 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001756/0.8624, allocations: 57.23 kB / 1.017 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002036/0.8626, allocations: 121.2 kB / 1.017 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.8626, allocations: 3.938 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.8626, allocations: 3.062 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.8626, allocations: 4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008898/0.8635, allocations: 0.5592 MB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.8638, allocations: 116.4 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.621e-05/0.8639, allocations: 57.14 kB / 1.017 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.8639, allocations: 8.375 kB / 1.017 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.8641, allocations: 129 kB / 1.017 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.8641, allocations: 0 / 1.017 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003018/0.8644, allocations: 114.5 kB / 1.018 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.8645, allocations: 110.8 kB / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.8646, allocations: 138.6 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.8647, allocations: 33.58 kB / 1.018 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.8647, allocations: 95.91 kB / 1.018 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.972e-05/0.8648, allocations: 42.33 kB / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.8648, allocations: 0 / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.865, allocations: 330.1 kB / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.327e-05/0.8651, allocations: 48.56 kB / 1.018 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.8652, allocations: 84.95 kB / 1.018 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.932e-05/0.8653, allocations: 45.91 kB / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.8653, allocations: 0 / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00027/0.8655, allocations: 152 kB / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.8656, allocations: 4 kB / 1.019 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.8656, allocations: 192 / 1.019 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.8656, allocations: 8 kB / 1.019 GB, free: 1.641 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002857/0.8659, allocations: 51.89 kB / 1.019 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.8659, allocations: 7.906 kB / 1.019 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.8662, allocations: 67.88 kB / 1.019 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.8663, allocations: 7.375 kB / 1.019 GB, free: 1.512 MB / 0.6355 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 () * 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.0001059/0.8664, allocations: 121.4 kB / 1.019 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.8664, allocations: 14.94 kB / 1.019 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.8666, allocations: 68.02 kB / 1.019 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.8666, allocations: 7.938 kB / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.8666, allocations: 0 / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.8666, allocations: 0 / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.8669, allocations: 203.7 kB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.8669, allocations: 0 / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/0.8671, allocations: 44.09 kB / 1.019 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.8671, allocations: 4 kB / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.8671, allocations: 11.92 kB / 1.019 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.8671, allocations: 4.188 kB / 1.019 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8671, allocations: 0 / 1.019 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002308/0.8674, allocations: 179.6 kB / 1.019 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.8674, allocations: 92.92 kB / 1.019 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.8675, allocations: 4 kB / 1.019 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000273/0.8678, allocations: 58.69 kB / 1.02 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.8679, allocations: 46.83 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.8679, allocations: 4 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.365e-05/0.868, allocations: 114.8 kB / 1.02 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002361/0.8682, allocations: 35.98 kB / 1.02 GB, free: 0.4961 MB / 0.6355 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) * 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.0002037/0.8685, allocations: 99.95 kB / 1.02 GB, free: 396 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002975/0.8688, allocations: 124.2 kB / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.8688, allocations: 0 / 1.02 GB, free: 308 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.8689, allocations: 59.25 kB / 1.02 GB, free: 268 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.8692, allocations: 22.73 kB / 1.02 GB, free: 252 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005481/0.8697, allocations: 186.9 kB / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003958/0.8701, allocations: 0.7392 MB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of SimCode: time 2.6e-07/0.8702, allocations: 3.938 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.005381/0.8755, allocations: 2.371 MB / 1.023 GB, free: 12.95 MB / 0.6511 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