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.241/2.241, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001049/0.001049, allocations: 168.9 kB / 492.3 MB, free: 0.6211 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.635/1.635, allocations: 221.3 MB / 0.7872 GB, free: 12.9 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.0008914/0.0008913, allocations: 95.14 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.245e-05/4.246e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3063, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.381, allocations: 152.8 MB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003887/1.382, allocations: 95.52 kB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01433/1.396, allocations: 5.465 MB / 1.367 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.733e-06/1.396, allocations: 0 / 1.367 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.885e-05/1.396, allocations: 7.875 kB / 1.367 GB, free: 34.42 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.0005176/1.397, allocations: 0.4953 MB / 1.367 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/1.397, allocations: 7.688 kB / 1.368 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.797e-05/1.397, allocations: 35.12 kB / 1.368 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006252/1.397, allocations: 418.1 kB / 1.368 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/1.397, allocations: 3.906 kB / 1.368 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/1.397, allocations: 11.44 kB / 1.368 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/1.398, allocations: 71.53 kB / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/1.398, allocations: 0 / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/1.398, allocations: 6.906 kB / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/1.398, allocations: 0 / 1.368 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.128e-05/1.398, allocations: 39.2 kB / 1.368 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005903/1.398, allocations: 0.5012 MB / 1.369 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.003e-05/1.398, allocations: 39.56 kB / 1.369 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.529e-05/1.398, allocations: 12.27 kB / 1.369 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/1.399, allocations: 3.812 kB / 1.369 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/1.399, allocations: 38.33 kB / 1.369 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/1.399, allocations: 0 / 1.369 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001827/1.399, allocations: 88 kB / 1.369 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/1.399, allocations: 51.41 kB / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005012/1.399, allocations: 498.2 kB / 1.369 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/1.399, allocations: 25.7 kB / 1.369 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/1.399, allocations: 176.9 kB / 1.369 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/1.399, allocations: 15.03 kB / 1.369 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/1.399, allocations: 0 / 1.369 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.771e-05/1.4, allocations: 339.9 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/1.4, allocations: 11.56 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.709e-05/1.4, allocations: 14.33 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.452e-05/1.4, allocations: 7.281 kB / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/1.4, allocations: 112 / 1.37 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.747e-05/1.4, allocations: 82.67 kB / 1.37 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/1.4, allocations: 8.469 kB / 1.37 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/1.4, allocations: 6.844 kB / 1.37 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/1.4, allocations: 3.953 kB / 1.37 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.373e-05/1.4, allocations: 7.75 kB / 1.37 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/1.4, allocations: 0 / 1.37 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.598e-05/1.4, allocations: 10.77 kB / 1.37 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/1.4, allocations: 0 / 1.37 GB, free: 32.6 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 4.752e-05/1.4, allocations: 101.7 kB / 1.37 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/1.4, allocations: 30.97 kB / 1.37 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/1.4, allocations: 94.08 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/1.4, allocations: 3.953 kB / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/1.4, allocations: 0 / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/1.4, allocations: 0 / 1.37 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002476/1.4, allocations: 314.7 kB / 1.37 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.4, allocations: 4 kB / 1.37 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.751e-05/1.401, allocations: 14.72 kB / 1.37 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/1.401, allocations: 0 / 1.37 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/1.401, allocations: 0 / 1.37 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.401, allocations: 3.938 kB / 1.37 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.401, allocations: 3.953 kB / 1.37 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000136/1.401, allocations: 183.3 kB / 1.371 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/1.401, allocations: 133.4 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/1.401, allocations: 0 / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/1.401, allocations: 5.812 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/1.401, allocations: 5.812 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/1.401, allocations: 3.953 kB / 1.371 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000368/1.401, allocations: 399.9 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.401, allocations: 0 / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000243/1.402, allocations: 37.86 kB / 1.371 GB, free: 31.86 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.0007682/1.402, allocations: 326.4 kB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.455e-05/1.403, allocations: 21.47 kB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/1.403, allocations: 0 / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.688e-05/1.403, allocations: 14.52 kB / 1.372 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/1.403, allocations: 41.8 kB / 1.372 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005653/1.403, allocations: 410.5 kB / 1.372 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/1.404, allocations: 0.7891 MB / 1.373 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001101/1.404, allocations: 54.72 kB / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/1.404, allocations: 22.75 kB / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.404, allocations: 0 / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of Templates: time 0.005226/1.409, allocations: 2.55 MB / 1.375 GB, free: 30.6 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