Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.095/2.095, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001204/0.001204, allocations: 177.3 kB / 487 MB, free: 5.344 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.48/1.48, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.001182/0.001182, allocations: 97.98 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6154/0.6166, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.891, allocations: 142.4 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7454/1.636, allocations: 149.1 MB / 1.351 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/1.637, allocations: 81.69 kB / 1.351 GB, free: 15.77 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.003506/1.64, allocations: 1.231 MB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.64, allocations: 9 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/1.64, allocations: 7.312 kB / 1.352 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.993e-05/1.64, allocations: 171 kB / 1.352 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/1.64, allocations: 5.109 kB / 1.352 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/1.64, allocations: 2.406 kB / 1.352 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.896e-05/1.641, allocations: 19.19 kB / 1.352 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.938e-05/1.641, allocations: 49.55 kB / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/1.641, allocations: 4 kB / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/1.641, allocations: 0 / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-06/1.641, allocations: 1.781 kB / 1.352 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003136/1.641, allocations: 248.9 kB / 1.353 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.689e-05/1.641, allocations: 28.03 kB / 1.353 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/1.641, allocations: 13.52 kB / 1.353 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/1.641, allocations: 5.156 kB / 1.353 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/1.641, allocations: 37.06 kB / 1.353 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/1.641, allocations: 0 / 1.353 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001734/1.641, allocations: 52.52 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.021e-05/1.641, allocations: 52.91 kB / 1.353 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.625e-05/1.641, allocations: 106.6 kB / 1.353 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.307e-06/1.641, allocations: 26.73 kB / 1.353 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.772e-05/1.641, allocations: 90.61 kB / 1.353 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/1.642, allocations: 6.547 kB / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/1.642, allocations: 0 / 1.353 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.571e-05/1.642, allocations: 323 kB / 1.353 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.283e-05/1.642, allocations: 6.734 kB / 1.353 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.775e-05/1.642, allocations: 7.812 kB / 1.353 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.668e-05/1.642, allocations: 7.844 kB / 1.353 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/1.642, allocations: 1.281 kB / 1.353 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.678e-05/1.642, allocations: 54.58 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/1.642, allocations: 9.156 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/1.642, allocations: 9.625 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/1.642, allocations: 1.25 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/1.642, allocations: 11.97 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/1.642, allocations: 0 / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.032e-05/1.642, allocations: 10.53 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/1.642, allocations: 1.25 kB / 1.353 GB, free: 14.12 MB / 0.8073 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 4.893e-05/1.642, allocations: 106.3 kB / 1.354 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/1.642, allocations: 8.547 kB / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/1.642, allocations: 10.12 kB / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/1.642, allocations: 1.375 kB / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/1.642, allocations: 0 / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/1.642, allocations: 1.5 kB / 1.354 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/1.642, allocations: 145.8 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.642, allocations: 1.266 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.164e-05/1.642, allocations: 18.41 kB / 1.354 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/1.642, allocations: 0 / 1.354 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/1.642, allocations: 1.375 kB / 1.354 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/1.642, allocations: 0 / 1.354 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.642, allocations: 10.7 kB / 1.354 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001175/1.643, allocations: 154.1 kB / 1.354 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000153/1.643, allocations: 0.5164 MB / 1.354 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/1.643, allocations: 83.5 kB / 1.355 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/1.643, allocations: 1.031 kB / 1.355 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/1.643, allocations: 6.703 kB / 1.355 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/1.643, allocations: 7.531 kB / 1.355 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/1.643, allocations: 1 kB / 1.355 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.736e-05/1.643, allocations: 93.25 kB / 1.355 GB, free: 13 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008126/1.644, allocations: 11.47 kB / 1.355 GB, free: 13 MB / 0.8073 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.0001327/1.644, allocations: 102 kB / 1.355 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001044/1.644, allocations: 20.62 kB / 1.355 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/1.644, allocations: 0.7812 kB / 1.355 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.459e-05/1.644, allocations: 11.2 kB / 1.355 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/1.644, allocations: 1.656 kB / 1.355 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002831/1.645, allocations: 86.44 kB / 1.355 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/1.645, allocations: 0.6956 MB / 1.356 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of SimCode: time 2.71e-07/1.645, allocations: 0 / 1.356 GB, free: 12.13 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat does not exist to compare? outputFormat=mat