Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 2.005/2.005, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001162/0.001162, allocations: 189.2 kB / 490.8 MB, free: 1.918 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.429/1.429, allocations: 221.4 MB / 0.7863 GB, free: 13.61 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.001041/0.001041, allocations: 95.98 kB / 0.9264 GB, free: 14.12 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.263e-06/7.284e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2886, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7685/1.057, allocations: 150.9 MB / 1.359 GB, free: 17.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/1.058, allocations: 90.16 kB / 1.359 GB, free: 17.26 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.004991/1.063, allocations: 1.38 MB / 1.36 GB, free: 17.17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.923e-06/1.063, allocations: 2.062 kB / 1.36 GB, free: 17.17 MB / 0.823 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.000372/1.063, allocations: 379 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/1.063, allocations: 8.656 kB / 1.361 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007791/1.064, allocations: 107.1 kB / 1.361 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/1.064, allocations: 183 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.043e-05/1.064, allocations: 34.28 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/1.064, allocations: 6 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002588/1.064, allocations: 147.3 kB / 1.361 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/1.064, allocations: 126 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/1.064, allocations: 0 / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/1.065, allocations: 4.938 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/1.065, allocations: 0 / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008311/1.065, allocations: 446.3 kB / 1.362 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/1.066, allocations: 156.8 kB / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/1.066, allocations: 77.19 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/1.066, allocations: 0.9062 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/1.066, allocations: 40.17 kB / 1.362 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/1.066, allocations: 0 / 1.362 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0005104/1.066, allocations: 175.8 kB / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.72e-05/1.066, allocations: 52.41 kB / 1.362 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/1.066, allocations: 137.3 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/1.066, allocations: 25.7 kB / 1.362 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/1.067, allocations: 96.66 kB / 1.362 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/1.067, allocations: 6.891 kB / 1.362 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/1.067, allocations: 0 / 1.362 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001223/1.067, allocations: 320.2 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.777e-05/1.067, allocations: 66.12 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.308e-05/1.067, allocations: 70.53 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/1.067, allocations: 63.39 kB / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/1.067, allocations: 0 / 1.363 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003844/1.068, allocations: 184.5 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/1.068, allocations: 5.312 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/1.068, allocations: 3.938 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/1.068, allocations: 1.156 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/1.068, allocations: 30.08 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/1.068, allocations: 3.234 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/1.068, allocations: 17.98 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/1.068, allocations: 15.75 kB / 1.363 GB, free: 31.5 MB / 0.8386 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 6.602e-05/1.068, allocations: 102.2 kB / 1.363 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/1.068, allocations: 11 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/1.068, allocations: 12.7 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/1.068, allocations: 0 / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.068, allocations: 5.031 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/1.068, allocations: 1.5 kB / 1.363 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/1.068, allocations: 216.6 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/1.068, allocations: 1.031 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/1.069, allocations: 27.61 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/1.069, allocations: 2.766 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/1.069, allocations: 5.25 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.069, allocations: 5 kB / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.069, allocations: 0 / 1.364 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004546/1.069, allocations: 279.9 kB / 1.364 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.752e-05/1.069, allocations: 84.2 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.981e-05/1.069, allocations: 1.453 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/1.069, allocations: 16.98 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/1.069, allocations: 5.281 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-05/1.069, allocations: 12.95 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.112e-05/1.07, allocations: 115.6 kB / 1.364 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002506/1.07, allocations: 27.89 kB / 1.364 GB, free: 30.89 MB / 0.8386 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.000156/1.07, allocations: 98.28 kB / 1.364 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002555/1.07, allocations: 168.8 kB / 1.364 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/1.07, allocations: 1.531 kB / 1.364 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/1.07, allocations: 93.02 kB / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/1.071, allocations: 5.891 kB / 1.364 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/1.071, allocations: 180.1 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/1.071, allocations: 0.7284 MB / 1.365 GB, free: 30 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.071, allocations: 0 / 1.365 GB, free: 30 MB / 0.8386 GB Notification: Performance of Templates: time 0.00369/1.075, allocations: 1.529 MB / 1.367 GB, free: 29.87 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches