Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001551/0.001552, allocations: 107.8 kB / 15.99 MB, free: 6.359 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.001492/0.001492, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.426/1.426, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.697/2.697, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 64.42 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3484, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003518/0.352, allocations: 1.836 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3535, allocations: 0.9006 MB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.755e-05/0.3536, allocations: 7.938 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005383/0.3541, allocations: 158.3 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.3545, allocations: 163.4 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.3549, allocations: 195 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002999/0.3552, allocations: 239.5 kB / 1.068 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.3554, allocations: 53.64 kB / 1.068 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.3556, allocations: 103.6 kB / 1.068 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.3558, allocations: 159.5 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.731e-05/0.3558, allocations: 16 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.3559, allocations: 43.98 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.356, allocations: 83.75 kB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.3562, allocations: 115.2 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.3565, allocations: 299.7 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3565, allocations: 0 / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3565, allocations: 0 / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.3565, allocations: 0 / 1.068 GB, free: 10.77 MB / 0.8419 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.0008391/0.3574, allocations: 0.6108 MB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3574, allocations: 8.031 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.76e-05/0.3575, allocations: 32.56 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000547/0.358, allocations: 414.3 kB / 1.069 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.3581, allocations: 4.375 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.3581, allocations: 8.125 kB / 1.069 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001811/0.3583, allocations: 81.59 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3583, allocations: 0 / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3583, allocations: 0 / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.3583, allocations: 4 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.3585, allocations: 55.91 kB / 1.07 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000626/0.3591, allocations: 480.5 kB / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001362/0.3592, allocations: 54.55 kB / 1.07 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.539e-05/0.3593, allocations: 20.91 kB / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.3593, allocations: 0 / 1.07 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3594, allocations: 34.5 kB / 1.07 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 3.065e-06/0.3594, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.000295/0.3597, allocations: 109.2 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.3597, allocations: 55.39 kB / 1.07 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006664/0.3604, allocations: 0.5523 MB / 1.071 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.3604, allocations: 25.7 kB / 1.071 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.3606, allocations: 176 kB / 1.071 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.3606, allocations: 11.75 kB / 1.071 GB, free: 7.859 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.3607, allocations: 21.7 kB / 1.071 GB, free: 7.832 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3608, allocations: 342.8 kB / 1.071 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.071e-05/0.3609, allocations: 11.98 kB / 1.071 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.498e-05/0.3609, allocations: 8 kB / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.414e-05/0.361, allocations: 44.77 kB / 1.071 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.361, allocations: 0 / 1.071 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001607/0.3612, allocations: 85.31 kB / 1.072 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3612, allocations: 8 kB / 1.072 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.3613, allocations: 0 / 1.072 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.3613, allocations: 7.922 kB / 1.072 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.843e-05/0.3613, allocations: 4 kB / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.3614, allocations: 0 / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.954e-05/0.3614, allocations: 8 kB / 1.072 GB, free: 7.305 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-06/0.3614, allocations: 0 / 1.072 GB, free: 7.305 MB / 0.8419 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.0001715/0.3616, allocations: 185.8 kB / 1.072 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.653e-05/0.3617, allocations: 27.62 kB / 1.072 GB, free: 7.086 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002274/0.3619, allocations: 100.2 kB / 1.072 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3619, allocations: 7.875 kB / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3619, allocations: 0 / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.3619, allocations: 3.984 kB / 1.072 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.3623, allocations: 289.5 kB / 1.072 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3623, allocations: 0 / 1.072 GB, free: 6.633 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.567e-05/0.3623, allocations: 4 kB / 1.072 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3623, allocations: 0 / 1.072 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.3623, allocations: 7.984 kB / 1.072 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3623, allocations: 3.938 kB / 1.072 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3623, allocations: 0 / 1.072 GB, free: 6.617 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.3626, allocations: 187.5 kB / 1.072 GB, free: 6.418 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.3627, allocations: 128.8 kB / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.3627, allocations: 0 / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-05/0.3628, allocations: 3.938 kB / 1.072 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.3629, allocations: 4 kB / 1.072 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.3629, allocations: 0 / 1.072 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004758/0.3634, allocations: 419.1 kB / 1.073 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3634, allocations: 3.938 kB / 1.073 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002616/0.3636, allocations: 28 kB / 1.073 GB, free: 5.828 MB / 0.8419 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.001264/0.3649, allocations: 351.6 kB / 1.073 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.3651, allocations: 31.98 kB / 1.073 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3651, allocations: 11.88 kB / 1.073 GB, free: 5.566 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.884e-05/0.3651, allocations: 19.98 kB / 1.073 GB, free: 5.547 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.3656, allocations: 36.98 kB / 1.073 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.3665, allocations: 0.6252 MB / 1.074 GB, free: 4.859 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.367, allocations: 0.7792 MB / 1.075 GB, free: 4.055 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.318e-05/0.367, allocations: 27.42 kB / 1.075 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of SimCode: time 1.9e-07/0.367, allocations: 0 / 1.075 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of Templates: time 0.006105/0.3732, allocations: 3.547 MB / 1.078 GB, free: 0.4922 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches