Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001562/0.001562, allocations: 208.8 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.261/3.261, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 75.22 kB / 1.186 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3404, allocations: 181.9 MB / 1.364 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003256/0.3436, allocations: 1.79 MB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001898/0.3455, allocations: 1.089 MB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.44e-05/0.3456, allocations: 4 kB / 1.367 GB, free: 10.69 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005225/0.3461, allocations: 189.6 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005035/0.3467, allocations: 224.4 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.3471, allocations: 220.3 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.3475, allocations: 267.4 kB / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.3476, allocations: 44.39 kB / 1.368 GB, free: 9.77 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.3478, allocations: 111.6 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.3481, allocations: 171.5 kB / 1.368 GB, free: 9.492 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.3481, allocations: 24 kB / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.3482, allocations: 48 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.3483, allocations: 103.6 kB / 1.368 GB, free: 9.32 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.932e-05/0.3484, allocations: 79.41 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004507/0.3489, allocations: 378.4 kB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3489, allocations: 3.938 kB / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3489, allocations: 0 / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.3489, allocations: 0 / 1.368 GB, free: 8.867 MB / 1.061 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.000879/0.3498, allocations: 0.5586 MB / 1.369 GB, free: 8.277 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.3498, allocations: 8.031 kB / 1.369 GB, free: 8.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.35, allocations: 48.69 kB / 1.369 GB, free: 8.223 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.3506, allocations: 368.7 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.3507, allocations: 4.375 kB / 1.369 GB, free: 7.836 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.3507, allocations: 8.125 kB / 1.369 GB, free: 7.828 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.3509, allocations: 81.59 kB / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.3509, allocations: 0 / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.3509, allocations: 0 / 1.369 GB, free: 7.742 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3509, allocations: 3.938 kB / 1.369 GB, free: 7.738 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001302/0.351, allocations: 47.97 kB / 1.37 GB, free: 7.691 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005952/0.3516, allocations: 404.2 kB / 1.37 GB, free: 7.266 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.3518, allocations: 46.56 kB / 1.37 GB, free: 7.211 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.588e-05/0.3518, allocations: 20.91 kB / 1.37 GB, free: 7.188 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.3518, allocations: 3.984 kB / 1.37 GB, free: 7.184 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.3519, allocations: 30.56 kB / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3519, allocations: 0 / 1.37 GB, free: 7.145 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0002928/0.3522, allocations: 109.4 kB / 1.37 GB, free: 7.031 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.3522, allocations: 55.34 kB / 1.37 GB, free: 6.965 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007322/0.3529, allocations: 0.5719 MB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.353, allocations: 29.7 kB / 1.371 GB, free: 6.348 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3531, allocations: 183.9 kB / 1.371 GB, free: 6.164 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.3531, allocations: 7.953 kB / 1.371 GB, free: 6.156 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-05/0.3532, allocations: 17.7 kB / 1.371 GB, free: 6.133 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3533, allocations: 342.8 kB / 1.371 GB, free: 5.789 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.262e-05/0.3534, allocations: 15.98 kB / 1.371 GB, free: 5.773 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.85e-05/0.3534, allocations: 8 kB / 1.371 GB, free: 5.766 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.3535, allocations: 36.83 kB / 1.371 GB, free: 5.727 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3535, allocations: 4.109 kB / 1.371 GB, free: 5.723 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001828/0.3537, allocations: 101.3 kB / 1.371 GB, free: 5.617 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.3537, allocations: 8 kB / 1.371 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.3537, allocations: 0 / 1.371 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3538, allocations: 0 / 1.371 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.744e-05/0.3538, allocations: 4 kB / 1.371 GB, free: 5.605 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3538, allocations: 3.938 kB / 1.371 GB, free: 5.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.563e-05/0.3539, allocations: 4 kB / 1.371 GB, free: 5.598 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.3539, allocations: 3.984 kB / 1.371 GB, free: 5.594 MB / 1.061 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.0001754/0.3541, allocations: 186.5 kB / 1.372 GB, free: 5.402 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/0.3541, allocations: 35.75 kB / 1.372 GB, free: 5.367 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.3544, allocations: 108.3 kB / 1.372 GB, free: 5.254 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3544, allocations: 0 / 1.372 GB, free: 5.254 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3544, allocations: 3.938 kB / 1.372 GB, free: 5.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3544, allocations: 0 / 1.372 GB, free: 5.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.3546, allocations: 217.2 kB / 1.372 GB, free: 5.008 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3546, allocations: 4 kB / 1.372 GB, free: 5.004 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.123e-05/0.3547, allocations: 11.98 kB / 1.372 GB, free: 4.992 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.614e-06/0.3547, allocations: 0 / 1.372 GB, free: 4.992 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.271e-06/0.3547, allocations: 4 kB / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3547, allocations: 0 / 1.372 GB, free: 4.988 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3547, allocations: 4 kB / 1.372 GB, free: 4.984 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.3549, allocations: 187.3 kB / 1.372 GB, free: 4.785 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.369e-05/0.355, allocations: 39.8 kB / 1.372 GB, free: 4.746 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.3551, allocations: 432 / 1.372 GB, free: 4.746 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.644e-05/0.3552, allocations: 7.938 kB / 1.372 GB, free: 4.738 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.753e-05/0.3552, allocations: 3.938 kB / 1.372 GB, free: 4.734 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3552, allocations: 0 / 1.372 GB, free: 4.734 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000532/0.3557, allocations: 439.1 kB / 1.373 GB, free: 4.305 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3557, allocations: 4 kB / 1.373 GB, free: 4.301 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002693/0.356, allocations: 27.94 kB / 1.373 GB, free: 4.273 MB / 1.061 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.001402/0.3574, allocations: 380.4 kB / 1.373 GB, free: 4.047 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001559/0.3576, allocations: 31.97 kB / 1.373 GB, free: 4.016 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3576, allocations: 4 kB / 1.373 GB, free: 4.012 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.93e-05/0.3576, allocations: 19.92 kB / 1.373 GB, free: 3.992 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.358, allocations: 43.39 kB / 1.373 GB, free: 3.957 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008656/0.3589, allocations: 0.5337 MB / 1.374 GB, free: 3.387 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.3591, allocations: 194.1 kB / 1.374 GB, free: 3.18 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001157/0.3592, allocations: 47.25 kB / 1.374 GB, free: 3.133 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.063e-05/0.3593, allocations: 23.44 kB / 1.374 GB, free: 3.109 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.3593, allocations: 0 / 1.374 GB, free: 3.109 MB / 1.061 GB Notification: Performance of Templates: time 0.006935/0.3662, allocations: 2.901 MB / 1.377 GB, free: 268 kB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.730451362207532]