Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.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.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain",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 2.042/2.042, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.001041/0.001041, allocations: 181.2 kB / 490.8 MB, free: 1.965 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.409/1.409, allocations: 221.3 MB / 0.7863 GB, free: 13.75 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.0009696/0.0009695, allocations: 99.36 kB / 0.9264 GB, free: 14.28 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6019/0.6029, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.8745, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8659/1.741, allocations: 375.3 MB / 1.578 GB, free: 7.246 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/1.741, allocations: 87.5 kB / 1.578 GB, free: 7.199 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.03239/1.773, allocations: 12.18 MB / 1.59 GB, free: 13.14 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/1.773, allocations: 8 kB / 1.59 GB, free: 13.13 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008075/1.774, allocations: 156.4 kB / 1.59 GB, free: 12.98 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009896/1.775, allocations: 336.3 kB / 1.591 GB, free: 12.62 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/1.775, allocations: 4 kB / 1.591 GB, free: 12.62 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/1.775, allocations: 12 kB / 1.591 GB, free: 12.61 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003049/1.775, allocations: 135.6 kB / 1.591 GB, free: 12.52 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/1.776, allocations: 144.6 kB / 1.591 GB, free: 12.41 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/1.776, allocations: 0 / 1.591 GB, free: 12.41 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/1.776, allocations: 0 / 1.591 GB, free: 12.41 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/1.776, allocations: 4 kB / 1.591 GB, free: 12.41 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/1.777, allocations: 0.561 MB / 1.592 GB, free: 11.89 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/1.777, allocations: 94.38 kB / 1.592 GB, free: 11.82 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/1.777, allocations: 82.97 kB / 1.592 GB, free: 11.77 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000668/1.778, allocations: 0.5056 MB / 1.592 GB, free: 11.16 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/1.778, allocations: 42 kB / 1.592 GB, free: 11.11 MB / 1.01 GB Notification: Performance of pre-optimization done (n=13): time 1.834e-06/1.778, allocations: 0 / 1.592 GB, free: 11.11 MB / 1.01 GB Notification: Performance of matching and sorting (n=13): time 0.003472/1.782, allocations: 0.5035 MB / 1.593 GB, free: 10.68 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/1.782, allocations: 51.41 kB / 1.593 GB, free: 10.61 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/1.782, allocations: 219.9 kB / 1.593 GB, free: 10.43 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/1.782, allocations: 29.7 kB / 1.593 GB, free: 10.4 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/1.782, allocations: 114.3 kB / 1.593 GB, free: 10.29 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/1.782, allocations: 39.23 kB / 1.593 GB, free: 10.26 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/1.782, allocations: 3.938 kB / 1.593 GB, free: 10.25 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.782, allocations: 337.2 kB / 1.593 GB, free: 9.926 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/1.782, allocations: 73.55 kB / 1.594 GB, free: 9.887 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/1.782, allocations: 77.83 kB / 1.594 GB, free: 9.844 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008629/1.791, allocations: 0.9071 MB / 1.594 GB, free: 9.02 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.791, allocations: 0 / 1.594 GB, free: 9.02 MB / 1.01 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.008911/1.8, allocations: 1.047 MB / 1.596 GB, free: 8.078 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/1.8, allocations: 4 kB / 1.596 GB, free: 8.074 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.8, allocations: 0 / 1.596 GB, free: 8.074 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/1.8, allocations: 0 / 1.596 GB, free: 8.074 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/1.801, allocations: 87.86 kB / 1.596 GB, free: 7.988 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/1.801, allocations: 4 kB / 1.596 GB, free: 7.984 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/1.801, allocations: 67.78 kB / 1.596 GB, free: 7.918 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-05/1.801, allocations: 11.11 kB / 1.596 GB, free: 7.91 MB / 1.01 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 (17): * Single equations (assignments): 17 * 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 0.0001098/1.801, allocations: 108.8 kB / 1.596 GB, free: 7.797 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/1.801, allocations: 27.72 kB / 1.596 GB, free: 7.77 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/1.805, allocations: 0.533 MB / 1.596 GB, free: 7.312 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/1.805, allocations: 0 / 1.596 GB, free: 7.312 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.805, allocations: 4 kB / 1.596 GB, free: 7.309 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/1.805, allocations: 0 / 1.596 GB, free: 7.309 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/1.805, allocations: 271.9 kB / 1.597 GB, free: 7.047 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/1.805, allocations: 0 / 1.597 GB, free: 7.047 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/1.806, allocations: 83.36 kB / 1.597 GB, free: 6.969 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/1.806, allocations: 7.906 kB / 1.597 GB, free: 6.961 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/1.806, allocations: 3.984 kB / 1.597 GB, free: 6.957 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.806, allocations: 0 / 1.597 GB, free: 6.957 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.806, allocations: 0 / 1.597 GB, free: 6.957 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003355/1.809, allocations: 0.6017 MB / 1.597 GB, free: 6.414 MB / 1.01 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003443/1.813, allocations: 0.9735 MB / 1.598 GB, free: 5.504 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/1.813, allocations: 129.7 kB / 1.598 GB, free: 5.367 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/1.813, allocations: 0 / 1.598 GB, free: 5.367 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/1.813, allocations: 55.95 kB / 1.598 GB, free: 5.312 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/1.813, allocations: 15.16 kB / 1.598 GB, free: 5.301 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/1.813, allocations: 7.984 kB / 1.598 GB, free: 5.293 MB / 1.01 GB Notification: Performance of sort global known variables: time 0.0002542/1.814, allocations: 169.1 kB / 1.599 GB, free: 5.16 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.001026/1.815, allocations: 81.89 kB / 1.599 GB, free: 5.086 MB / 1.01 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 (13): * Single equations (assignments): 13 * 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.0003552/1.815, allocations: 190.6 kB / 1.599 GB, free: 4.895 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0004001/1.815, allocations: 184.6 kB / 1.599 GB, free: 4.785 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.815, allocations: 4 kB / 1.599 GB, free: 4.781 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0001742/1.816, allocations: 89.53 kB / 1.599 GB, free: 4.727 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/1.816, allocations: 38.36 kB / 1.599 GB, free: 4.699 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008186/1.817, allocations: 299.7 kB / 1.599 GB, free: 4.422 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/1.817, allocations: 0.7896 MB / 1.6 GB, free: 3.609 MB / 1.01 GB Notification: Performance of SimCode: time 2.5e-07/1.817, allocations: 0 / 1.6 GB, free: 3.609 MB / 1.01 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_ASHRAESolarGain.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.ASHRAESolarGain_res.mat does not exist to compare? outputFormat=mat