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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 193.3 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.435/2.435, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.89 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8281/0.8294, allocations: 140.3 MB / 0.9489 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003063/0.8326, allocations: 1.831 MB / 0.9507 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.8338, allocations: 0.9052 MB / 0.9516 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.061e-05/0.8339, allocations: 5.062 kB / 0.9516 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004835/0.8344, allocations: 165.8 kB / 0.9518 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003308/0.8347, allocations: 146 kB / 0.9519 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003869/0.8351, allocations: 196 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.8354, allocations: 215.9 kB / 0.9523 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.8355, allocations: 58.16 kB / 0.9523 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.8357, allocations: 84.94 kB / 0.9524 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.8359, allocations: 139.4 kB / 0.9526 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.714e-05/0.8359, allocations: 7.688 kB / 0.9526 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.836, allocations: 42.16 kB / 0.9526 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.8361, allocations: 73.34 kB / 0.9527 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.571e-05/0.8362, allocations: 100 kB / 0.9528 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003081/0.8365, allocations: 350.4 kB / 0.9531 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8366, allocations: 4 kB / 0.9531 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8366, allocations: 0 / 0.9531 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.8366, allocations: 1.25 kB / 0.9531 GB, free: 6.121 MB / 0.7169 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.0007122/0.8373, allocations: 0.6023 MB / 0.9537 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.8373, allocations: 9.281 kB / 0.9537 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.193e-05/0.8374, allocations: 30.53 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.838, allocations: 414.8 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.838, allocations: 10.25 kB / 0.9541 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.838, allocations: 15.66 kB / 0.9542 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.8382, allocations: 75.97 kB / 0.9542 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.8382, allocations: 0 / 0.9542 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.8382, allocations: 1.281 kB / 0.9542 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.8382, allocations: 1.281 kB / 0.9542 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.8384, allocations: 44.81 kB / 0.9543 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.839, allocations: 486.4 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.8392, allocations: 49.11 kB / 0.9548 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.654e-05/0.8393, allocations: 16.92 kB / 0.9548 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.8393, allocations: 1.156 kB / 0.9548 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.8393, allocations: 38.48 kB / 0.9548 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.8393, allocations: 5.188 kB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003256/0.8397, allocations: 103.4 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.8397, allocations: 51.52 kB / 0.955 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006915/0.8404, allocations: 0.5543 MB / 0.9555 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.8404, allocations: 25.7 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.8405, allocations: 174.1 kB / 0.9557 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.8406, allocations: 9.516 kB / 0.9557 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.8406, allocations: 16.66 kB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.011e-05/0.8407, allocations: 344.8 kB / 0.9561 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.222e-05/0.8408, allocations: 11.05 kB / 0.9561 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.206e-05/0.8408, allocations: 16.27 kB / 0.9561 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.009e-05/0.8409, allocations: 36.72 kB / 0.9561 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.8409, allocations: 0 / 0.9561 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001543/0.8411, allocations: 92.78 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.8411, allocations: 6.719 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.8411, allocations: 8 kB / 0.9562 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.8412, allocations: 3.938 kB / 0.9562 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.285e-05/0.8412, allocations: 9.484 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.8413, allocations: 1.812 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.282e-05/0.8413, allocations: 1.906 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.8413, allocations: 0 / 0.9563 GB, free: 3.465 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.8415, allocations: 181.4 kB / 0.9564 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.8416, allocations: 31.22 kB / 0.9565 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.8418, allocations: 104 kB / 0.9566 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.8418, allocations: 5.312 kB / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.8418, allocations: 0 / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.8418, allocations: 0 / 0.9566 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002774/0.8421, allocations: 283 kB / 0.9568 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.8421, allocations: 1.375 kB / 0.9568 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.768e-05/0.8422, allocations: 9.484 kB / 0.9568 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.8422, allocations: 3.938 kB / 0.9569 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.8422, allocations: 1.375 kB / 0.9569 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.8422, allocations: 3.938 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8422, allocations: 4 kB / 0.9569 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.8424, allocations: 187.8 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.083e-05/0.8425, allocations: 115.8 kB / 0.9571 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.8425, allocations: 0 / 0.9571 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.879e-05/0.8426, allocations: 10.22 kB / 0.9572 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.8427, allocations: 4.891 kB / 0.9572 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-06/0.8427, allocations: 5 kB / 0.9572 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004836/0.8432, allocations: 421.2 kB / 0.9576 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8432, allocations: 1.375 kB / 0.9576 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002727/0.8435, allocations: 23.78 kB / 0.9576 GB, free: 2.395 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009052/0.8444, allocations: 366 kB / 0.9579 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001413/0.8445, allocations: 42.05 kB / 0.958 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.8445, allocations: 0 / 0.958 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.955e-05/0.8446, allocations: 15.66 kB / 0.958 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.8451, allocations: 40.72 kB / 0.958 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007898/0.8459, allocations: 0.5682 MB / 0.9586 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.8461, allocations: 0.7863 MB / 0.9594 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001103/0.8462, allocations: 44.86 kB / 0.9594 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.956e-05/0.8463, allocations: 24.77 kB / 0.9594 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8463, allocations: 0 / 0.9594 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of Templates: time 0.005914/0.8522, allocations: 2.373 MB / 0.9617 GB, free: 15.83 MB / 0.7325 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches