Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.732/3.732, allocations: 251.1 MB / 266.7 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002719/0.002718, allocations: 181.4 kB / 326.2 MB, free: 2.871 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.17/4.17, allocations: 205.4 MB / 0.5772 GB, free: 21.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00151/0.001509, allocations: 98.91 kB / 0.6817 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008028/0.0008028, allocations: 16.16 kB / 0.7957 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3512, allocations: 106.3 MB / 0.8995 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.395/0.7463, allocations: 134.7 MB / 1.031 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006004/0.7469, allocations: 103.9 kB / 1.031 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02797/0.7749, allocations: 5.339 MB / 1.036 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.396e-06/0.775, allocations: 0 / 1.036 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.632e-05/0.7751, allocations: 8 kB / 1.036 GB, free: 5.664 MB / 0.6823 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.001332/0.7764, allocations: 0.584 MB / 1.037 GB, free: 5.027 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.7765, allocations: 8.031 kB / 1.037 GB, free: 5.02 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.7767, allocations: 36.56 kB / 1.037 GB, free: 4.984 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/0.7779, allocations: 426.5 kB / 1.037 GB, free: 4.531 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.7779, allocations: 8.312 kB / 1.037 GB, free: 4.523 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.778, allocations: 4.375 kB / 1.037 GB, free: 4.52 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.7783, allocations: 86.09 kB / 1.037 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.7784, allocations: 192 / 1.037 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.7784, allocations: 3.938 kB / 1.037 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.7784, allocations: 4 kB / 1.037 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002644/0.7787, allocations: 51.97 kB / 1.038 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.7801, allocations: 0.4926 MB / 1.038 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.7804, allocations: 50.62 kB / 1.038 GB, free: 3.77 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.7805, allocations: 20.84 kB / 1.038 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.7806, allocations: 0 / 1.038 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.7806, allocations: 38.56 kB / 1.038 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 5.681e-06/0.7806, allocations: 112 / 1.038 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0005418/0.7812, allocations: 109.2 kB / 1.038 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.7813, allocations: 55.41 kB / 1.038 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00566/0.7869, allocations: 0.5406 MB / 1.039 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.7871, allocations: 25.7 kB / 1.039 GB, free: 2.938 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.7873, allocations: 175.9 kB / 1.039 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.453e-05/0.7874, allocations: 7.906 kB / 1.039 GB, free: 2.754 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.076e-06/0.7874, allocations: 4 kB / 1.039 GB, free: 2.75 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002577/0.7877, allocations: 347.9 kB / 1.039 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.7879, allocations: 15.98 kB / 1.039 GB, free: 2.387 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.044e-05/0.788, allocations: 15.98 kB / 1.039 GB, free: 2.371 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.7881, allocations: 12 kB / 1.039 GB, free: 2.359 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.7881, allocations: 3.984 kB / 1.039 GB, free: 2.355 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004303/0.7886, allocations: 97.58 kB / 1.039 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.7886, allocations: 4 kB / 1.039 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.7886, allocations: 3.984 kB / 1.039 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.7887, allocations: 0 / 1.039 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.7888, allocations: 11.98 kB / 1.039 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.7888, allocations: 0 / 1.039 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.789, allocations: 15.78 kB / 1.039 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.789, allocations: 0 / 1.039 GB, free: 2.219 MB / 0.6823 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.000392/0.7894, allocations: 189.8 kB / 1.04 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.7896, allocations: 27.62 kB / 1.04 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004259/0.79, allocations: 104.1 kB / 1.04 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.79, allocations: 0 / 1.04 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.79, allocations: 4 kB / 1.04 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.7901, allocations: 3.938 kB / 1.04 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.7907, allocations: 305.5 kB / 1.04 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.7907, allocations: 0 / 1.04 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.7908, allocations: 7.984 kB / 1.04 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.7908, allocations: 3.938 kB / 1.04 GB, free: 1.508 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.7909, allocations: 8 kB / 1.04 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.7909, allocations: 0 / 1.04 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.7909, allocations: 0 / 1.04 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004634/0.7914, allocations: 195 kB / 1.04 GB, free: 1.293 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002455/0.7916, allocations: 128.7 kB / 1.04 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.632e-05/0.7917, allocations: 7.984 kB / 1.04 GB, free: 1.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.7919, allocations: 7.938 kB / 1.04 GB, free: 1.133 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.932e-05/0.792, allocations: 4 kB / 1.04 GB, free: 1.129 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.792, allocations: 7.938 kB / 1.04 GB, free: 1.121 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0009606/0.793, allocations: 407.1 kB / 1.041 GB, free: 0.7305 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.41e-07/0.793, allocations: 0 / 1.041 GB, free: 0.7305 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005744/0.7936, allocations: 39.92 kB / 1.041 GB, free: 0.6914 MB / 0.6823 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.001434/0.7951, allocations: 344.8 kB / 1.041 GB, free: 492 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003815/0.7955, allocations: 39.97 kB / 1.041 GB, free: 452 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.7955, allocations: 0 / 1.041 GB, free: 452 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.7956, allocations: 24.02 kB / 1.041 GB, free: 428 kB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008498/0.7965, allocations: 41.91 kB / 1.041 GB, free: 388 kB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.7982, allocations: 0.5742 MB / 1.042 GB, free: 15.77 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006802/0.799, allocations: 0.7873 MB / 1.043 GB, free: 14.96 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003424/0.7993, allocations: 53.91 kB / 1.043 GB, free: 14.91 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.7995, allocations: 19.44 kB / 1.043 GB, free: 14.89 MB / 0.698 GB Notification: Performance of SimCode: time 1.563e-06/0.7995, allocations: 0 / 1.043 GB, free: 14.89 MB / 0.698 GB Notification: Performance of Templates: time 0.01359/0.8131, allocations: 2.543 MB / 1.045 GB, free: 12.38 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)