Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [: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.0.1-maint.8.0.x/package.mo): time 1.31/1.31, allocations: 285.5 MB / 292.8 MB, free: 10.5 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.0009449/0.0009449, allocations: 181.3 kB / 361.1 MB, free: 7.137 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.012/1.012, allocations: 205.1 MB / 0.6195 GB, free: 10.35 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.000825/0.000825, allocations: 79.73 kB / 0.7325 GB, free: 44.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.64e-06/5.67e-06, allocations: 0 / 0.8511 GB, free: 3.035 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3907, allocations: 115.3 MB / 0.9637 GB, free: 78.34 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1327/0.5235, allocations: 140.3 MB / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.5238, allocations: 95.94 kB / 1.101 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01356/0.5373, allocations: 4.895 MB / 1.106 GB, free: 10.9 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.792e-05/0.5374, allocations: 4 kB / 1.106 GB, free: 10.9 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005147/0.5379, allocations: 0.4957 MB / 1.106 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.538, allocations: 12.97 kB / 1.106 GB, free: 10.35 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.079e-05/0.538, allocations: 33.47 kB / 1.106 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006095/0.5387, allocations: 416.5 kB / 1.107 GB, free: 9.867 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.5387, allocations: 5.719 kB / 1.107 GB, free: 9.863 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.5387, allocations: 4 kB / 1.107 GB, free: 9.859 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.898e-05/0.5388, allocations: 36.45 kB / 1.107 GB, free: 9.824 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.5389, allocations: 68.64 kB / 1.107 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.5389, allocations: 0.6562 kB / 1.107 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.5389, allocations: 0 / 1.107 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.539, allocations: 4 kB / 1.107 GB, free: 9.75 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006018/0.5396, allocations: 480.6 kB / 1.107 GB, free: 9.246 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.203e-05/0.5397, allocations: 40.3 kB / 1.107 GB, free: 9.199 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.826e-05/0.5397, allocations: 16.92 kB / 1.107 GB, free: 9.18 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.5397, allocations: 4 kB / 1.107 GB, free: 9.176 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.5397, allocations: 30.56 kB / 1.107 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.5398, allocations: 3.75 kB / 1.107 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001862/0.5399, allocations: 81.44 kB / 1.107 GB, free: 9.051 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.279e-05/0.54, allocations: 59.34 kB / 1.107 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005654/0.5405, allocations: 489.9 kB / 1.108 GB, free: 8.496 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.5406, allocations: 25.7 kB / 1.108 GB, free: 8.465 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.207e-05/0.5406, allocations: 131.9 kB / 1.108 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.5407, allocations: 3.906 kB / 1.108 GB, free: 8.328 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-06/0.5407, allocations: 0 / 1.108 GB, free: 8.328 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.5408, allocations: 347 kB / 1.108 GB, free: 7.98 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.844e-05/0.5408, allocations: 8 kB / 1.108 GB, free: 7.973 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.567e-05/0.5408, allocations: 8 kB / 1.108 GB, free: 7.965 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.664e-05/0.5409, allocations: 11.98 kB / 1.108 GB, free: 7.953 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.5409, allocations: 0 / 1.108 GB, free: 7.953 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001197/0.541, allocations: 77.31 kB / 1.108 GB, free: 7.871 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.541, allocations: 8 kB / 1.108 GB, free: 7.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.541, allocations: 3.906 kB / 1.108 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.541, allocations: 0 / 1.108 GB, free: 7.859 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.648e-05/0.5411, allocations: 8 kB / 1.108 GB, free: 7.852 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.5411, allocations: 3.938 kB / 1.108 GB, free: 7.848 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.35e-05/0.5412, allocations: 7.984 kB / 1.108 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.5412, allocations: 1.25 kB / 1.108 GB, free: 7.84 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 5.586e-05/0.5413, allocations: 109 kB / 1.109 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.5413, allocations: 31.62 kB / 1.109 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.5415, allocations: 90.47 kB / 1.109 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.5415, allocations: 0 / 1.109 GB, free: 7.594 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5415, allocations: 4 kB / 1.109 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.5415, allocations: 0 / 1.109 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.5418, allocations: 274 kB / 1.109 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.5418, allocations: 0 / 1.109 GB, free: 7.285 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.596e-05/0.5419, allocations: 11.98 kB / 1.109 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.5419, allocations: 4 kB / 1.109 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.5419, allocations: 5.906 kB / 1.109 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5419, allocations: 0 / 1.109 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5419, allocations: 3.938 kB / 1.109 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001805/0.5421, allocations: 175.2 kB / 1.109 GB, free: 7.074 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.5422, allocations: 136.7 kB / 1.109 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.5422, allocations: 0 / 1.109 GB, free: 6.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.5424, allocations: 8 kB / 1.109 GB, free: 6.914 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.229e-05/0.5424, allocations: 3.938 kB / 1.109 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.5424, allocations: 4 kB / 1.109 GB, free: 6.906 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0003969/0.5428, allocations: 385.8 kB / 1.11 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002621/0.5431, allocations: 35.84 kB / 1.11 GB, free: 6.496 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.0004963/0.5436, allocations: 283.6 kB / 1.11 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.737e-05/0.5437, allocations: 23.92 kB / 1.11 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.5437, allocations: 0 / 1.11 GB, free: 6.289 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.471e-05/0.5437, allocations: 12 kB / 1.11 GB, free: 6.277 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.544, allocations: 38.69 kB / 1.11 GB, free: 6.242 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007325/0.5447, allocations: 399.3 kB / 1.11 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.5451, allocations: 0.8142 MB / 1.111 GB, free: 4.992 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.5451, allocations: 0 / 1.111 GB, free: 4.992 MB / 0.7136 GB Notification: Performance of Templates: time 0.004982/0.5501, allocations: 1.978 MB / 1.113 GB, free: 3.051 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)