Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.215/2.215, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001343/0.001343, allocations: 191.5 kB / 498.1 MB, free: 5.695 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.0009498/0.0009498, allocations: 91.45 kB / 0.9346 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003938, allocations: 8.781 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3434, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2066/0.55, allocations: 152.8 MB / 1.372 GB, free: 9.207 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5504, allocations: 103.9 kB / 1.372 GB, free: 9.105 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01379/0.5642, allocations: 5.485 MB / 1.378 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.765e-06/0.5643, allocations: 0 / 1.378 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.69e-05/0.5643, allocations: 4 kB / 1.378 GB, free: 3.605 MB / 0.8698 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.0007879/0.5651, allocations: 0.5835 MB / 1.378 GB, free: 2.973 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.5651, allocations: 8.031 kB / 1.378 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.5652, allocations: 31.62 kB / 1.378 GB, free: 2.934 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.5659, allocations: 429.2 kB / 1.379 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.5659, allocations: 8 kB / 1.379 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.5659, allocations: 4 kB / 1.379 GB, free: 2.465 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.5661, allocations: 81.59 kB / 1.379 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.5661, allocations: 0 / 1.379 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.5661, allocations: 0 / 1.379 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.5662, allocations: 7.938 kB / 1.379 GB, free: 2.371 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.5663, allocations: 55.91 kB / 1.379 GB, free: 2.316 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006974/0.567, allocations: 0.4887 MB / 1.379 GB, free: 1.777 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.5671, allocations: 50.55 kB / 1.379 GB, free: 1.719 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.5672, allocations: 4 kB / 1.379 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.5672, allocations: 42.58 kB / 1.379 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.133e-06/0.5672, allocations: 0 / 1.379 GB, free: 1.664 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0002857/0.5675, allocations: 101.3 kB / 1.379 GB, free: 1.559 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.5675, allocations: 55.41 kB / 1.379 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006032/0.5682, allocations: 0.5085 MB / 1.38 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.5682, allocations: 25.7 kB / 1.38 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.5683, allocations: 175.9 kB / 1.38 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.5684, allocations: 7.906 kB / 1.38 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.5684, allocations: 0 / 1.38 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5685, allocations: 342.8 kB / 1.38 GB, free: 428 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.153e-05/0.5685, allocations: 15.98 kB / 1.38 GB, free: 412 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.736e-05/0.5686, allocations: 15.98 kB / 1.381 GB, free: 396 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.406e-05/0.5687, allocations: 16 kB / 1.381 GB, free: 380 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5687, allocations: 0 / 1.381 GB, free: 380 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001634/0.5688, allocations: 93.52 kB / 1.381 GB, free: 280 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.5689, allocations: 9.562 kB / 1.381 GB, free: 272 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.5689, allocations: 7.938 kB / 1.381 GB, free: 264 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.5689, allocations: 0 / 1.381 GB, free: 264 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.745e-05/0.569, allocations: 15.98 kB / 1.381 GB, free: 248 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.569, allocations: 0 / 1.381 GB, free: 248 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.39e-05/0.5691, allocations: 4.047 kB / 1.381 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.5691, allocations: 3.984 kB / 1.381 GB, free: 240 kB / 0.8698 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.0001687/0.5693, allocations: 181.6 kB / 1.381 GB, free: 48 kB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.853e-05/0.5693, allocations: 31.62 kB / 1.381 GB, free: 16 kB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002778/0.5696, allocations: 108.3 kB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.5696, allocations: 7.891 kB / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5696, allocations: 0 / 1.381 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.5696, allocations: 3.938 kB / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003411/0.57, allocations: 305.4 kB / 1.381 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.57, allocations: 0 / 1.381 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/0.5701, allocations: 8 kB / 1.381 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.5701, allocations: 0 / 1.381 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.5701, allocations: 3.984 kB / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.5701, allocations: 0 / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5701, allocations: 7.953 kB / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002776/0.5704, allocations: 187.2 kB / 1.381 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.5706, allocations: 128.7 kB / 1.382 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.5706, allocations: 0 / 1.382 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-05/0.5707, allocations: 11.98 kB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.5707, allocations: 3.953 kB / 1.382 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.5708, allocations: 8 kB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004832/0.5712, allocations: 407.1 kB / 1.382 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.725e-06/0.5713, allocations: 4 kB / 1.382 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002822/0.5716, allocations: 39.78 kB / 1.382 GB, free: 14.71 MB / 0.8855 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.001004/0.5726, allocations: 365.2 kB / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.5727, allocations: 35.97 kB / 1.382 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5727, allocations: 0 / 1.382 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.079e-05/0.5728, allocations: 16 kB / 1.382 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.5731, allocations: 45.7 kB / 1.382 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008992/0.574, allocations: 0.5742 MB / 1.383 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.5744, allocations: 0.7911 MB / 1.384 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001204/0.5746, allocations: 49.92 kB / 1.384 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.368e-05/0.5747, allocations: 23.44 kB / 1.384 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of SimCode: time 3.01e-07/0.5747, allocations: 4 kB / 1.384 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of Templates: time 0.006017/0.5807, allocations: 2.531 MB / 1.386 GB, free: 10.37 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches