Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007641/0.007641, allocations: 104.5 kB / 15.74 MB, free: 6.504 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.001759/0.001759, allocations: 199.2 kB / 16.68 MB, free: 6.375 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.754/2.754, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.84 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 151.6 MB / 1.167 GB, free: 6.801 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003247/0.3407, allocations: 1.776 MB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3421, allocations: 0.924 MB / 1.169 GB, free: 4.078 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.682e-05/0.3422, allocations: 3.938 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005747/0.3428, allocations: 179.3 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.3432, allocations: 159.9 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.3437, allocations: 210.3 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002906/0.344, allocations: 239.5 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3442, allocations: 57.64 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.3443, allocations: 99.66 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.3446, allocations: 159.5 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.3446, allocations: 20 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.3447, allocations: 43.98 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.621e-05/0.3448, allocations: 83.75 kB / 1.17 GB, free: 2.852 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.3449, allocations: 119.2 kB / 1.171 GB, free: 2.734 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.3453, allocations: 366.3 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.3454, allocations: 4 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.813e-06/0.3454, allocations: 0 / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.3454, allocations: 0 / 1.171 GB, free: 2.371 MB / 0.92 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.000788/0.3462, allocations: 0.6068 MB / 1.171 GB, free: 1.715 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3462, allocations: 12.03 kB / 1.172 GB, free: 1.703 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.734e-05/0.3463, allocations: 32.7 kB / 1.172 GB, free: 1.672 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.3468, allocations: 422.5 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.3468, allocations: 4.375 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.3468, allocations: 12.12 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.347, allocations: 69.67 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.347, allocations: 0 / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.347, allocations: 8 kB / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.347, allocations: 0 / 1.172 GB, free: 1.125 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.3472, allocations: 43.97 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005639/0.3477, allocations: 484.5 kB / 1.173 GB, free: 0.5586 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.3479, allocations: 50.56 kB / 1.173 GB, free: 0.5 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.983e-05/0.3479, allocations: 20.91 kB / 1.173 GB, free: 488 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.348, allocations: 0 / 1.173 GB, free: 488 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.348, allocations: 34.5 kB / 1.173 GB, free: 444 kB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.348, allocations: 4 kB / 1.173 GB, free: 440 kB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002857/0.3483, allocations: 105.4 kB / 1.173 GB, free: 328 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.3483, allocations: 59.41 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005935/0.3489, allocations: 0.5485 MB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.349, allocations: 25.81 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.3491, allocations: 179.9 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.3491, allocations: 11.94 kB / 1.174 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.032e-05/0.3492, allocations: 13.7 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3493, allocations: 346.8 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.827e-05/0.3493, allocations: 11.98 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.504e-05/0.3494, allocations: 27.94 kB / 1.174 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.709e-05/0.3495, allocations: 36.83 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3495, allocations: 0 / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000156/0.3497, allocations: 93.77 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3497, allocations: 5.719 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3497, allocations: 0 / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.3497, allocations: 3.938 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.426e-05/0.3498, allocations: 8 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3498, allocations: 4 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.3499, allocations: 3.984 kB / 1.174 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.3499, allocations: 4 kB / 1.174 GB, free: 14.9 MB / 0.9356 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.0001461/0.3501, allocations: 177.8 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.3501, allocations: 35.73 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3504, allocations: 100.2 kB / 1.174 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.3504, allocations: 7.938 kB / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3504, allocations: 0 / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3504, allocations: 4 kB / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.3507, allocations: 281.5 kB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3507, allocations: 0 / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.033e-05/0.3507, allocations: 11.98 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3507, allocations: 0 / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.3507, allocations: 0 / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.3508, allocations: 3.938 kB / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3508, allocations: 0 / 1.175 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.351, allocations: 195.2 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.779e-05/0.3511, allocations: 116.9 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.3511, allocations: 0 / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.623e-05/0.3512, allocations: 3.938 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.3512, allocations: 4 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.3512, allocations: 4 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004015/0.3517, allocations: 419.1 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3517, allocations: 3.938 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002601/0.3519, allocations: 27.94 kB / 1.175 GB, free: 13.43 MB / 0.9356 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.0008308/0.3528, allocations: 353.8 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001569/0.3529, allocations: 31.92 kB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3529, allocations: 4 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.23e-05/0.353, allocations: 19.98 kB / 1.176 GB, free: 13.15 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.3534, allocations: 50.73 kB / 1.176 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007506/0.3542, allocations: 0.5093 MB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.3546, allocations: 0.787 MB / 1.177 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001012/0.3547, allocations: 42.92 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.3547, allocations: 27.42 kB / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/0.3547, allocations: 0 / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of Templates: time 0.00595/0.3607, allocations: 2.495 MB / 1.18 GB, free: 9.211 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches