Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar",fmuType="me",version="2.0",platforms={"static"}) [: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 1.945/1.945, allocations: 390.4 MB / 397.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 193.6 kB / 490.8 MB, free: 11.14 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.379/1.379, allocations: 221.4 MB / 0.7863 GB, free: 13.5 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008913/0.0008913, allocations: 94.7 kB / 0.9264 GB, free: 4.488 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.3248/0.3257, allocations: 149.2 MB / 1.072 GB, free: 15.41 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8403/1.166, allocations: 143 MB / 1.212 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1851/1.351, allocations: 151.2 MB / 1.359 GB, free: 40.42 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003475/1.352, allocations: 88.77 kB / 1.359 GB, free: 40.34 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.009833/1.361, allocations: 3.371 MB / 1.363 GB, free: 36.97 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/1.362, allocations: 9 kB / 1.363 GB, free: 36.96 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003247/1.362, allocations: 28.64 kB / 1.363 GB, free: 36.94 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/1.362, allocations: 181.3 kB / 1.363 GB, free: 36.72 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/1.362, allocations: 4.875 kB / 1.363 GB, free: 36.72 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.597e-05/1.362, allocations: 0 / 1.363 GB, free: 36.72 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001417/1.362, allocations: 32.91 kB / 1.363 GB, free: 36.69 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/1.362, allocations: 69.64 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/1.362, allocations: 4.656 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/1.362, allocations: 0 / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/1.362, allocations: 0.8125 kB / 1.363 GB, free: 36.61 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/1.363, allocations: 303.5 kB / 1.363 GB, free: 36.28 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/1.363, allocations: 50.56 kB / 1.363 GB, free: 36.22 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.965e-05/1.363, allocations: 25.7 kB / 1.363 GB, free: 36.19 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/1.363, allocations: 0 / 1.363 GB, free: 36.19 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.519e-05/1.363, allocations: 31.28 kB / 1.363 GB, free: 36.15 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 8.41e-07/1.363, allocations: 0.5938 kB / 1.363 GB, free: 36.15 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0005454/1.364, allocations: 134.2 kB / 1.363 GB, free: 36.02 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/1.364, allocations: 52 kB / 1.364 GB, free: 35.95 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.577e-05/1.364, allocations: 111.3 kB / 1.364 GB, free: 35.84 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/1.364, allocations: 25.7 kB / 1.364 GB, free: 35.81 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.125e-05/1.364, allocations: 84.67 kB / 1.364 GB, free: 35.72 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/1.364, allocations: 12.94 kB / 1.364 GB, free: 35.71 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/1.364, allocations: 0 / 1.364 GB, free: 35.71 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.183e-05/1.364, allocations: 323.4 kB / 1.364 GB, free: 35.39 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.156e-05/1.364, allocations: 20.94 kB / 1.364 GB, free: 35.37 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.442e-05/1.364, allocations: 15.98 kB / 1.364 GB, free: 35.35 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/1.365, allocations: 68.72 kB / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.365, allocations: 0 / 1.364 GB, free: 35.29 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003769/1.365, allocations: 126.4 kB / 1.364 GB, free: 35.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/1.365, allocations: 4.5 kB / 1.364 GB, free: 35.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/1.365, allocations: 0 / 1.364 GB, free: 35.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/1.365, allocations: 9.5 kB / 1.364 GB, free: 35.14 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/1.365, allocations: 24.47 kB / 1.364 GB, free: 35.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.365, allocations: 0 / 1.364 GB, free: 35.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/1.365, allocations: 10.19 kB / 1.364 GB, free: 35.11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/1.365, allocations: 3.984 kB / 1.364 GB, free: 35.11 MB / 0.8855 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 (3): * Single equations (assignments): 3 * 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 7.2e-05/1.365, allocations: 109.5 kB / 1.364 GB, free: 35 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/1.365, allocations: 4.75 kB / 1.364 GB, free: 34.99 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.635e-05/1.366, allocations: 12.78 kB / 1.364 GB, free: 34.98 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/1.366, allocations: 3 kB / 1.364 GB, free: 34.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.366, allocations: 6.875 kB / 1.364 GB, free: 34.97 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.366, allocations: 0 / 1.364 GB, free: 34.97 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/1.366, allocations: 162.1 kB / 1.365 GB, free: 34.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.366, allocations: 0 / 1.365 GB, free: 34.78 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/1.366, allocations: 22.66 kB / 1.365 GB, free: 34.76 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/1.366, allocations: 0 / 1.365 GB, free: 34.76 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/1.366, allocations: 8 kB / 1.365 GB, free: 34.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/1.366, allocations: 0 / 1.365 GB, free: 34.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.366, allocations: 0.5938 kB / 1.365 GB, free: 34.75 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004457/1.366, allocations: 225.4 kB / 1.365 GB, free: 34.52 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004683/1.367, allocations: 0.5874 MB / 1.365 GB, free: 33.91 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.242e-05/1.367, allocations: 89.58 kB / 1.366 GB, free: 33.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/1.367, allocations: 1.25 kB / 1.366 GB, free: 33.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/1.367, allocations: 13.61 kB / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/1.367, allocations: 1 kB / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/1.367, allocations: 0 / 1.366 GB, free: 33.79 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.368e-05/1.367, allocations: 99.7 kB / 1.366 GB, free: 33.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008602/1.368, allocations: 35.84 kB / 1.366 GB, free: 33.66 MB / 0.8855 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 (3): * Single equations (assignments): 3 * 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.0001891/1.368, allocations: 128.2 kB / 1.366 GB, free: 33.53 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001371/1.368, allocations: 53.25 kB / 1.366 GB, free: 33.48 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/1.368, allocations: 0 / 1.366 GB, free: 33.48 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.93e-05/1.368, allocations: 27.98 kB / 1.366 GB, free: 33.45 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/1.369, allocations: 12.34 kB / 1.366 GB, free: 33.44 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002897/1.369, allocations: 88.38 kB / 1.366 GB, free: 33.33 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/1.369, allocations: 0.7041 MB / 1.367 GB, free: 32.6 MB / 0.8855 GB Notification: Performance of SimCode: time 2.71e-07/1.369, allocations: 0.6875 kB / 1.367 GB, free: 32.6 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat does not exist to compare? outputFormat=mat