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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001474/0.001473, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 195 kB / 16.63 MB, free: 6.613 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.406/1.406, allocations: 222.9 MB / 240.3 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.408/2.408, allocations: 390.3 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 66.7 kB / 0.9509 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.348, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003315/0.3514, allocations: 1.778 MB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.3529, allocations: 0.92 MB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.639e-05/0.3531, allocations: 0 / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005647/0.3536, allocations: 180 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.354, allocations: 165.3 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005049/0.3545, allocations: 211 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003017/0.3549, allocations: 235.5 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.355, allocations: 65.55 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.3552, allocations: 99.61 kB / 1.092 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.3554, allocations: 159.5 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.3555, allocations: 16 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3556, allocations: 40 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3557, allocations: 91.69 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.3558, allocations: 119.2 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.3562, allocations: 346.9 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3562, allocations: 0 / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3562, allocations: 0 / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.3562, allocations: 4 kB / 1.092 GB, free: 13.05 MB / 0.8575 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.0008676/0.3571, allocations: 0.6069 MB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3572, allocations: 8.031 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.3572, allocations: 32.56 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005439/0.3578, allocations: 410.3 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.3578, allocations: 8.375 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.3578, allocations: 4.125 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.358, allocations: 81.59 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.358, allocations: 4 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3581, allocations: 3.938 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.3581, allocations: 11.92 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.3582, allocations: 47.97 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.3588, allocations: 476.4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.359, allocations: 54.61 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.457e-05/0.359, allocations: 16.86 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.3591, allocations: 3.984 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.3591, allocations: 34.56 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3591, allocations: 0 / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0002993/0.3594, allocations: 109.2 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.3595, allocations: 51.41 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006053/0.3601, allocations: 0.5524 MB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3601, allocations: 29.7 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3602, allocations: 172 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.3603, allocations: 15.73 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.3603, allocations: 17.72 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3604, allocations: 346.8 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.82e-05/0.3605, allocations: 11.94 kB / 1.095 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.952e-05/0.3606, allocations: 11.98 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.173e-05/0.3607, allocations: 40.84 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3607, allocations: 0 / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001944/0.3609, allocations: 93.23 kB / 1.095 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.3609, allocations: 9.875 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3609, allocations: 0 / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3609, allocations: 3.938 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.609e-05/0.361, allocations: 7.984 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.361, allocations: 0 / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.3611, allocations: 8 kB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.3611, allocations: 112 / 1.095 GB, free: 9.582 MB / 0.8575 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.0001492/0.3613, allocations: 185.8 kB / 1.096 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.963e-05/0.3613, allocations: 27.62 kB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.3615, allocations: 104.1 kB / 1.096 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3616, allocations: 4.312 kB / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3616, allocations: 0 / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3616, allocations: 0 / 1.096 GB, free: 9.246 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.3619, allocations: 289.5 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3619, allocations: 3.984 kB / 1.096 GB, free: 8.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.3619, allocations: 4 kB / 1.096 GB, free: 8.906 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3619, allocations: 3.984 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3619, allocations: 4 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3619, allocations: 3.938 kB / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.362, allocations: 0 / 1.096 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.3622, allocations: 179.2 kB / 1.096 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-05/0.3623, allocations: 120.7 kB / 1.096 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.3623, allocations: 4 kB / 1.096 GB, free: 8.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.3624, allocations: 7.875 kB / 1.096 GB, free: 8.555 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.3624, allocations: 7.984 kB / 1.096 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.3625, allocations: 0 / 1.096 GB, free: 8.547 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004373/0.3629, allocations: 415.1 kB / 1.097 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3629, allocations: 0 / 1.097 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002693/0.3632, allocations: 24 kB / 1.097 GB, free: 8.117 MB / 0.8575 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.0008843/0.3641, allocations: 362.6 kB / 1.097 GB, free: 7.883 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001721/0.3643, allocations: 31.97 kB / 1.097 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3643, allocations: 0 / 1.097 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.561e-05/0.3643, allocations: 23.92 kB / 1.097 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.3648, allocations: 47.2 kB / 1.097 GB, free: 7.785 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008667/0.3657, allocations: 0.4944 MB / 1.098 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.3661, allocations: 0.7909 MB / 1.098 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.3662, allocations: 46.91 kB / 1.098 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.72e-05/0.3663, allocations: 19.44 kB / 1.099 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of SimCode: time 3.8e-07/0.3663, allocations: 4 kB / 1.099 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of Templates: time 0.006476/0.3728, allocations: 2.464 MB / 1.101 GB, free: 3.93 MB / 0.8575 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