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") [: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 9.1.1-maint.9.1.x/package.mo): time 1.776/1.776, allocations: 387.2 MB / 394.5 MB, free: 13.71 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.001015/0.001015, allocations: 192.6 kB / 487 MB, free: 5.383 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.128/1.128, allocations: 221.3 MB / 0.7819 GB, free: 1.453 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.000872/0.000872, allocations: 94.44 kB / 0.9213 GB, free: 2.707 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.055e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1799, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5366/0.7165, allocations: 149.2 MB / 1.351 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.7169, allocations: 73.59 kB / 1.351 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01306/0.73, allocations: 4.066 MB / 1.355 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.437e-06/0.73, allocations: 2.625 kB / 1.355 GB, free: 15.71 MB / 0.8073 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.0005815/0.7306, allocations: 0.515 MB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.7307, allocations: 8.25 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.563e-05/0.7308, allocations: 25.34 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.7309, allocations: 199 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.7309, allocations: 8.844 kB / 1.356 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.731, allocations: 21.25 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001304/0.7311, allocations: 54.09 kB / 1.356 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001685/0.7313, allocations: 111.7 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.7313, allocations: 0 / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.7313, allocations: 5.391 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.7313, allocations: 2.531 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.732, allocations: 0.6561 MB / 1.357 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.7323, allocations: 134.7 kB / 1.357 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.713e-05/0.7324, allocations: 42.27 kB / 1.357 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.7324, allocations: 2.578 kB / 1.357 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/0.7326, allocations: 122.4 kB / 1.357 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.7326, allocations: 1.094 kB / 1.357 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0002704/0.7329, allocations: 126 kB / 1.357 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.7329, allocations: 108.3 kB / 1.357 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.733, allocations: 167 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.7331, allocations: 42.83 kB / 1.357 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.7331, allocations: 111.5 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/0.7332, allocations: 31.89 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/0.7332, allocations: 3.156 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.122e-05/0.7333, allocations: 333.8 kB / 1.358 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.7334, allocations: 81.58 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.7336, allocations: 153.7 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.734, allocations: 97.56 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.734, allocations: 4.75 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006458/0.7346, allocations: 278.8 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.7347, allocations: 5.953 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.7347, allocations: 5.5 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.7347, allocations: 6.938 kB / 1.358 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.7348, allocations: 23.89 kB / 1.358 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.7348, allocations: 3.422 kB / 1.358 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004615/0.7353, allocations: 119.5 kB / 1.358 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.7353, allocations: 20.58 kB / 1.358 GB, free: 13.46 MB / 0.8073 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 7.956e-05/0.7354, allocations: 114 kB / 1.359 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.7355, allocations: 21.02 kB / 1.359 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.7356, allocations: 68.69 kB / 1.359 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.7356, allocations: 10.19 kB / 1.359 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.7356, allocations: 5.531 kB / 1.359 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.7356, allocations: 0.8438 kB / 1.359 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.7358, allocations: 214.8 kB / 1.359 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7358, allocations: 0.6875 kB / 1.359 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.7359, allocations: 19.41 kB / 1.359 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.7359, allocations: 2.094 kB / 1.359 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.7359, allocations: 6.5 kB / 1.359 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.7359, allocations: 9.625 kB / 1.359 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.7359, allocations: 0.9062 kB / 1.359 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001915/0.7361, allocations: 185.5 kB / 1.359 GB, free: 13 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.7362, allocations: 95.34 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.7362, allocations: 7.016 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.7364, allocations: 24.81 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.7364, allocations: 32.62 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.7365, allocations: 8.828 kB / 1.359 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.16e-05/0.7365, allocations: 138.2 kB / 1.359 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002752/0.7368, allocations: 42.11 kB / 1.359 GB, free: 12.8 MB / 0.8073 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.0001683/0.737, allocations: 120.2 kB / 1.36 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003563/0.7374, allocations: 228.1 kB / 1.36 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.7374, allocations: 1.062 kB / 1.36 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.7375, allocations: 63.45 kB / 1.36 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002631/0.7378, allocations: 36.98 kB / 1.36 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.7382, allocations: 206.9 kB / 1.36 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.7384, allocations: 0.7477 MB / 1.361 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/0.7384, allocations: 0 / 1.361 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of Templates: time 0.006145/0.7445, allocations: 2.947 MB / 1.364 GB, free: 10.99 MB / 0.8073 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