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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.709/1.709, allocations: 289.7 MB / 302.2 MB, free: 2.129 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.001136/0.001136, allocations: 181.2 kB / 371.6 MB, free: 3.391 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.745/1.745, allocations: 205.2 MB / 0.6309 GB, free: 11.78 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.0009133/0.0009135, allocations: 90.12 kB / 0.745 GB, free: 54.42 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.603e-05/3.604e-05, allocations: 4 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3033, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8713/1.175, allocations: 142 MB / 1.119 GB, free: 42.43 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/1.175, allocations: 96.72 kB / 1.119 GB, free: 42.39 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01174/1.187, allocations: 5.282 MB / 1.124 GB, free: 39.46 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.733e-06/1.187, allocations: 0 / 1.124 GB, free: 39.46 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.317e-05/1.187, allocations: 4 kB / 1.124 GB, free: 39.45 MB / 0.7448 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.0004428/1.187, allocations: 0.4956 MB / 1.124 GB, free: 38.96 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/1.187, allocations: 12.03 kB / 1.124 GB, free: 38.95 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/1.187, allocations: 29.34 kB / 1.124 GB, free: 38.93 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005519/1.188, allocations: 418.4 kB / 1.125 GB, free: 38.59 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/1.188, allocations: 7.266 kB / 1.125 GB, free: 38.58 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/1.188, allocations: 8 kB / 1.125 GB, free: 38.57 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/1.188, allocations: 72.98 kB / 1.125 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/1.188, allocations: 0 / 1.125 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/1.188, allocations: 4.75 kB / 1.125 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/1.188, allocations: 0 / 1.125 GB, free: 38.52 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.732e-05/1.188, allocations: 39.06 kB / 1.125 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/1.189, allocations: 0.5056 MB / 1.125 GB, free: 38.1 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.598e-05/1.189, allocations: 38.14 kB / 1.125 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.839e-05/1.189, allocations: 20.14 kB / 1.125 GB, free: 38.05 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/1.189, allocations: 0 / 1.125 GB, free: 38.05 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.66e-05/1.189, allocations: 30.56 kB / 1.125 GB, free: 38.01 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/1.189, allocations: 4 kB / 1.125 GB, free: 38 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001817/1.189, allocations: 86.36 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/1.189, allocations: 55.41 kB / 1.126 GB, free: 37.86 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000505/1.19, allocations: 0.4892 MB / 1.126 GB, free: 37.51 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/1.19, allocations: 25.7 kB / 1.126 GB, free: 37.48 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/1.19, allocations: 178.7 kB / 1.126 GB, free: 37.38 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/1.19, allocations: 11.81 kB / 1.126 GB, free: 37.36 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/1.19, allocations: 0 / 1.126 GB, free: 37.36 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.039e-05/1.19, allocations: 340.5 kB / 1.127 GB, free: 37.04 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.037e-05/1.19, allocations: 15.94 kB / 1.127 GB, free: 37.03 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.57e-05/1.19, allocations: 8.594 kB / 1.127 GB, free: 37.03 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.542e-05/1.19, allocations: 11.45 kB / 1.127 GB, free: 37.02 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/1.19, allocations: 0 / 1.127 GB, free: 37.02 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.894e-05/1.19, allocations: 76.23 kB / 1.127 GB, free: 36.95 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/1.19, allocations: 4 kB / 1.127 GB, free: 36.95 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/1.19, allocations: 0 / 1.127 GB, free: 36.95 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/1.19, allocations: 5.844 kB / 1.127 GB, free: 36.94 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.296e-05/1.19, allocations: 12.41 kB / 1.127 GB, free: 36.93 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/1.19, allocations: 4 kB / 1.127 GB, free: 36.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.499e-05/1.19, allocations: 11.84 kB / 1.127 GB, free: 36.92 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/1.19, allocations: 0.8594 kB / 1.127 GB, free: 36.92 MB / 0.7448 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.088e-05/1.19, allocations: 105 kB / 1.127 GB, free: 36.81 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/1.191, allocations: 27.62 kB / 1.127 GB, free: 36.79 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/1.191, allocations: 94 kB / 1.127 GB, free: 36.71 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.191, allocations: 3.469 kB / 1.127 GB, free: 36.71 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.191, allocations: 4.453 kB / 1.127 GB, free: 36.71 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/1.191, allocations: 4.906 kB / 1.127 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/1.191, allocations: 305.3 kB / 1.127 GB, free: 36.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-06/1.191, allocations: 1.062 kB / 1.127 GB, free: 36.46 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/1.191, allocations: 8 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/1.191, allocations: 0 / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/1.191, allocations: 4.391 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/1.191, allocations: 0.8594 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.191, allocations: 4 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001373/1.191, allocations: 184.2 kB / 1.127 GB, free: 36.27 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/1.191, allocations: 134.9 kB / 1.128 GB, free: 36.13 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/1.191, allocations: 0 / 1.128 GB, free: 36.13 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.2e-05/1.191, allocations: 4 kB / 1.128 GB, free: 36.13 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/1.191, allocations: 8.547 kB / 1.128 GB, free: 36.12 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/1.191, allocations: 4 kB / 1.128 GB, free: 36.12 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0003684/1.192, allocations: 400.1 kB / 1.128 GB, free: 35.86 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/1.192, allocations: 0 / 1.128 GB, free: 35.86 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002341/1.192, allocations: 32.61 kB / 1.128 GB, free: 35.83 MB / 0.7448 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.0007647/1.193, allocations: 332.5 kB / 1.128 GB, free: 35.64 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.876e-05/1.193, allocations: 19.22 kB / 1.128 GB, free: 35.63 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/1.193, allocations: 0 / 1.128 GB, free: 35.63 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.679e-05/1.193, allocations: 19.81 kB / 1.128 GB, free: 35.62 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/1.193, allocations: 36.08 kB / 1.128 GB, free: 35.6 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005721/1.194, allocations: 411.3 kB / 1.129 GB, free: 35.29 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/1.194, allocations: 0.7873 MB / 1.13 GB, free: 34.54 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001036/1.194, allocations: 56.84 kB / 1.13 GB, free: 34.5 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.185e-05/1.194, allocations: 23.44 kB / 1.13 GB, free: 34.48 MB / 0.7448 GB Notification: Performance of SimCode: time 2.91e-07/1.194, allocations: 0 / 1.13 GB, free: 34.48 MB / 0.7448 GB Notification: Performance of Templates: time 0.005166/1.2, allocations: 2.551 MB / 1.132 GB, free: 32.96 MB / 0.7448 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)