Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",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 8.0.1-maint.8.0.x/package.mo): time 1.417/1.417, allocations: 285.5 MB / 292.8 MB, free: 10.45 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009998/0.0009999, allocations: 185.2 kB / 361.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 0.6195 GB, free: 10.3 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008794/0.0008794, allocations: 83.7 kB / 0.7325 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2051/0.206, allocations: 121.5 MB / 0.8512 GB, free: 2.875 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5127/0.7187, allocations: 115.3 MB / 0.9638 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.8732, allocations: 137.8 MB / 1.098 GB, free: 2.203 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.8735, allocations: 85.06 kB / 1.098 GB, free: 2.121 MB / 0.698 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.003525/0.8771, allocations: 1.191 MB / 1.1 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.8771, allocations: 12 kB / 1.1 GB, free: 0.9102 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.8772, allocations: 3.906 kB / 1.1 GB, free: 0.9062 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.8773, allocations: 172.5 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.8773, allocations: 4.531 kB / 1.1 GB, free: 0.6953 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.8773, allocations: 0 / 1.1 GB, free: 0.6953 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.991e-05/0.8774, allocations: 22.33 kB / 1.1 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.884e-05/0.8775, allocations: 46.25 kB / 1.1 GB, free: 0.625 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.8775, allocations: 0.7812 kB / 1.1 GB, free: 0.625 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.8775, allocations: 1.5 kB / 1.1 GB, free: 0.625 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.8775, allocations: 4.688 kB / 1.1 GB, free: 0.6211 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/0.8779, allocations: 249 kB / 1.1 GB, free: 352 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.765e-05/0.878, allocations: 31.2 kB / 1.1 GB, free: 312 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.203e-05/0.878, allocations: 13.55 kB / 1.1 GB, free: 296 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.878, allocations: 3.969 kB / 1.1 GB, free: 296 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.8781, allocations: 39.78 kB / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.8781, allocations: 0 / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001617/0.8782, allocations: 49.69 kB / 1.1 GB, free: 192 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.8783, allocations: 52.16 kB / 1.1 GB, free: 128 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.8783, allocations: 109.5 kB / 1.1 GB, free: 12 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.8784, allocations: 27.17 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.094e-05/0.8784, allocations: 84.14 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.8784, allocations: 3.906 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.8784, allocations: 0.5625 kB / 1.101 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.8786, allocations: 323.3 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.407e-05/0.8786, allocations: 12.78 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.774e-05/0.8786, allocations: 8 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.8787, allocations: 17.22 kB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.8787, allocations: 0 / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.818e-05/0.8788, allocations: 50.19 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.8788, allocations: 11.91 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.8788, allocations: 0.5625 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.8788, allocations: 4.938 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.8789, allocations: 8 kB / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.537e-06/0.8789, allocations: 0 / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.717e-05/0.879, allocations: 11.98 kB / 1.101 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.879, allocations: 0 / 1.101 GB, free: 15.44 MB / 0.7136 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 5.464e-05/0.8791, allocations: 105 kB / 1.101 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.8791, allocations: 7.906 kB / 1.101 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.869e-05/0.8792, allocations: 8 kB / 1.101 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.8792, allocations: 5.984 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8792, allocations: 0 / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.8792, allocations: 0 / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.8793, allocations: 162 kB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.8793, allocations: 0 / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.343e-05/0.8794, allocations: 11.98 kB / 1.101 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.8794, allocations: 4.562 kB / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.8794, allocations: 0 / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.8794, allocations: 0 / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8794, allocations: 1.031 kB / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001211/0.8796, allocations: 148 kB / 1.101 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001801/0.8798, allocations: 0.5258 MB / 1.102 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.185e-05/0.8798, allocations: 89.52 kB / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.8798, allocations: 0 / 1.102 GB, free: 14.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.896e-05/0.8799, allocations: 5.188 kB / 1.102 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.88, allocations: 7.984 kB / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.88, allocations: 0 / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.748e-05/0.88, allocations: 89.8 kB / 1.102 GB, free: 14.19 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007528/0.8808, allocations: 11.91 kB / 1.102 GB, free: 14.18 MB / 0.7136 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.0001067/0.8809, allocations: 107 kB / 1.102 GB, free: 14.06 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.358e-05/0.881, allocations: 25.58 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.881, allocations: 0 / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.928e-05/0.881, allocations: 12 kB / 1.102 GB, free: 14.03 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.8812, allocations: 0 / 1.102 GB, free: 14.03 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002581/0.8814, allocations: 88.56 kB / 1.102 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.8817, allocations: 0.6993 MB / 1.103 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/0.8817, allocations: 0 / 1.103 GB, free: 13.19 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)