Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.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: "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain",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 9.1.1-maint.9.1.x/package.mo): time 1.976/1.976, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.00109/0.00109, allocations: 177.2 kB / 487 MB, free: 5.402 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.34/1.34, allocations: 221.3 MB / 0.7819 GB, free: 1.434 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.000894/0.000894, allocations: 100.4 kB / 0.9213 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5486/0.5495, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.79, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6455/1.436, allocations: 148.7 MB / 1.351 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/1.436, allocations: 81.42 kB / 1.351 GB, free: 15.86 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.002298/1.438, allocations: 0.9441 MB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/1.438, allocations: 10.27 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/1.438, allocations: 7.969 kB / 1.352 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/1.438, allocations: 189.5 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/1.438, allocations: 2.188 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/1.438, allocations: 11.81 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.424e-05/1.439, allocations: 35.45 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/1.439, allocations: 90.95 kB / 1.352 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/1.439, allocations: 1.094 kB / 1.352 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/1.439, allocations: 0 / 1.352 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/1.439, allocations: 2.125 kB / 1.352 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004352/1.439, allocations: 0.6073 MB / 1.352 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.699e-05/1.439, allocations: 170 kB / 1.353 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.041e-05/1.439, allocations: 82.75 kB / 1.353 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/1.439, allocations: 79.28 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/1.439, allocations: 106.8 kB / 1.353 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=0): time 1.002e-06/1.439, allocations: 1.156 kB / 1.353 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of matching and sorting (n=0): time 6.134e-05/1.439, allocations: 31.77 kB / 1.353 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.91e-05/1.439, allocations: 56.38 kB / 1.353 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.197e-05/1.44, allocations: 114.9 kB / 1.353 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.032e-06/1.44, allocations: 25.7 kB / 1.353 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/1.44, allocations: 112.2 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-06/1.44, allocations: 0 / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-06/1.44, allocations: 0 / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.803e-05/1.44, allocations: 317.7 kB / 1.354 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.171e-05/1.44, allocations: 1.594 kB / 1.354 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.743e-05/1.44, allocations: 24.08 kB / 1.354 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.063e-05/1.44, allocations: 6.688 kB / 1.354 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.44, allocations: 1.094 kB / 1.354 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001106/1.44, allocations: 56.77 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/1.44, allocations: 5.062 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.44, allocations: 1.188 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/1.44, allocations: 1.125 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.456e-05/1.44, allocations: 5.25 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/1.44, allocations: 1.219 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.744e-05/1.44, allocations: 1.25 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/1.44, allocations: 6.406 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 5.432e-05/1.44, allocations: 183 kB / 1.354 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.226e-05/1.44, allocations: 108.6 kB / 1.354 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.5e-05/1.44, allocations: 115.2 kB / 1.354 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/1.44, allocations: 177.6 kB / 1.354 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.879e-05/1.44, allocations: 190.7 kB / 1.354 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/1.44, allocations: 180.3 kB / 1.355 GB, free: 12.51 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/1.44, allocations: 399.5 kB / 1.355 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/1.44, allocations: 107.2 kB / 1.355 GB, free: 11.99 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-05/1.44, allocations: 102 kB / 1.355 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.418e-05/1.44, allocations: 179.2 kB / 1.355 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/1.44, allocations: 185.7 kB / 1.355 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.426e-05/1.441, allocations: 177 kB / 1.356 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.787e-05/1.441, allocations: 182.9 kB / 1.356 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.679e-05/1.441, allocations: 311 kB / 1.356 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001055/1.441, allocations: 0.6772 MB / 1.357 GB, free: 10.15 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/1.441, allocations: 185.6 kB / 1.357 GB, free: 9.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.809e-05/1.441, allocations: 177.1 kB / 1.357 GB, free: 9.766 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.964e-05/1.441, allocations: 106.9 kB / 1.357 GB, free: 9.656 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/1.441, allocations: 185.3 kB / 1.357 GB, free: 25.47 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/1.441, allocations: 103.7 kB / 1.357 GB, free: 25.37 MB / 0.823 GB Notification: Performance of sort global known variables: time 6.95e-05/1.441, allocations: 93.62 kB / 1.358 GB, free: 25.29 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007749/1.442, allocations: 14.72 kB / 1.358 GB, free: 25.28 MB / 0.823 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 (0): * Single equations (assignments): 0 * 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.0001458/1.442, allocations: 175.9 kB / 1.358 GB, free: 25.12 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 5.379e-05/1.442, allocations: 7.234 kB / 1.358 GB, free: 25.12 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.442, allocations: 4.188 kB / 1.358 GB, free: 25.11 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 9.52e-07/1.442, allocations: 3.938 kB / 1.358 GB, free: 25.11 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/1.442, allocations: 0.5218 MB / 1.358 GB, free: 24.59 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/1.443, allocations: 163.4 kB / 1.358 GB, free: 24.43 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/1.443, allocations: 0.7064 MB / 1.359 GB, free: 23.73 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/1.443, allocations: 0 / 1.359 GB, free: 23.73 MB / 0.823 GB (rm -f Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe >> ../files/Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat --tempDir=temp_Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_ThermalZones_Detailed_BaseClasses_Examples_HeatGain.fmu > Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.ThermalZones.Detailed.BaseClasses.Examples.HeatGain_res.mat does not exist to compare? outputFormat=mat