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.139/2.139, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001268/0.001268, allocations: 176.6 kB / 487.4 MB, free: 5.031 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.509/1.509, allocations: 221.5 MB / 0.7824 GB, free: 0.9102 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 95.84 kB / 0.9219 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.409e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3115, allocations: 142.4 MB / 1.206 GB, free: 43.92 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.023/1.334, allocations: 152.1 MB / 1.354 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/1.335, allocations: 95.66 kB / 1.355 GB, free: 18.25 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01363/1.348, allocations: 5.414 MB / 1.36 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.563e-06/1.348, allocations: 0 / 1.36 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.717e-05/1.348, allocations: 7.812 kB / 1.36 GB, free: 33.64 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.000504/1.349, allocations: 499.9 kB / 1.36 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/1.349, allocations: 15.31 kB / 1.36 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/1.349, allocations: 31.09 kB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005671/1.349, allocations: 424.3 kB / 1.361 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/1.349, allocations: 3.875 kB / 1.361 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/1.35, allocations: 4 kB / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.46e-05/1.35, allocations: 36.64 kB / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/1.35, allocations: 68.95 kB / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/1.35, allocations: 0 / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/1.35, allocations: 1.828 kB / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/1.35, allocations: 3.875 kB / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/1.35, allocations: 477.4 kB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.335e-05/1.35, allocations: 44.03 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.725e-05/1.35, allocations: 12.45 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/1.351, allocations: 7.438 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.639e-05/1.351, allocations: 31.88 kB / 1.361 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/1.351, allocations: 0 / 1.361 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001843/1.351, allocations: 83 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/1.351, allocations: 53.28 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004948/1.351, allocations: 487 kB / 1.362 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/1.351, allocations: 25.7 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/1.351, allocations: 176.4 kB / 1.362 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/1.351, allocations: 7.812 kB / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.058e-06/1.351, allocations: 0 / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001345/1.352, allocations: 346.1 kB / 1.363 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.822e-05/1.352, allocations: 14.19 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.456e-05/1.352, allocations: 3.938 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.47e-05/1.352, allocations: 15.12 kB / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/1.352, allocations: 0 / 1.363 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.452e-05/1.352, allocations: 77.95 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/1.352, allocations: 7.688 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/1.352, allocations: 0 / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/1.352, allocations: 0 / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.539e-05/1.352, allocations: 7.797 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/1.352, allocations: 11.08 kB / 1.363 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/1.352, allocations: 7.844 kB / 1.363 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/1.352, allocations: 0 / 1.363 GB, free: 31.85 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.145e-05/1.352, allocations: 101 kB / 1.363 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.739e-05/1.352, allocations: 31.16 kB / 1.363 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/1.352, allocations: 92.59 kB / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/1.352, allocations: 3.875 kB / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.352, allocations: 0 / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/1.352, allocations: 3.953 kB / 1.363 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/1.353, allocations: 290.2 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/1.353, allocations: 0 / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.471e-05/1.353, allocations: 3.844 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/1.353, allocations: 3.969 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/1.353, allocations: 3.141 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.353, allocations: 0 / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/1.353, allocations: 3.984 kB / 1.363 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/1.353, allocations: 172.2 kB / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/1.353, allocations: 135.7 kB / 1.364 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/1.353, allocations: 10.73 kB / 1.364 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.406e-05/1.353, allocations: 7.781 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/1.353, allocations: 0 / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/1.353, allocations: 3.047 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003419/1.353, allocations: 387 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.353, allocations: 0 / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002555/1.354, allocations: 31.06 kB / 1.364 GB, free: 31.15 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.0006679/1.354, allocations: 303.5 kB / 1.364 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.494e-05/1.354, allocations: 22.09 kB / 1.364 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.354, allocations: 0 / 1.364 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.229e-05/1.355, allocations: 14.91 kB / 1.364 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/1.355, allocations: 48.72 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005642/1.355, allocations: 398.2 kB / 1.365 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/1.356, allocations: 0.7952 MB / 1.365 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001036/1.356, allocations: 45.62 kB / 1.366 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.189e-05/1.356, allocations: 29.36 kB / 1.366 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.356, allocations: 0 / 1.366 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of Templates: time 0.004796/1.361, allocations: 2.156 MB / 1.368 GB, free: 29.9 MB / 0.8386 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