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.00999/0.00999, allocations: 97.48 kB / 15.73 MB, free: 5.988 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.001685/0.001685, allocations: 188 kB / 16.67 MB, free: 5.918 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.503/1.503, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.933/2.933, allocations: 469.8 MB / 0.7425 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 63.91 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3509, allocations: 159.1 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003179/0.3541, allocations: 1.779 MB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001529/0.3556, allocations: 0.9277 MB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.3557, allocations: 0 / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005394/0.3563, allocations: 186.8 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.3567, allocations: 171.4 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004753/0.3572, allocations: 203.5 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000345/0.3575, allocations: 239.5 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.3576, allocations: 37.66 kB / 1.224 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.3578, allocations: 99.66 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.358, allocations: 159.5 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.359e-05/0.3581, allocations: 20 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.81e-05/0.3582, allocations: 40 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.3583, allocations: 87.73 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.3584, allocations: 119.1 kB / 1.225 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003934/0.3588, allocations: 354.5 kB / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3588, allocations: 0 / 1.225 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.887e-06/0.3588, allocations: 7.984 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.3588, allocations: 0 / 1.225 GB, free: 9.438 MB / 0.9825 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.0008207/0.3596, allocations: 0.6184 MB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3596, allocations: 8.031 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.506e-05/0.3597, allocations: 32.7 kB / 1.226 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.3602, allocations: 414.6 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.3602, allocations: 8.312 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.3603, allocations: 12.11 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.3604, allocations: 81.59 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.3604, allocations: 0 / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3605, allocations: 4 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3605, allocations: 0 / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.3606, allocations: 51.91 kB / 1.226 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006057/0.3612, allocations: 480.5 kB / 1.227 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.3613, allocations: 46.5 kB / 1.227 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.503e-05/0.3614, allocations: 24.91 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.3614, allocations: 0 / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.3614, allocations: 30.56 kB / 1.227 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3614, allocations: 0 / 1.227 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0002936/0.3617, allocations: 109.4 kB / 1.227 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.3618, allocations: 51.41 kB / 1.227 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006107/0.3624, allocations: 0.5561 MB / 1.227 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.3624, allocations: 25.7 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.3625, allocations: 180 kB / 1.228 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3625, allocations: 11.84 kB / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.3626, allocations: 17.83 kB / 1.228 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3627, allocations: 350.7 kB / 1.228 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.851e-05/0.3628, allocations: 12 kB / 1.228 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.7e-05/0.3628, allocations: 7.984 kB / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.07e-05/0.3629, allocations: 36.84 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3629, allocations: 4 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000161/0.363, allocations: 89.42 kB / 1.228 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3631, allocations: 8 kB / 1.228 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3631, allocations: 4 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.3631, allocations: 3.938 kB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.207e-05/0.3632, allocations: 7.984 kB / 1.228 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.3632, allocations: 4 kB / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.387e-05/0.3632, allocations: 0 / 1.228 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.3632, allocations: 0 / 1.228 GB, free: 5.969 MB / 0.9825 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.0001381/0.3634, allocations: 189.8 kB / 1.228 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.3634, allocations: 27.81 kB / 1.228 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002188/0.3636, allocations: 100.5 kB / 1.228 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3637, allocations: 7.875 kB / 1.228 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.3637, allocations: 0 / 1.228 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3637, allocations: 4 kB / 1.228 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.3639, allocations: 285.5 kB / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3639, allocations: 0 / 1.229 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.048e-05/0.364, allocations: 12 kB / 1.229 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.364, allocations: 4 kB / 1.229 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.364, allocations: 0 / 1.229 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.364, allocations: 3.938 kB / 1.229 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.364, allocations: 3.984 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001967/0.3642, allocations: 183.3 kB / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-05/0.3643, allocations: 116.9 kB / 1.229 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.3643, allocations: 4 kB / 1.229 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.3644, allocations: 7.922 kB / 1.229 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.733e-05/0.3644, allocations: 4 kB / 1.229 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.3644, allocations: 0 / 1.229 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000441/0.3649, allocations: 419 kB / 1.229 GB, free: 4.523 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3649, allocations: 4 kB / 1.229 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002639/0.3651, allocations: 27.92 kB / 1.229 GB, free: 4.492 MB / 0.9825 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.0007565/0.3659, allocations: 360.7 kB / 1.23 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.366, allocations: 35.97 kB / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.366, allocations: 0 / 1.23 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.317e-05/0.3661, allocations: 15.98 kB / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.3665, allocations: 45.39 kB / 1.23 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007662/0.3673, allocations: 0.517 MB / 1.23 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.3676, allocations: 0.7792 MB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000106/0.3677, allocations: 55.08 kB / 1.231 GB, free: 2.766 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.376e-05/0.3678, allocations: 23.44 kB / 1.231 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.3678, allocations: 0 / 1.231 GB, free: 2.742 MB / 0.9825 GB Notification: Performance of Templates: time 0.005818/0.3736, allocations: 2.477 MB / 1.234 GB, free: 292 kB / 0.9825 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=480 -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/jenkins/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