Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.362/1.362, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.001119/0.001119, allocations: 187.8 kB / 326.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0009627/0.0009625, allocations: 92.52 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.000348, allocations: 9 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2554, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.4476, allocations: 134.9 MB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.448, allocations: 103.9 kB / 1.032 GB, free: 8.828 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01375/0.4618, allocations: 5.316 MB / 1.037 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.705e-06/0.4618, allocations: 4 kB / 1.037 GB, free: 3.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.667e-05/0.4619, allocations: 4 kB / 1.037 GB, free: 3.496 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.0007817/0.4627, allocations: 0.5806 MB / 1.038 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4627, allocations: 8.031 kB / 1.038 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.493e-05/0.4628, allocations: 35.56 kB / 1.038 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/0.4635, allocations: 425.2 kB / 1.038 GB, free: 2.371 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.4635, allocations: 8 kB / 1.038 GB, free: 2.363 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.4635, allocations: 7.984 kB / 1.038 GB, free: 2.355 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/0.4637, allocations: 73.67 kB / 1.038 GB, free: 2.277 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4637, allocations: 7.938 kB / 1.038 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.4637, allocations: 0 / 1.038 GB, free: 2.27 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.4637, allocations: 4 kB / 1.038 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.4639, allocations: 47.97 kB / 1.038 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007259/0.4646, allocations: 0.4926 MB / 1.039 GB, free: 1.676 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.4648, allocations: 50.56 kB / 1.039 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.4648, allocations: 112 / 1.039 GB, free: 1.617 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.4648, allocations: 34.5 kB / 1.039 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.4648, allocations: 0 / 1.039 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0003009/0.4651, allocations: 121.3 kB / 1.039 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.4652, allocations: 51.41 kB / 1.039 GB, free: 1.387 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006349/0.4658, allocations: 0.5007 MB / 1.039 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.4659, allocations: 29.7 kB / 1.039 GB, free: 0.8438 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.466, allocations: 168 kB / 1.04 GB, free: 0.6758 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.466, allocations: 23.67 kB / 1.04 GB, free: 0.6523 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.4661, allocations: 4 kB / 1.04 GB, free: 0.6484 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4662, allocations: 342.8 kB / 1.04 GB, free: 312 kB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.612e-05/0.4663, allocations: 12 kB / 1.04 GB, free: 300 kB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.086e-05/0.4663, allocations: 19.98 kB / 1.04 GB, free: 280 kB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.093e-05/0.4664, allocations: 15.98 kB / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4664, allocations: 0 / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000173/0.4666, allocations: 89.62 kB / 1.04 GB, free: 168 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.4666, allocations: 11.98 kB / 1.04 GB, free: 156 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.4666, allocations: 0 / 1.04 GB, free: 156 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4666, allocations: 11.98 kB / 1.04 GB, free: 144 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-05/0.4667, allocations: 4 kB / 1.04 GB, free: 140 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.4667, allocations: 0 / 1.04 GB, free: 140 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.597e-05/0.4668, allocations: 7.906 kB / 1.04 GB, free: 132 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.4668, allocations: 3.984 kB / 1.04 GB, free: 128 kB / 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.000177/0.467, allocations: 181.8 kB / 1.04 GB, free: 15.94 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.4671, allocations: 31.62 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002373/0.4673, allocations: 100.2 kB / 1.04 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.4673, allocations: 7.922 kB / 1.04 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4673, allocations: 7.953 kB / 1.04 GB, free: 15.78 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.4673, allocations: 0 / 1.04 GB, free: 15.78 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.4676, allocations: 297.5 kB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4676, allocations: 0 / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.4677, allocations: 11.98 kB / 1.041 GB, free: 15.43 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.4677, allocations: 4 kB / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.4677, allocations: 0 / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4677, allocations: 0 / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4677, allocations: 0 / 1.041 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.468, allocations: 191.1 kB / 1.041 GB, free: 15.22 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.4681, allocations: 140.6 kB / 1.041 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.4682, allocations: 4 kB / 1.041 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.039e-05/0.4683, allocations: 4 kB / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.4683, allocations: 0 / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.4683, allocations: 0 / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004464/0.4688, allocations: 423 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4688, allocations: 0 / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002725/0.4691, allocations: 35.94 kB / 1.042 GB, free: 14.61 MB / 0.698 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.0008469/0.4699, allocations: 362.7 kB / 1.042 GB, free: 14.38 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000149/0.4701, allocations: 35.92 kB / 1.042 GB, free: 14.35 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4701, allocations: 4 kB / 1.042 GB, free: 14.34 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 5.217e-05/0.4701, allocations: 20.08 kB / 1.042 GB, free: 14.32 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.4705, allocations: 39.66 kB / 1.042 GB, free: 14.29 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008368/0.4713, allocations: 0.5819 MB / 1.043 GB, free: 13.67 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.4717, allocations: 0.7911 MB / 1.043 GB, free: 12.86 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001134/0.4718, allocations: 49.92 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.893e-05/0.4719, allocations: 31.42 kB / 1.043 GB, free: 12.78 MB / 0.698 GB Notification: Performance of SimCode: time 3.91e-07/0.4719, allocations: 0 / 1.043 GB, free: 12.78 MB / 0.698 GB Notification: Performance of Templates: time 0.005704/0.4776, allocations: 2.532 MB / 1.046 GB, free: 10.27 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches