Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.589/1.589, allocations: 289.8 MB / 297 MB, free: 6.605 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.001367/0.001367, allocations: 181.3 kB / 366.3 MB, free: 1.941 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.71/1.71, allocations: 205.2 MB / 0.6256 GB, free: 5.805 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.001133/0.001134, allocations: 99.55 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.132e-05/1.142e-05, allocations: 4 kB / 0.859 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7484/0.7484, allocations: 116.3 MB / 0.9726 GB, free: 68.34 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.9275, allocations: 138.8 MB / 1.108 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.9278, allocations: 91.88 kB / 1.108 GB, free: 9.566 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.003329/0.9311, allocations: 0.8488 MB / 1.109 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.9311, allocations: 1.5 kB / 1.109 GB, free: 8.73 MB / 0.7136 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.0003968/0.9316, allocations: 342.3 kB / 1.109 GB, free: 8.352 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.9316, allocations: 12.03 kB / 1.109 GB, free: 8.34 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.9316, allocations: 11.91 kB / 1.109 GB, free: 8.328 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.9318, allocations: 171 kB / 1.11 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.9318, allocations: 0 / 1.11 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.9318, allocations: 0 / 1.11 GB, free: 8.121 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.839e-05/0.9319, allocations: 15.91 kB / 1.11 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.611e-05/0.932, allocations: 49.61 kB / 1.11 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.932, allocations: 0 / 1.11 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.932, allocations: 0 / 1.11 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.9321, allocations: 4 kB / 1.11 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.9324, allocations: 253.4 kB / 1.11 GB, free: 7.762 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.177e-05/0.9325, allocations: 26.58 kB / 1.11 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.663e-05/0.9326, allocations: 12.86 kB / 1.11 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.9326, allocations: 4 kB / 1.11 GB, free: 7.707 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.9326, allocations: 39.44 kB / 1.11 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.9326, allocations: 0 / 1.11 GB, free: 7.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.000177/0.9328, allocations: 53.69 kB / 1.11 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.9329, allocations: 51.41 kB / 1.11 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.933, allocations: 107.1 kB / 1.11 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.933, allocations: 25.7 kB / 1.11 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.9331, allocations: 88.14 kB / 1.11 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.9331, allocations: 3.906 kB / 1.11 GB, free: 7.305 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.9331, allocations: 0 / 1.11 GB, free: 7.305 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.9332, allocations: 330.7 kB / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.019e-05/0.9333, allocations: 6.062 kB / 1.111 GB, free: 6.969 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.051e-05/0.9333, allocations: 8 kB / 1.111 GB, free: 6.961 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.689e-05/0.9333, allocations: 11.94 kB / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.9333, allocations: 0 / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.744e-05/0.9334, allocations: 53.62 kB / 1.111 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.9335, allocations: 7.906 kB / 1.111 GB, free: 6.883 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.9335, allocations: 3.984 kB / 1.111 GB, free: 6.879 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.9335, allocations: 0 / 1.111 GB, free: 6.879 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.9336, allocations: 12 kB / 1.111 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.9336, allocations: 0 / 1.111 GB, free: 6.867 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.9337, allocations: 11.98 kB / 1.111 GB, free: 6.855 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.9337, allocations: 4 kB / 1.111 GB, free: 6.852 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 7.006e-05/0.9338, allocations: 101 kB / 1.111 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.9338, allocations: 7.906 kB / 1.111 GB, free: 6.738 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.9339, allocations: 8 kB / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.9339, allocations: 0 / 1.111 GB, free: 6.723 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.9339, allocations: 4 kB / 1.111 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.9339, allocations: 3.984 kB / 1.111 GB, free: 6.715 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.9341, allocations: 154.1 kB / 1.111 GB, free: 6.527 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.9341, allocations: 192 / 1.111 GB, free: 6.527 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.286e-05/0.9341, allocations: 11.98 kB / 1.111 GB, free: 6.516 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.9341, allocations: 0 / 1.111 GB, free: 6.516 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.9342, allocations: 5.391 kB / 1.111 GB, free: 6.512 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.9342, allocations: 8 kB / 1.111 GB, free: 6.504 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.9342, allocations: 4 kB / 1.111 GB, free: 6.5 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001358/0.9343, allocations: 147.4 kB / 1.111 GB, free: 6.34 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.9344, allocations: 85.02 kB / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.9344, allocations: 0 / 1.111 GB, free: 6.238 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.603e-05/0.9345, allocations: 7.984 kB / 1.111 GB, free: 6.23 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.9345, allocations: 8 kB / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.9346, allocations: 0 / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.312e-05/0.9346, allocations: 95.27 kB / 1.111 GB, free: 6.129 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000204/0.9348, allocations: 8 kB / 1.111 GB, free: 6.121 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.0001198/0.935, allocations: 99.16 kB / 1.111 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.262e-05/0.935, allocations: 16 kB / 1.111 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.9351, allocations: 3.938 kB / 1.111 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.139e-05/0.9351, allocations: 23.92 kB / 1.111 GB, free: 5.969 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.9352, allocations: 4.75 kB / 1.111 GB, free: 5.965 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000316/0.9356, allocations: 82.3 kB / 1.112 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.9359, allocations: 0.6954 MB / 1.112 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.9359, allocations: 4 kB / 1.112 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of Templates: time 0.002234/0.9381, allocations: 485.9 kB / 1.113 GB, free: 4.695 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)