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 10.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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.338/2.338, allocations: 390.3 MB / 402.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001125, allocations: 184.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.772/1.772, allocations: 221.3 MB / 0.7915 GB, free: 5.379 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 99.44 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.102e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3155, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.198/1.514, allocations: 153.6 MB / 1.369 GB, free: 500 kB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/1.514, allocations: 94.25 kB / 1.369 GB, free: 448 kB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0148/1.529, allocations: 5.479 MB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.465e-06/1.529, allocations: 4 kB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.024e-05/1.529, allocations: 8 kB / 1.374 GB, free: 11.79 MB / 0.8386 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.0007741/1.53, allocations: 492.7 kB / 1.375 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/1.53, allocations: 8.031 kB / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/1.53, allocations: 31.62 kB / 1.375 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007615/1.531, allocations: 427.2 kB / 1.375 GB, free: 10.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/1.531, allocations: 7.875 kB / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/1.531, allocations: 4 kB / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/1.531, allocations: 72.42 kB / 1.375 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/1.531, allocations: 0 / 1.375 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.531, allocations: 3.984 kB / 1.375 GB, free: 10.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/1.531, allocations: 4 kB / 1.375 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.668e-05/1.531, allocations: 35.94 kB / 1.375 GB, free: 10.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008298/1.532, allocations: 0.5015 MB / 1.376 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/1.532, allocations: 41.31 kB / 1.376 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.368e-05/1.532, allocations: 16.11 kB / 1.376 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/1.532, allocations: 3.953 kB / 1.376 GB, free: 10.22 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/1.532, allocations: 34.19 kB / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/1.532, allocations: 0 / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002432/1.532, allocations: 83.84 kB / 1.376 GB, free: 10.1 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/1.533, allocations: 55.52 kB / 1.376 GB, free: 10.04 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006813/1.533, allocations: 0.4933 MB / 1.376 GB, free: 9.652 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/1.533, allocations: 25.7 kB / 1.376 GB, free: 9.621 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/1.533, allocations: 176.5 kB / 1.377 GB, free: 9.5 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/1.533, allocations: 11.69 kB / 1.377 GB, free: 9.492 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/1.533, allocations: 0 / 1.377 GB, free: 9.492 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.534, allocations: 344.7 kB / 1.377 GB, free: 9.156 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.353e-05/1.534, allocations: 7.125 kB / 1.377 GB, free: 9.152 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.859e-05/1.534, allocations: 11.25 kB / 1.377 GB, free: 9.145 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/1.534, allocations: 11.05 kB / 1.377 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/1.534, allocations: 0 / 1.377 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001367/1.534, allocations: 76.09 kB / 1.377 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/1.534, allocations: 11.89 kB / 1.377 GB, free: 9.051 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/1.534, allocations: 4 kB / 1.377 GB, free: 9.047 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/1.534, allocations: 0 / 1.377 GB, free: 9.047 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/1.534, allocations: 4 kB / 1.377 GB, free: 9.043 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/1.534, allocations: 3.984 kB / 1.377 GB, free: 9.039 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.672e-05/1.534, allocations: 15.89 kB / 1.377 GB, free: 9.023 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/1.534, allocations: 4 kB / 1.377 GB, free: 9.02 MB / 0.8386 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 6.839e-05/1.534, allocations: 109.5 kB / 1.377 GB, free: 8.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/1.534, allocations: 31.62 kB / 1.377 GB, free: 8.879 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/1.534, allocations: 93.66 kB / 1.377 GB, free: 8.793 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/1.534, allocations: 0 / 1.377 GB, free: 8.793 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.534, allocations: 0 / 1.377 GB, free: 8.793 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/1.534, allocations: 0 / 1.377 GB, free: 8.793 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00033/1.535, allocations: 309.1 kB / 1.378 GB, free: 8.492 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/1.535, allocations: 7.938 kB / 1.378 GB, free: 8.484 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.357e-05/1.535, allocations: 8 kB / 1.378 GB, free: 8.477 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/1.535, allocations: 240 / 1.378 GB, free: 8.477 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/1.535, allocations: 0 / 1.378 GB, free: 8.477 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/1.535, allocations: 7.953 kB / 1.378 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.535, allocations: 0 / 1.378 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/1.535, allocations: 181.1 kB / 1.378 GB, free: 8.285 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/1.535, allocations: 130.3 kB / 1.378 GB, free: 8.152 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/1.535, allocations: 4 kB / 1.378 GB, free: 8.148 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.859e-05/1.535, allocations: 7.984 kB / 1.378 GB, free: 8.141 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/1.535, allocations: 3.953 kB / 1.378 GB, free: 8.137 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/1.535, allocations: 7.938 kB / 1.378 GB, free: 8.129 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.00052/1.536, allocations: 400.5 kB / 1.378 GB, free: 7.836 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.536, allocations: 0 / 1.378 GB, free: 7.836 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002747/1.536, allocations: 32 kB / 1.378 GB, free: 7.805 MB / 0.8386 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.0008569/1.537, allocations: 329.3 kB / 1.379 GB, free: 7.582 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001067/1.537, allocations: 15.81 kB / 1.379 GB, free: 7.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.537, allocations: 0 / 1.379 GB, free: 7.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.432e-05/1.537, allocations: 15.48 kB / 1.379 GB, free: 7.559 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/1.538, allocations: 41.42 kB / 1.379 GB, free: 7.535 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008039/1.538, allocations: 407.7 kB / 1.379 GB, free: 7.176 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004658/1.539, allocations: 0.7877 MB / 1.38 GB, free: 6.379 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001491/1.539, allocations: 53.42 kB / 1.38 GB, free: 6.332 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.624e-05/1.539, allocations: 23.44 kB / 1.38 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of SimCode: time 4e-07/1.539, allocations: 3.938 kB / 1.38 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of Templates: time 0.006873/1.546, allocations: 2.558 MB / 1.382 GB, free: 3.789 MB / 0.8386 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 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches