Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") [: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 2.069/2.069, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001245/0.001245, allocations: 173.3 kB / 487 MB, free: 5.316 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.472/1.472, allocations: 221.3 MB / 0.7819 GB, free: 1.332 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.001078/0.001078, allocations: 92.66 kB / 0.9213 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.213e-06/7.233e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3047, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7287/1.033, allocations: 150 MB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/1.034, allocations: 91.77 kB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.005704/1.04, allocations: 1.38 MB / 1.353 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.126e-05/1.04, allocations: 1.031 kB / 1.353 GB, free: 15.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004244/1.04, allocations: 376 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/1.04, allocations: 10 kB / 1.354 GB, free: 15.13 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007859/1.041, allocations: 99.41 kB / 1.354 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/1.041, allocations: 196.3 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.93e-05/1.041, allocations: 36.91 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/1.041, allocations: 5.188 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002692/1.041, allocations: 150 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/1.042, allocations: 124.8 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/1.042, allocations: 0 / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/1.042, allocations: 1.453 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/1.042, allocations: 0.7812 kB / 1.354 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008959/1.043, allocations: 446.2 kB / 1.355 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/1.043, allocations: 154.1 kB / 1.355 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/1.043, allocations: 80.78 kB / 1.355 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/1.043, allocations: 0.9062 kB / 1.355 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/1.043, allocations: 36.06 kB / 1.355 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/1.043, allocations: 0 / 1.355 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0005226/1.044, allocations: 175.2 kB / 1.355 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.964e-05/1.044, allocations: 55.34 kB / 1.355 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/1.044, allocations: 136 kB / 1.355 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/1.044, allocations: 27.34 kB / 1.355 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.227e-05/1.044, allocations: 94.42 kB / 1.355 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/1.044, allocations: 4.906 kB / 1.355 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.009e-05/1.044, allocations: 4.031 kB / 1.355 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.79e-05/1.044, allocations: 323.7 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/1.044, allocations: 69.09 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/1.044, allocations: 68.86 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/1.044, allocations: 60.08 kB / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/1.044, allocations: 0 / 1.356 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003957/1.045, allocations: 176.7 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/1.045, allocations: 5.578 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/1.045, allocations: 96 / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/1.045, allocations: 4.875 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/1.045, allocations: 28.91 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/1.045, allocations: 0 / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/1.045, allocations: 21.5 kB / 1.356 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/1.045, allocations: 14.19 kB / 1.356 GB, free: 13.84 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.196e-05/1.045, allocations: 109.9 kB / 1.356 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.623e-05/1.045, allocations: 8.484 kB / 1.356 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/1.045, allocations: 10.64 kB / 1.356 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/1.045, allocations: 1.688 kB / 1.356 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/1.045, allocations: 0.7031 kB / 1.356 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/1.045, allocations: 0 / 1.356 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/1.046, allocations: 219.7 kB / 1.356 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/1.046, allocations: 0 / 1.356 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/1.046, allocations: 39.08 kB / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.046, allocations: 4.781 kB / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/1.046, allocations: 5.562 kB / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.046, allocations: 1.859 kB / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.046, allocations: 0 / 1.356 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004193/1.046, allocations: 271.3 kB / 1.357 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.78e-05/1.046, allocations: 88.19 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/1.046, allocations: 2.969 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/1.047, allocations: 15.86 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.803e-05/1.047, allocations: 5.312 kB / 1.357 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/1.047, allocations: 16.05 kB / 1.357 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6.285e-05/1.047, allocations: 115.1 kB / 1.357 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002478/1.047, allocations: 26.45 kB / 1.357 GB, free: 13.23 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001424/1.047, allocations: 103.2 kB / 1.357 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002675/1.047, allocations: 166.7 kB / 1.357 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.047, allocations: 0 / 1.357 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/1.047, allocations: 89.64 kB / 1.357 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/1.048, allocations: 2.062 kB / 1.357 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003849/1.048, allocations: 182.4 kB / 1.357 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/1.048, allocations: 0.7235 MB / 1.358 GB, free: 28.35 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/1.048, allocations: 0 / 1.358 GB, free: 28.35 MB / 0.823 GB Notification: Performance of Templates: time 0.003796/1.052, allocations: 1.536 MB / 1.36 GB, free: 28.22 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches