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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.702/1.702, allocations: 293 MB / 309 MB, free: 4.793 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.001135/0.001135, allocations: 176.5 kB / 378.7 MB, free: 1.012 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.72/1.72, allocations: 205.4 MB / 0.6383 GB, free: 8.227 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.0008198/0.0008196, allocations: 94.38 kB / 0.7527 GB, free: 62.68 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003992, allocations: 12 kB / 0.8768 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2657, allocations: 116.4 MB / 0.9904 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7015/0.9672, allocations: 142.2 MB / 1.129 GB, free: 32.32 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.9675, allocations: 99.56 kB / 1.129 GB, free: 32.25 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.9793, allocations: 5.331 MB / 1.135 GB, free: 28.47 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.334e-06/0.9794, allocations: 0 / 1.135 GB, free: 28.47 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.61e-05/0.9794, allocations: 11.98 kB / 1.135 GB, free: 28.46 MB / 0.7292 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.0006215/0.98, allocations: 0.5759 MB / 1.135 GB, free: 27.86 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.9801, allocations: 8.031 kB / 1.135 GB, free: 27.86 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.465e-05/0.9801, allocations: 32.56 kB / 1.135 GB, free: 27.82 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005377/0.9807, allocations: 439.4 kB / 1.136 GB, free: 27.4 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.9807, allocations: 4.984 kB / 1.136 GB, free: 27.4 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.423e-05/0.9807, allocations: 8.875 kB / 1.136 GB, free: 27.39 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/0.9809, allocations: 76.16 kB / 1.136 GB, free: 27.32 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.9809, allocations: 1.453 kB / 1.136 GB, free: 27.32 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.9809, allocations: 8.438 kB / 1.136 GB, free: 27.31 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.981, allocations: 7.938 kB / 1.136 GB, free: 27.3 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.9811, allocations: 48.11 kB / 1.136 GB, free: 27.27 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005856/0.9817, allocations: 0.4975 MB / 1.136 GB, free: 26.79 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.9818, allocations: 47.83 kB / 1.136 GB, free: 26.74 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.845e-05/0.9818, allocations: 27.5 kB / 1.136 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.9819, allocations: 0.75 kB / 1.136 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.442e-05/0.9819, allocations: 31.12 kB / 1.136 GB, free: 26.68 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.9819, allocations: 0 / 1.136 GB, free: 26.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0002715/0.9822, allocations: 111.3 kB / 1.137 GB, free: 26.57 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.9822, allocations: 51.41 kB / 1.137 GB, free: 26.51 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006143/0.9828, allocations: 0.5475 MB / 1.137 GB, free: 26.02 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.9828, allocations: 25.7 kB / 1.137 GB, free: 25.99 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.9829, allocations: 175.1 kB / 1.137 GB, free: 25.82 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.983, allocations: 13.3 kB / 1.137 GB, free: 25.81 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.983, allocations: 0 / 1.137 GB, free: 25.81 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.851e-05/0.9831, allocations: 344 kB / 1.138 GB, free: 25.48 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-05/0.9831, allocations: 18.25 kB / 1.138 GB, free: 25.46 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.028e-05/0.9832, allocations: 19.66 kB / 1.138 GB, free: 25.45 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.545e-05/0.9833, allocations: 38.48 kB / 1.138 GB, free: 25.41 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9833, allocations: 0 / 1.138 GB, free: 25.41 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001498/0.9834, allocations: 97.94 kB / 1.138 GB, free: 25.32 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.9835, allocations: 4 kB / 1.138 GB, free: 25.31 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.9835, allocations: 0 / 1.138 GB, free: 25.31 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.9835, allocations: 4.75 kB / 1.138 GB, free: 25.31 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.076e-05/0.9836, allocations: 11.67 kB / 1.138 GB, free: 25.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.9836, allocations: 1.188 kB / 1.138 GB, free: 25.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.207e-05/0.9837, allocations: 8.594 kB / 1.138 GB, free: 25.29 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.9837, allocations: 0.9062 kB / 1.138 GB, free: 25.29 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 () * Number of clocked 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 0.0001314/0.9838, allocations: 186.8 kB / 1.138 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.9839, allocations: 27.62 kB / 1.138 GB, free: 25.08 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.9841, allocations: 111.1 kB / 1.138 GB, free: 24.98 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.9841, allocations: 1.5 kB / 1.138 GB, free: 24.98 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9841, allocations: 0.5625 kB / 1.138 GB, free: 24.98 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.9841, allocations: 7.938 kB / 1.138 GB, free: 24.97 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.9844, allocations: 301 kB / 1.138 GB, free: 24.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.9844, allocations: 4.656 kB / 1.138 GB, free: 24.68 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.407e-05/0.9845, allocations: 6.719 kB / 1.138 GB, free: 24.68 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.9845, allocations: 0.5156 kB / 1.138 GB, free: 24.68 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.9845, allocations: 8.562 kB / 1.138 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.9845, allocations: 0 / 1.138 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.9845, allocations: 0 / 1.138 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.9847, allocations: 191.5 kB / 1.139 GB, free: 24.47 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.9848, allocations: 130.9 kB / 1.139 GB, free: 24.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.9849, allocations: 4.75 kB / 1.139 GB, free: 24.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.985, allocations: 8.594 kB / 1.139 GB, free: 24.32 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.985, allocations: 7.422 kB / 1.139 GB, free: 24.32 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.9851, allocations: 5.984 kB / 1.139 GB, free: 24.31 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0004201/0.9855, allocations: 411 kB / 1.139 GB, free: 23.96 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9855, allocations: 0 / 1.139 GB, free: 23.96 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002485/0.9857, allocations: 33.25 kB / 1.139 GB, free: 23.93 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 () * Number of clocked 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.0007446/0.9865, allocations: 359.9 kB / 1.14 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001446/0.9867, allocations: 34.38 kB / 1.14 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.9867, allocations: 0 / 1.14 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 5.022e-05/0.9867, allocations: 27.27 kB / 1.14 GB, free: 23.7 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.9871, allocations: 38.64 kB / 1.14 GB, free: 23.67 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007808/0.9879, allocations: 0.575 MB / 1.14 GB, free: 23.12 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.9882, allocations: 0.7816 MB / 1.141 GB, free: 22.35 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001306/0.9883, allocations: 56.22 kB / 1.141 GB, free: 22.31 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.557e-05/0.9884, allocations: 25.41 kB / 1.141 GB, free: 22.29 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/0.9884, allocations: 4 kB / 1.141 GB, free: 22.29 MB / 0.7292 GB Notification: Performance of Templates: time 0.006016/0.9944, allocations: 2.547 MB / 1.144 GB, free: 20.79 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)