Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.29/1.29, allocations: 249.4 MB / 256.7 MB, free: 7.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000969/0.000969, allocations: 185 kB / 316 MB, free: 3.586 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.2 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008483/0.0008483, allocations: 94.03 kB / 0.671 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3446/0.3455, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.5135, allocations: 106.3 MB / 0.8847 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4594/0.9729, allocations: 132.6 MB / 1.014 GB, free: 5.934 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.9733, allocations: 82.12 kB / 1.014 GB, free: 5.887 MB / 0.6355 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.003438/0.9767, allocations: 1.184 MB / 1.015 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.9768, allocations: 8 kB / 1.015 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.9768, allocations: 11.84 kB / 1.015 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.9769, allocations: 170.9 kB / 1.016 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.9769, allocations: 0.625 kB / 1.016 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.9769, allocations: 8 kB / 1.016 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.369e-05/0.977, allocations: 18.36 kB / 1.016 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.343e-05/0.9771, allocations: 48.69 kB / 1.016 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.9771, allocations: 0 / 1.016 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.9771, allocations: 0 / 1.016 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.9771, allocations: 0 / 1.016 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003148/0.9775, allocations: 251.8 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.022e-05/0.9775, allocations: 34.52 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.057e-05/0.9776, allocations: 11.86 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.9776, allocations: 0 / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.9776, allocations: 34.31 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.9776, allocations: 0 / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001492/0.9778, allocations: 53.62 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.9778, allocations: 51.41 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.494e-05/0.9779, allocations: 118.2 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.9779, allocations: 25.7 kB / 1.016 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.923e-05/0.9779, allocations: 87.86 kB / 1.016 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.9779, allocations: 11.84 kB / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-06/0.978, allocations: 0 / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.947e-05/0.978, allocations: 317.7 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.01e-05/0.9781, allocations: 7.25 kB / 1.017 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.667e-05/0.9781, allocations: 4 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/0.9781, allocations: 15.86 kB / 1.017 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.9781, allocations: 0 / 1.017 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.15e-05/0.9782, allocations: 52.48 kB / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.9782, allocations: 7.984 kB / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.9783, allocations: 0 / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.9783, allocations: 4 kB / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.9784, allocations: 8 kB / 1.017 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.556e-06/0.9784, allocations: 0 / 1.017 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.587e-05/0.9784, allocations: 11.98 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.9785, allocations: 4 kB / 1.017 GB, free: 3.375 MB / 0.6355 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.328e-05/0.9785, allocations: 108.8 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.9786, allocations: 3.906 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.9786, allocations: 11.56 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.9786, allocations: 3.984 kB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.9786, allocations: 7.922 kB / 1.017 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.9786, allocations: 0 / 1.017 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.9787, allocations: 152.6 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.9788, allocations: 0 / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.44e-05/0.9788, allocations: 15.98 kB / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.9788, allocations: 0 / 1.017 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.9789, allocations: 3.906 kB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9789, allocations: 0.625 kB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9789, allocations: 0 / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001132/0.979, allocations: 151.1 kB / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001895/0.9792, allocations: 0.5204 MB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.9792, allocations: 89 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.9792, allocations: 0 / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.9793, allocations: 4 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.9794, allocations: 7.984 kB / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.9794, allocations: 4.875 kB / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.851e-05/0.9794, allocations: 91.44 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000742/0.9802, allocations: 8 kB / 1.018 GB, free: 2.145 MB / 0.6355 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 8.637e-05/0.9803, allocations: 95.25 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.542e-05/0.9803, allocations: 22.36 kB / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.9804, allocations: 0 / 1.018 GB, free: 2.023 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.754e-05/0.9804, allocations: 19.25 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.9805, allocations: 7.844 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002325/0.9808, allocations: 81.5 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.981, allocations: 0.6954 MB / 1.019 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/0.981, allocations: 0 / 1.019 GB, free: 1.18 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)