Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") [: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.966/1.966, allocations: 387.2 MB / 394.5 MB, free: 4.535 MB / 306.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 187 kB / 487 MB, free: 11.1 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 221.3 MB / 0.7819 GB, free: 4.051 MB / 0.5497 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 87.05 kB / 0.9213 GB, free: 5.148 MB / 0.6903 GB Notification: Performance of FrontEnd - loaded program: time 6.271e-06/6.312e-06, allocations: 4 kB / 1.066 GB, free: 141.1 MB / 0.7216 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2834, allocations: 142.3 MB / 1.205 GB, free: 14.79 MB / 0.7372 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7636/1.047, allocations: 151.2 MB / 1.353 GB, free: 0.957 MB / 0.8153 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/1.047, allocations: 87.94 kB / 1.353 GB, free: 0.8711 MB / 0.8153 GB Notification: Performance of FrontEnd: time 0.007987/1.055, allocations: 2.739 MB / 1.356 GB, free: 14.14 MB / 0.8309 GB Notification: Performance of Transformations before backend: time 1.352e-05/1.055, allocations: 4 kB / 1.356 GB, free: 14.13 MB / 0.8309 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004881/1.056, allocations: 485.9 kB / 1.356 GB, free: 13.61 MB / 0.8309 GB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/1.056, allocations: 8.031 kB / 1.356 GB, free: 13.6 MB / 0.8309 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/1.057, allocations: 215.4 kB / 1.356 GB, free: 13.39 MB / 0.8309 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/1.058, allocations: 314 kB / 1.357 GB, free: 13.04 MB / 0.8309 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.028e-05/1.058, allocations: 67.61 kB / 1.357 GB, free: 12.96 MB / 0.8309 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/1.058, allocations: 8 kB / 1.357 GB, free: 12.96 MB / 0.8309 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005145/1.058, allocations: 388.2 kB / 1.357 GB, free: 12.58 MB / 0.8309 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/1.059, allocations: 291.1 kB / 1.357 GB, free: 12.29 MB / 0.8309 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/1.059, allocations: 0 / 1.357 GB, free: 12.29 MB / 0.8309 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/1.059, allocations: 0 / 1.357 GB, free: 12.29 MB / 0.8309 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/1.059, allocations: 4 kB / 1.357 GB, free: 12.29 MB / 0.8309 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/1.06, allocations: 0.8933 MB / 1.358 GB, free: 11.35 MB / 0.8309 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/1.061, allocations: 202.5 kB / 1.358 GB, free: 11.14 MB / 0.8309 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/1.061, allocations: 192.7 kB / 1.359 GB, free: 10.95 MB / 0.8309 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/1.061, allocations: 0 / 1.359 GB, free: 10.95 MB / 0.8309 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/1.061, allocations: 40.22 kB / 1.359 GB, free: 10.9 MB / 0.8309 GB Notification: Performance of pre-optimization done (n=7): time 9.71e-07/1.061, allocations: 0 / 1.359 GB, free: 10.9 MB / 0.8309 GB Notification: Performance of matching and sorting (n=7): time 0.0008742/1.062, allocations: 393.4 kB / 1.359 GB, free: 10.51 MB / 0.8309 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/1.062, allocations: 59.41 kB / 1.359 GB, free: 10.44 MB / 0.8309 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/1.062, allocations: 261 kB / 1.359 GB, free: 10.18 MB / 0.8309 GB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/1.062, allocations: 29.64 kB / 1.359 GB, free: 10.15 MB / 0.8309 GB Notification: Performance of collectInitialEqns (initialization): time 5.331e-05/1.062, allocations: 115.9 kB / 1.359 GB, free: 10.03 MB / 0.8309 GB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/1.062, allocations: 23.66 kB / 1.359 GB, free: 10.01 MB / 0.8309 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.895e-05/1.062, allocations: 0 / 1.359 GB, free: 10.01 MB / 0.8309 GB Notification: Performance of setup shared object (initialization): time 0.0001111/1.062, allocations: 334.8 kB / 1.36 GB, free: 9.672 MB / 0.8309 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/1.063, allocations: 171.9 kB / 1.36 GB, free: 9.504 MB / 0.8309 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/1.063, allocations: 183.9 kB / 1.36 GB, free: 9.324 MB / 0.8309 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004568/1.063, allocations: 143.9 kB / 1.36 GB, free: 9.184 MB / 0.8309 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/1.063, allocations: 0 / 1.36 GB, free: 9.184 MB / 0.8309 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0007934/1.064, allocations: 397.1 kB / 1.361 GB, free: 8.789 MB / 0.8309 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/1.064, allocations: 11.98 kB / 1.361 GB, free: 8.777 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/1.064, allocations: 1.094 kB / 1.361 GB, free: 8.777 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/1.064, allocations: 0 / 1.361 GB, free: 8.777 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004206/1.065, allocations: 59.92 kB / 1.361 GB, free: 8.719 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/1.065, allocations: 0 / 1.361 GB, free: 8.719 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/1.065, allocations: 39.88 kB / 1.361 GB, free: 8.68 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.155e-05/1.065, allocations: 31.91 kB / 1.361 GB, free: 8.648 MB / 0.8309 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (norQSta.canFreeze) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.141e-05/1.065, allocations: 106.2 kB / 1.361 GB, free: 8.539 MB / 0.8309 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.558e-05/1.065, allocations: 19.72 kB / 1.361 GB, free: 8.52 MB / 0.8309 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/1.065, allocations: 29.64 kB / 1.361 GB, free: 8.492 MB / 0.8309 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.065, allocations: 0 / 1.361 GB, free: 8.492 MB / 0.8309 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/1.065, allocations: 3.938 kB / 1.361 GB, free: 8.488 MB / 0.8309 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/1.065, allocations: 0 / 1.361 GB, free: 8.488 MB / 0.8309 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004214/1.066, allocations: 408.5 kB / 1.361 GB, free: 8.051 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/1.066, allocations: 4 kB / 1.361 GB, free: 8.047 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/1.066, allocations: 59.92 kB / 1.361 GB, free: 7.988 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/1.066, allocations: 0 / 1.361 GB, free: 7.988 MB / 0.8309 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/1.066, allocations: 15.97 kB / 1.361 GB, free: 7.973 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/1.066, allocations: 4 kB / 1.361 GB, free: 7.969 MB / 0.8309 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/1.066, allocations: 0 / 1.361 GB, free: 7.969 MB / 0.8309 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008244/1.067, allocations: 490.9 kB / 1.362 GB, free: 7.473 MB / 0.8309 GB Notification: Performance of postOpt removeConstants (simulation): time 7.1e-05/1.067, allocations: 104.8 kB / 1.362 GB, free: 7.352 MB / 0.8309 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/1.067, allocations: 4 kB / 1.362 GB, free: 7.348 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/1.067, allocations: 31.97 kB / 1.362 GB, free: 7.316 MB / 0.8309 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/1.067, allocations: 7.984 kB / 1.362 GB, free: 7.309 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.112e-05/1.068, allocations: 27.97 kB / 1.362 GB, free: 7.281 MB / 0.8309 GB Notification: Performance of sort global known variables: time 0.0001684/1.068, allocations: 197.2 kB / 1.362 GB, free: 7.09 MB / 0.8309 GB Notification: Performance of remove unused functions: time 0.0002962/1.068, allocations: 43.91 kB / 1.362 GB, free: 7.047 MB / 0.8309 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (norQSta.canFreeze) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001586/1.068, allocations: 107.2 kB / 1.362 GB, free: 6.93 MB / 0.8309 GB Notification: Performance of simCode: created initialization part: time 0.0005103/1.069, allocations: 431.8 kB / 1.363 GB, free: 6.508 MB / 0.8309 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/1.069, allocations: 0 / 1.363 GB, free: 6.508 MB / 0.8309 GB Notification: Performance of simCode: created simulation system equations: time 0.0002482/1.069, allocations: 227.8 kB / 1.363 GB, free: 6.285 MB / 0.8309 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/1.069, allocations: 8.5 kB / 1.363 GB, free: 6.277 MB / 0.8309 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007794/1.07, allocations: 432.2 kB / 1.363 GB, free: 5.832 MB / 0.8309 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004395/1.07, allocations: 0.8093 MB / 1.364 GB, free: 4.996 MB / 0.8309 GB Notification: Performance of SimCode: time 2.4e-07/1.07, allocations: 0 / 1.364 GB, free: 4.996 MB / 0.8309 GB Notification: Performance of Templates: time 0.006436/1.077, allocations: 3.326 MB / 1.367 GB, free: 1.672 MB / 0.8309 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches