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.43/1.43, allocations: 249.5 MB / 257 MB, free: 6.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 179.8 kB / 316.3 MB, free: 3.316 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.3 MB / 0.5671 GB, free: 15.92 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.0009004/0.0009004, allocations: 90.47 kB / 0.6714 GB, free: 5.035 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.84e-05/1.842e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2377, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7811/1.019, allocations: 135 MB / 1.017 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/1.019, allocations: 98.3 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0133/1.032, allocations: 5.245 MB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.573e-06/1.032, allocations: 0 / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.449e-05/1.033, allocations: 4 kB / 1.022 GB, free: 14.38 MB / 0.6511 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.0005287/1.033, allocations: 0.4886 MB / 1.023 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/1.033, allocations: 8.875 kB / 1.023 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/1.033, allocations: 35.62 kB / 1.023 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006144/1.034, allocations: 424.1 kB / 1.023 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/1.034, allocations: 4 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/1.034, allocations: 4 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001315/1.034, allocations: 34.38 kB / 1.023 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/1.034, allocations: 63.92 kB / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/1.034, allocations: 0 / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/1.034, allocations: 0 / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/1.034, allocations: 3.938 kB / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/1.035, allocations: 483.5 kB / 1.024 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 8.732e-05/1.035, allocations: 39.33 kB / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.809e-05/1.035, allocations: 11.42 kB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/1.035, allocations: 4.078 kB / 1.024 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/1.035, allocations: 34.56 kB / 1.024 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/1.035, allocations: 0 / 1.024 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002006/1.035, allocations: 87.2 kB / 1.024 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/1.035, allocations: 51.41 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/1.036, allocations: 484.2 kB / 1.024 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/1.036, allocations: 25.7 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/1.036, allocations: 178.2 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/1.036, allocations: 15.34 kB / 1.025 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/1.036, allocations: 0 / 1.025 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001452/1.036, allocations: 341.8 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.104e-05/1.036, allocations: 7.562 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.631e-05/1.036, allocations: 11.67 kB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.42e-05/1.036, allocations: 7.688 kB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/1.036, allocations: 0 / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001184/1.036, allocations: 77.06 kB / 1.025 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/1.036, allocations: 5.719 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/1.036, allocations: 0 / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/1.036, allocations: 4 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.135e-05/1.036, allocations: 15.92 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/1.037, allocations: 3.953 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.628e-05/1.037, allocations: 4 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/1.037, allocations: 0 / 1.025 GB, free: 11.68 MB / 0.6511 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.965e-05/1.037, allocations: 104.5 kB / 1.025 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/1.037, allocations: 31.81 kB / 1.025 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000177/1.037, allocations: 95.28 kB / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/1.037, allocations: 0 / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.037, allocations: 4 kB / 1.025 GB, free: 11.44 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/1.037, allocations: 3.953 kB / 1.025 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/1.037, allocations: 279.7 kB / 1.026 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/1.037, allocations: 4 kB / 1.026 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.971e-05/1.037, allocations: 8 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/1.037, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/1.037, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.037, allocations: 3.938 kB / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/1.037, allocations: 0 / 1.026 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/1.038, allocations: 189.6 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/1.038, allocations: 131.3 kB / 1.026 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/1.038, allocations: 7.938 kB / 1.026 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/1.038, allocations: 3.984 kB / 1.026 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/1.038, allocations: 4 kB / 1.026 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/1.038, allocations: 0 / 1.026 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004307/1.038, allocations: 389.3 kB / 1.026 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.443e-06/1.038, allocations: 4 kB / 1.026 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002552/1.039, allocations: 31.94 kB / 1.026 GB, free: 10.5 MB / 0.6511 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.0007298/1.039, allocations: 299.5 kB / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.603e-05/1.039, allocations: 22.06 kB / 1.027 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.039, allocations: 0 / 1.027 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.756e-05/1.039, allocations: 19.3 kB / 1.027 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/1.04, allocations: 44.42 kB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006695/1.04, allocations: 397.2 kB / 1.027 GB, free: 9.863 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/1.041, allocations: 0.7961 MB / 1.028 GB, free: 9.059 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001136/1.041, allocations: 50.05 kB / 1.028 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/1.041, allocations: 19.44 kB / 1.028 GB, free: 8.988 MB / 0.6511 GB Notification: Performance of SimCode: time 2.5e-07/1.041, allocations: 4 kB / 1.028 GB, free: 8.984 MB / 0.6511 GB Notification: Performance of Templates: time 0.005063/1.046, allocations: 2.164 MB / 1.03 GB, free: 6.836 MB / 0.6511 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