Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.082/2.082, allocations: 284.9 MB / 292.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001563, allocations: 189.2 kB / 360.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.1 MB / 0.6188 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00121/0.00121, allocations: 92.98 kB / 0.7318 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.165e-06/8.286e-06, allocations: 0 / 0.8503 GB, free: 3.988 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5311/0.5312, allocations: 115.2 MB / 0.9628 GB, free: 78.65 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1956/0.7268, allocations: 138.5 MB / 1.098 GB, free: 2.387 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.7272, allocations: 89.45 kB / 1.098 GB, free: 2.301 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.006028/0.7332, allocations: 1.203 MB / 1.099 GB, free: 1.148 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.7333, allocations: 4.531 kB / 1.099 GB, free: 1.145 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005088/0.7338, allocations: 372.8 kB / 1.1 GB, free: 0.7383 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.7338, allocations: 8.531 kB / 1.1 GB, free: 0.7305 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.855e-05/0.7339, allocations: 11.91 kB / 1.1 GB, free: 0.7188 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.7341, allocations: 180.6 kB / 1.1 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.7341, allocations: 0 / 1.1 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.7341, allocations: 4 kB / 1.1 GB, free: 0.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001356/0.7343, allocations: 24 kB / 1.1 GB, free: 488 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.7345, allocations: 83.23 kB / 1.1 GB, free: 392 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.7345, allocations: 0 / 1.1 GB, free: 392 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.7345, allocations: 4 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.7345, allocations: 0 / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.7351, allocations: 309.2 kB / 1.1 GB, free: 40 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.7353, allocations: 34.62 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.575e-05/0.7354, allocations: 20.86 kB / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.7354, allocations: 0 / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.7354, allocations: 38.33 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 1.944e-06/0.7355, allocations: 8.734 kB / 1.1 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0002307/0.7357, allocations: 57.73 kB / 1.1 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.7358, allocations: 81.05 kB / 1.1 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.7359, allocations: 118.4 kB / 1.101 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.7359, allocations: 25.7 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.736, allocations: 96.06 kB / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/0.736, allocations: 15.81 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.7361, allocations: 0 / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.7362, allocations: 314.8 kB / 1.101 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.95e-05/0.7362, allocations: 20 kB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.921e-05/0.7363, allocations: 25.72 kB / 1.101 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.603e-05/0.7364, allocations: 15.98 kB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.7364, allocations: 0 / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001707/0.7366, allocations: 65.59 kB / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.7366, allocations: 8 kB / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.7366, allocations: 0 / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.7366, allocations: 0 / 1.101 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.7368, allocations: 19.95 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.7368, allocations: 6.188 kB / 1.101 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.737, allocations: 15.91 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.737, allocations: 7.984 kB / 1.101 GB, free: 14.99 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: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.03e-05/0.7371, allocations: 110.1 kB / 1.101 GB, free: 14.88 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.31e-05/0.7372, allocations: 8.656 kB / 1.101 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.7372, allocations: 8.125 kB / 1.101 GB, free: 14.85 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.7372, allocations: 4 kB / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.7372, allocations: 0 / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7372, allocations: 0 / 1.101 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.7374, allocations: 166.1 kB / 1.101 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7375, allocations: 0 / 1.101 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.7376, allocations: 15.98 kB / 1.101 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.7376, allocations: 0 / 1.101 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.7376, allocations: 4.75 kB / 1.101 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.7376, allocations: 0 / 1.101 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7376, allocations: 0 / 1.101 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001846/0.7378, allocations: 159.4 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.7379, allocations: 91.12 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.7379, allocations: 4 kB / 1.102 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.7381, allocations: 15.98 kB / 1.102 GB, free: 14.33 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.7382, allocations: 12.55 kB / 1.102 GB, free: 14.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.7382, allocations: 4 kB / 1.102 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7.095e-05/0.7383, allocations: 98.73 kB / 1.102 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003068/0.7386, allocations: 12 kB / 1.102 GB, free: 14.21 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001183/0.7388, allocations: 99.25 kB / 1.102 GB, free: 14.1 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001559/0.7389, allocations: 32.56 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.739, allocations: 0 / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.933e-05/0.739, allocations: 27.92 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.7393, allocations: 4 kB / 1.102 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003792/0.7396, allocations: 96.55 kB / 1.102 GB, free: 13.92 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.74, allocations: 0.711 MB / 1.103 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of SimCode: time 6.91e-07/0.74, allocations: 0 / 1.103 GB, free: 13.19 MB / 0.7136 GB Notification: Performance of Templates: time 0.003643/0.7437, allocations: 0.7913 MB / 1.104 GB, free: 12.44 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)