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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [: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.19/1.19, allocations: 249.4 MB / 256.7 MB, free: 7.082 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.000964/0.000964, allocations: 181.1 kB / 316 MB, free: 3.504 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.04/1.04, allocations: 205.1 MB / 0.5667 GB, free: 15.59 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.000886/0.0008859, allocations: 89.45 kB / 0.671 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.642e-06/6.743e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1423, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4173/0.5596, allocations: 132.6 MB / 1.014 GB, free: 6.32 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.5599, allocations: 87.27 kB / 1.014 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002962/0.5628, allocations: 0.8381 MB / 1.015 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.5629, allocations: 0 / 1.015 GB, free: 5.57 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.0003323/0.5632, allocations: 354 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.5633, allocations: 12.02 kB / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.5633, allocations: 15.78 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.5634, allocations: 174.9 kB / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.5634, allocations: 0 / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.5634, allocations: 0 / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.924e-05/0.5635, allocations: 18.06 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.076e-05/0.5636, allocations: 48.25 kB / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.5636, allocations: 0.5625 kB / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.5636, allocations: 0 / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-06/0.5636, allocations: 0 / 1.016 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.564, allocations: 249.8 kB / 1.016 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.299e-05/0.5641, allocations: 28.83 kB / 1.016 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.299e-05/0.5641, allocations: 24.81 kB / 1.016 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.5641, allocations: 0 / 1.016 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.5641, allocations: 32.19 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 9.31e-07/0.5641, allocations: 2.734 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001473/0.5643, allocations: 56.03 kB / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.5643, allocations: 51.41 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.5644, allocations: 108.4 kB / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.5644, allocations: 29.7 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.001e-05/0.5645, allocations: 92.02 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.5645, allocations: 3.906 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.5645, allocations: 4 kB / 1.016 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.408e-05/0.5646, allocations: 318.6 kB / 1.016 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.937e-05/0.5646, allocations: 7.75 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.63e-05/0.5647, allocations: 7.312 kB / 1.017 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.211e-05/0.5647, allocations: 7.25 kB / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.5647, allocations: 0 / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.315e-05/0.5648, allocations: 59.41 kB / 1.017 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.5648, allocations: 4 kB / 1.017 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.5648, allocations: 0 / 1.017 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.5648, allocations: 0 / 1.017 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5649, allocations: 15.98 kB / 1.017 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.5649, allocations: 0 / 1.017 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.384e-05/0.565, allocations: 4 kB / 1.017 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.565, allocations: 7.984 kB / 1.017 GB, free: 3.746 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 6.604e-05/0.5651, allocations: 112.8 kB / 1.017 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.5651, allocations: 7.844 kB / 1.017 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.5651, allocations: 11.5 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.5652, allocations: 0 / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.5652, allocations: 0 / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.5652, allocations: 0 / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.5653, allocations: 149 kB / 1.017 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5653, allocations: 4.812 kB / 1.017 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-05/0.5654, allocations: 15.98 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.5654, allocations: 4 kB / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.5654, allocations: 3.906 kB / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.5654, allocations: 0 / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5654, allocations: 192 / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001533/0.5656, allocations: 157.6 kB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/0.5656, allocations: 77.11 kB / 1.017 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.5657, allocations: 7.906 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.84e-05/0.5657, allocations: 8 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.5658, allocations: 7.234 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.5658, allocations: 3.938 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.485e-05/0.5658, allocations: 86.97 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003064/0.5662, allocations: 8 kB / 1.017 GB, free: 3.039 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 0.0001004/0.5663, allocations: 103.2 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.372e-05/0.5664, allocations: 18.5 kB / 1.017 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5664, allocations: 4 kB / 1.017 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.39e-05/0.5664, allocations: 7.312 kB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.5665, allocations: 7.984 kB / 1.017 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002371/0.5668, allocations: 78.77 kB / 1.017 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002307/0.567, allocations: 0.6954 MB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.567, allocations: 4 kB / 1.018 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of Templates: time 0.001913/0.5689, allocations: 489.6 kB / 1.019 GB, free: 1.621 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches