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.0009685/0.0009688, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006919/0.006919, allocations: 170 kB / 16.27 MB, free: 6.66 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.417/1.417, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.441/2.441, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003748, allocations: 8 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8674/0.8678, allocations: 142.4 MB / 0.955 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002175/0.87, allocations: 1.483 MB / 0.9565 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00133/0.8714, allocations: 0.886 MB / 0.9574 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.377e-05/0.8715, allocations: 5.438 kB / 0.9574 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004916/0.872, allocations: 167.9 kB / 0.9575 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.8723, allocations: 145.1 kB / 0.9577 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.8727, allocations: 193 kB / 0.9578 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.873, allocations: 221 kB / 0.9581 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.8732, allocations: 49.14 kB / 0.9581 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.8733, allocations: 86.45 kB / 0.9582 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.8735, allocations: 133.4 kB / 0.9583 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.852e-05/0.8735, allocations: 5.5 kB / 0.9583 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.732e-05/0.8736, allocations: 33.98 kB / 0.9584 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.926e-05/0.8737, allocations: 76.73 kB / 0.9584 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.511e-05/0.8738, allocations: 116.1 kB / 0.9585 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003025/0.8741, allocations: 345.8 kB / 0.9589 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.8741, allocations: 1.781 kB / 0.9589 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.8741, allocations: 0 / 0.9589 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.8742, allocations: 0 / 0.9589 GB, free: 4.844 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.0006869/0.8748, allocations: 0.5526 MB / 0.9594 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.8749, allocations: 9.656 kB / 0.9594 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.744e-05/0.875, allocations: 29.38 kB / 0.9594 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.8754, allocations: 415 kB / 0.9598 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.8755, allocations: 7.156 kB / 0.9598 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.8755, allocations: 14.66 kB / 0.9599 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.8757, allocations: 82.62 kB / 0.9599 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.8757, allocations: 4 kB / 0.9599 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.8757, allocations: 0.9688 kB / 0.9599 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.8757, allocations: 1 kB / 0.9599 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000131/0.8758, allocations: 56.55 kB / 0.96 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.8764, allocations: 479 kB / 0.9605 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.8765, allocations: 49.81 kB / 0.9605 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.614e-05/0.8766, allocations: 23.84 kB / 0.9605 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.8766, allocations: 3.984 kB / 0.9605 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.594e-05/0.8767, allocations: 35.88 kB / 0.9606 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.8767, allocations: 4 kB / 0.9606 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002848/0.877, allocations: 109.2 kB / 0.9607 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.877, allocations: 51.41 kB / 0.9607 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006285/0.8776, allocations: 0.5506 MB / 0.9613 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.8776, allocations: 25.7 kB / 0.9613 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.8777, allocations: 178.6 kB / 0.9615 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.8778, allocations: 13.53 kB / 0.9615 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-05/0.8778, allocations: 14.81 kB / 0.9615 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.8779, allocations: 340 kB / 0.9618 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.102e-05/0.8779, allocations: 13.17 kB / 0.9618 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.078e-05/0.878, allocations: 17.55 kB / 0.9618 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.775e-05/0.8781, allocations: 44.81 kB / 0.9619 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.8781, allocations: 112 / 0.9619 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001563/0.8783, allocations: 96.58 kB / 0.962 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.8783, allocations: 5.406 kB / 0.962 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.8783, allocations: 0 / 0.962 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.8783, allocations: 4.688 kB / 0.962 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.876e-05/0.8784, allocations: 14.2 kB / 0.962 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.8784, allocations: 1 kB / 0.962 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.612e-05/0.8785, allocations: 7 kB / 0.962 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-06/0.8785, allocations: 1.031 kB / 0.962 GB, free: 2.215 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.0001317/0.8786, allocations: 180.5 kB / 0.9622 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.8787, allocations: 32.47 kB / 0.9622 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002072/0.8789, allocations: 104.1 kB / 0.9623 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.8789, allocations: 4.312 kB / 0.9623 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8789, allocations: 5.031 kB / 0.9623 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8789, allocations: 0 / 0.9623 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.8792, allocations: 279.2 kB / 0.9626 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.8792, allocations: 3.984 kB / 0.9626 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.741e-05/0.8792, allocations: 10.95 kB / 0.9626 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.8792, allocations: 1.25 kB / 0.9626 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.8793, allocations: 3.938 kB / 0.9626 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.8793, allocations: 5.25 kB / 0.9626 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.8793, allocations: 0 / 0.9626 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/0.8795, allocations: 195 kB / 0.9628 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.431e-05/0.8795, allocations: 123.7 kB / 0.9629 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.8796, allocations: 5.391 kB / 0.9629 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.081e-05/0.8797, allocations: 6.25 kB / 0.9629 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.8797, allocations: 1.25 kB / 0.9629 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.8797, allocations: 1.25 kB / 0.9629 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004321/0.8802, allocations: 425.4 kB / 0.9633 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8802, allocations: 0 / 0.9633 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002945/0.8805, allocations: 25.06 kB / 0.9633 GB, free: 1.141 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.0008152/0.8813, allocations: 361.8 kB / 0.9637 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001506/0.8814, allocations: 38.11 kB / 0.9637 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.8815, allocations: 0 / 0.9637 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.142e-05/0.8815, allocations: 15.8 kB / 0.9637 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.8819, allocations: 45.73 kB / 0.9638 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007973/0.8828, allocations: 0.5796 MB / 0.9644 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.8831, allocations: 0.7947 MB / 0.9651 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001076/0.8832, allocations: 44.89 kB / 0.9652 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.8833, allocations: 20.91 kB / 0.9652 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of SimCode: time 7.41e-07/0.8833, allocations: 0 / 0.9652 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of Templates: time 0.006046/0.8893, allocations: 2.332 MB / 0.9675 GB, free: 14.59 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