Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.728/1.728, allocations: 297.8 MB / 313.7 MB, free: 128 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 187.4 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 223.2 MB / 0.6626 GB, free: 4.344 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008143/0.0008142, allocations: 100.2 kB / 0.7808 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004314, allocations: 13.97 kB / 0.9088 GB, free: 0.6953 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7987/0.7992, allocations: 120.3 MB / 1.026 GB, free: 56.36 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.219/1.018, allocations: 144.8 MB / 1.168 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/1.019, allocations: 101.4 kB / 1.168 GB, free: 13.32 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01547/1.034, allocations: 5.481 MB / 1.173 GB, free: 7.891 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.134e-06/1.034, allocations: 3.938 kB / 1.173 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.054e-05/1.034, allocations: 8 kB / 1.173 GB, free: 7.879 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.001015/1.035, allocations: 0.5801 MB / 1.174 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/1.035, allocations: 8.031 kB / 1.174 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/1.035, allocations: 32.47 kB / 1.174 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000752/1.036, allocations: 442.2 kB / 1.174 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/1.036, allocations: 8.375 kB / 1.174 GB, free: 6.727 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/1.036, allocations: 8.25 kB / 1.174 GB, free: 6.719 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/1.036, allocations: 76.2 kB / 1.174 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/1.036, allocations: 8.188 kB / 1.174 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/1.036, allocations: 3.938 kB / 1.174 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/1.037, allocations: 0 / 1.174 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/1.037, allocations: 47.97 kB / 1.174 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008512/1.038, allocations: 0.5055 MB / 1.175 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/1.038, allocations: 42.56 kB / 1.175 GB, free: 5.977 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.562e-05/1.038, allocations: 24.91 kB / 1.175 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/1.038, allocations: 0 / 1.175 GB, free: 5.949 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/1.038, allocations: 38.5 kB / 1.175 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 3.988e-06/1.038, allocations: 5.125 kB / 1.175 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.000352/1.038, allocations: 101.3 kB / 1.175 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/1.038, allocations: 59.39 kB / 1.175 GB, free: 5.723 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007565/1.039, allocations: 0.5328 MB / 1.176 GB, free: 5.184 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/1.039, allocations: 29.7 kB / 1.176 GB, free: 5.148 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/1.039, allocations: 176 kB / 1.176 GB, free: 4.973 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/1.039, allocations: 11.83 kB / 1.176 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-06/1.039, allocations: 0 / 1.176 GB, free: 4.961 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000172/1.039, allocations: 354.7 kB / 1.176 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.06e-05/1.039, allocations: 8.109 kB / 1.176 GB, free: 4.598 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.174e-05/1.04, allocations: 19.92 kB / 1.176 GB, free: 4.578 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/1.04, allocations: 46.47 kB / 1.176 GB, free: 4.531 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.04, allocations: 0 / 1.176 GB, free: 4.531 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001931/1.04, allocations: 93.3 kB / 1.176 GB, free: 4.434 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.04, allocations: 8 kB / 1.176 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/1.04, allocations: 0 / 1.176 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/1.04, allocations: 0 / 1.176 GB, free: 4.426 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/1.04, allocations: 7.984 kB / 1.176 GB, free: 4.418 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/1.04, allocations: 4 kB / 1.176 GB, free: 4.414 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.757e-05/1.04, allocations: 11.84 kB / 1.176 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/1.04, allocations: 4 kB / 1.176 GB, free: 4.398 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 () * 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.0001849/1.04, allocations: 173.8 kB / 1.177 GB, free: 4.219 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.293e-05/1.04, allocations: 31.62 kB / 1.177 GB, free: 4.188 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002487/1.041, allocations: 112.1 kB / 1.177 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.041, allocations: 7.938 kB / 1.177 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.041, allocations: 0 / 1.177 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/1.041, allocations: 4.781 kB / 1.177 GB, free: 4.055 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003348/1.041, allocations: 305.5 kB / 1.177 GB, free: 3.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.041, allocations: 0 / 1.177 GB, free: 3.707 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.269e-05/1.041, allocations: 8 kB / 1.177 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/1.041, allocations: 0 / 1.177 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/1.041, allocations: 3.984 kB / 1.177 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/1.041, allocations: 0 / 1.177 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.041, allocations: 0 / 1.177 GB, free: 3.695 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/1.041, allocations: 200.6 kB / 1.177 GB, free: 3.484 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/1.042, allocations: 132.7 kB / 1.177 GB, free: 3.336 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.05e-05/1.042, allocations: 0 / 1.177 GB, free: 3.336 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.932e-05/1.042, allocations: 7.984 kB / 1.177 GB, free: 3.328 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/1.042, allocations: 0 / 1.177 GB, free: 3.328 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/1.042, allocations: 3.938 kB / 1.177 GB, free: 3.324 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0005323/1.042, allocations: 415.1 kB / 1.178 GB, free: 2.918 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.042, allocations: 0 / 1.178 GB, free: 2.918 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002885/1.043, allocations: 31.94 kB / 1.178 GB, free: 2.887 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 () * 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.0008999/1.043, allocations: 365.7 kB / 1.178 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001733/1.044, allocations: 39.91 kB / 1.178 GB, free: 2.656 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.044, allocations: 0 / 1.178 GB, free: 2.656 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.368e-05/1.044, allocations: 16 kB / 1.178 GB, free: 2.641 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/1.044, allocations: 41.53 kB / 1.178 GB, free: 2.602 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009847/1.045, allocations: 0.5712 MB / 1.179 GB, free: 2 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/1.046, allocations: 0.7872 MB / 1.18 GB, free: 1.188 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001333/1.046, allocations: 41.94 kB / 1.18 GB, free: 1.148 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/1.046, allocations: 31.42 kB / 1.18 GB, free: 1.117 MB / 0.7448 GB Notification: Performance of SimCode: time 2.2e-07/1.046, allocations: 0 / 1.18 GB, free: 1.117 MB / 0.7448 GB Notification: Performance of Templates: time 0.00662/1.052, allocations: 2.558 MB / 1.182 GB, free: 14.62 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)