Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_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.1.4-maint.8.1.x/package.mo): time 1.309/1.309, allocations: 289.8 MB / 297.1 MB, free: 6.672 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.0009883/0.0009883, allocations: 184.2 kB / 366.3 MB, free: 1.949 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9689/0.9689, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.0007791/0.0007789, allocations: 83.33 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.4e-06/5.51e-06, allocations: 0 / 0.859 GB, free: 13.32 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3907, allocations: 116.3 MB / 0.9726 GB, free: 68.38 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.5236, allocations: 141.3 MB / 1.111 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.5238, allocations: 92.62 kB / 1.111 GB, free: 7.07 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01214/0.536, allocations: 4.908 MB / 1.115 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.195e-05/0.536, allocations: 4 kB / 1.115 GB, free: 2.176 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.0004173/0.5364, allocations: 0.49 MB / 1.116 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.891e-05/0.5365, allocations: 8.031 kB / 1.116 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.445e-05/0.5365, allocations: 35.53 kB / 1.116 GB, free: 1.598 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005665/0.5371, allocations: 424.3 kB / 1.116 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.5371, allocations: 4 kB / 1.116 GB, free: 1.137 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.5372, allocations: 4 kB / 1.116 GB, free: 1.133 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.08e-05/0.5372, allocations: 32 kB / 1.116 GB, free: 1.102 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.5373, allocations: 61.67 kB / 1.116 GB, free: 1.035 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-06/0.5374, allocations: 0 / 1.116 GB, free: 1.035 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.5374, allocations: 5.5 kB / 1.116 GB, free: 1.031 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.5374, allocations: 0 / 1.116 GB, free: 1.031 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005811/0.538, allocations: 484.9 kB / 1.117 GB, free: 0.5195 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.127e-05/0.5381, allocations: 46.56 kB / 1.117 GB, free: 476 kB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.714e-05/0.5381, allocations: 12.86 kB / 1.117 GB, free: 460 kB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.5381, allocations: 3.984 kB / 1.117 GB, free: 456 kB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.5382, allocations: 38.64 kB / 1.117 GB, free: 408 kB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 2.154e-06/0.5382, allocations: 112 / 1.117 GB, free: 408 kB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.000189/0.5384, allocations: 81.25 kB / 1.117 GB, free: 320 kB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.5384, allocations: 55.41 kB / 1.117 GB, free: 252 kB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.5389, allocations: 486 kB / 1.118 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.5389, allocations: 25.7 kB / 1.118 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.126e-05/0.539, allocations: 127.9 kB / 1.118 GB, free: 15.6 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.539, allocations: 7.906 kB / 1.118 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.539, allocations: 0 / 1.118 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.5392, allocations: 347 kB / 1.118 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.925e-05/0.5392, allocations: 8.562 kB / 1.118 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.654e-05/0.5392, allocations: 7.984 kB / 1.118 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.583e-05/0.5392, allocations: 11.94 kB / 1.118 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.5392, allocations: 0 / 1.118 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001178/0.5394, allocations: 81.31 kB / 1.118 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.5394, allocations: 4 kB / 1.118 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5394, allocations: 4.656 kB / 1.118 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.457e-06/0.5394, allocations: 0 / 1.118 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.216e-05/0.5395, allocations: 15.98 kB / 1.118 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.5395, allocations: 0 / 1.118 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.96e-05/0.5396, allocations: 4 kB / 1.118 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.5396, allocations: 4 kB / 1.118 GB, free: 15.1 MB / 0.7292 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.908e-05/0.5396, allocations: 101 kB / 1.118 GB, free: 15 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.064e-05/0.5397, allocations: 31.62 kB / 1.118 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001575/0.5399, allocations: 95.05 kB / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.5399, allocations: 8 kB / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.5399, allocations: 0 / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5399, allocations: 0 / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.5401, allocations: 274 kB / 1.119 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5402, allocations: 3.984 kB / 1.119 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.5402, allocations: 9.031 kB / 1.119 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.5402, allocations: 0 / 1.119 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.5402, allocations: 3.906 kB / 1.119 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.5402, allocations: 0 / 1.119 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5402, allocations: 0 / 1.119 GB, free: 14.54 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000143/0.5404, allocations: 187.4 kB / 1.119 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.5405, allocations: 128.8 kB / 1.119 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.5406, allocations: 7.984 kB / 1.119 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.551e-05/0.5407, allocations: 7.875 kB / 1.119 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.79e-05/0.5407, allocations: 7.984 kB / 1.119 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-06/0.5407, allocations: 0 / 1.119 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003804/0.5411, allocations: 389.1 kB / 1.119 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002453/0.5413, allocations: 39.84 kB / 1.119 GB, free: 13.75 MB / 0.7292 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.0004618/0.5418, allocations: 271.3 kB / 1.12 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 6.831e-05/0.5419, allocations: 16 kB / 1.12 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.5419, allocations: 0 / 1.12 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.581e-05/0.5419, allocations: 19.92 kB / 1.12 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.5422, allocations: 35.34 kB / 1.12 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006787/0.5429, allocations: 399.8 kB / 1.12 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003698/0.5432, allocations: 0.821 MB / 1.121 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.5433, allocations: 0 / 1.121 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of Templates: time 0.004564/0.5478, allocations: 1.966 MB / 1.123 GB, free: 10.29 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)