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.557/1.557, allocations: 289.9 MB / 297.4 MB, free: 6.414 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.001172/0.001172, allocations: 176.8 kB / 366.7 MB, free: 1.699 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.608/1.608, allocations: 205.2 MB / 0.626 GB, free: 7.172 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.001022/0.001023, allocations: 92.95 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.565e-05/1.567e-05, allocations: 0 / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7154/0.7154, allocations: 116.3 MB / 0.9733 GB, free: 76.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.193/0.9085, allocations: 141.4 MB / 1.111 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.9088, allocations: 96.67 kB / 1.111 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01346/0.9223, allocations: 5.234 MB / 1.117 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.154e-06/0.9223, allocations: 0 / 1.117 GB, free: 3.547 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.675e-05/0.9224, allocations: 4 kB / 1.117 GB, free: 3.543 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.0006671/0.9231, allocations: 0.4932 MB / 1.117 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.9231, allocations: 11.59 kB / 1.117 GB, free: 3 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.494e-05/0.9232, allocations: 39.53 kB / 1.117 GB, free: 2.961 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006884/0.9239, allocations: 411.8 kB / 1.117 GB, free: 2.52 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.9239, allocations: 4 kB / 1.117 GB, free: 2.516 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.924, allocations: 4 kB / 1.117 GB, free: 2.512 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.775e-05/0.9241, allocations: 35.98 kB / 1.118 GB, free: 2.477 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.9242, allocations: 63.09 kB / 1.118 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.9242, allocations: 0 / 1.118 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.9242, allocations: 0 / 1.118 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.9242, allocations: 0 / 1.118 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007491/0.925, allocations: 489.4 kB / 1.118 GB, free: 1.898 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.839e-05/0.9251, allocations: 39.38 kB / 1.118 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.18e-05/0.9251, allocations: 22.34 kB / 1.118 GB, free: 1.828 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.9252, allocations: 0 / 1.118 GB, free: 1.828 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.9252, allocations: 31.47 kB / 1.118 GB, free: 1.789 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.9252, allocations: 4 kB / 1.118 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.000234/0.9255, allocations: 82.86 kB / 1.118 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.9255, allocations: 55.34 kB / 1.118 GB, free: 1.633 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006227/0.9261, allocations: 482.3 kB / 1.119 GB, free: 1.152 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.9262, allocations: 29.7 kB / 1.119 GB, free: 1.117 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.9263, allocations: 179.9 kB / 1.119 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.9263, allocations: 7.812 kB / 1.119 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.9263, allocations: 0 / 1.119 GB, free: 0.9297 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.9265, allocations: 343 kB / 1.119 GB, free: 0.5859 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.403e-05/0.9265, allocations: 11.98 kB / 1.119 GB, free: 0.5742 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.759e-05/0.9266, allocations: 8 kB / 1.119 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.615e-05/0.9266, allocations: 4 kB / 1.119 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9266, allocations: 0 / 1.119 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001387/0.9267, allocations: 85.31 kB / 1.119 GB, free: 484 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.9268, allocations: 4 kB / 1.119 GB, free: 480 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.9268, allocations: 0 / 1.119 GB, free: 480 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.9268, allocations: 192 / 1.119 GB, free: 480 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.341e-05/0.9269, allocations: 11.98 kB / 1.119 GB, free: 468 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.9269, allocations: 0 / 1.119 GB, free: 468 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.497e-05/0.927, allocations: 7.953 kB / 1.119 GB, free: 460 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.927, allocations: 3.938 kB / 1.119 GB, free: 456 kB / 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 7.313e-05/0.9271, allocations: 109 kB / 1.119 GB, free: 340 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.9272, allocations: 35.59 kB / 1.12 GB, free: 304 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001723/0.9273, allocations: 88.28 kB / 1.12 GB, free: 208 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.9273, allocations: 4 kB / 1.12 GB, free: 204 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.9274, allocations: 0 / 1.12 GB, free: 204 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.237e-06/0.9274, allocations: 3.984 kB / 1.12 GB, free: 200 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.9277, allocations: 278 kB / 1.12 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.9277, allocations: 1.5 kB / 1.12 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.227e-05/0.9277, allocations: 8 kB / 1.12 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.9277, allocations: 0 / 1.12 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.9278, allocations: 7.984 kB / 1.12 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.9278, allocations: 0 / 1.12 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.9278, allocations: 3.938 kB / 1.12 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.928, allocations: 183.1 kB / 1.12 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.9281, allocations: 132.7 kB / 1.12 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.9282, allocations: 7.984 kB / 1.12 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.941e-05/0.9282, allocations: 0 / 1.12 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.9283, allocations: 8 kB / 1.12 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.9283, allocations: 2.188 kB / 1.12 GB, free: 15.51 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0004622/0.9288, allocations: 388.5 kB / 1.121 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9288, allocations: 0 / 1.121 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002843/0.9291, allocations: 28 kB / 1.121 GB, free: 15.1 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.0007189/0.9298, allocations: 301.9 kB / 1.121 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 9.492e-05/0.9299, allocations: 27.92 kB / 1.121 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.9299, allocations: 0 / 1.121 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.468e-05/0.9299, allocations: 12 kB / 1.121 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.9303, allocations: 43.42 kB / 1.121 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006995/0.931, allocations: 400.8 kB / 1.121 GB, free: 14.42 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.9314, allocations: 0.7906 MB / 1.122 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001217/0.9315, allocations: 56.78 kB / 1.122 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.516e-05/0.9316, allocations: 23.44 kB / 1.122 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of SimCode: time 2.6e-07/0.9316, allocations: 0 / 1.122 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of Templates: time 0.005489/0.9371, allocations: 2.148 MB / 1.124 GB, free: 11.42 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)