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.001342/0.001342, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001975/0.001975, allocations: 217.4 kB / 23.01 MB, free: 4.609 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.195/3.195, allocations: 0.505 GB / 0.8108 GB, free: 22.07 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.002079/0.002079, allocations: 76.05 kB / 1.178 GB, free: 16.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3361, allocations: 180.2 MB / 1.354 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.0035/0.3396, allocations: 1.846 MB / 1.356 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002045/0.3416, allocations: 1.15 MB / 1.357 GB, free: 4.98 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.3417, allocations: 7.938 kB / 1.357 GB, free: 4.973 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0005567/0.3423, allocations: 181.9 kB / 1.357 GB, free: 4.797 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005042/0.3428, allocations: 220.6 kB / 1.357 GB, free: 4.582 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005309/0.3433, allocations: 227.4 kB / 1.358 GB, free: 4.363 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.3437, allocations: 263.4 kB / 1.358 GB, free: 4.105 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.3438, allocations: 44.45 kB / 1.358 GB, free: 4.062 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.344, allocations: 107.6 kB / 1.358 GB, free: 3.957 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.3443, allocations: 179.4 kB / 1.358 GB, free: 3.781 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.864e-05/0.3443, allocations: 20 kB / 1.358 GB, free: 3.762 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.3444, allocations: 59.97 kB / 1.358 GB, free: 3.703 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.3446, allocations: 95.67 kB / 1.358 GB, free: 3.609 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.3447, allocations: 127.1 kB / 1.358 GB, free: 3.484 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004575/0.3451, allocations: 370.5 kB / 1.359 GB, free: 3.121 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3451, allocations: 0 / 1.359 GB, free: 3.121 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3451, allocations: 4 kB / 1.359 GB, free: 3.117 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3452, allocations: 0 / 1.359 GB, free: 3.117 MB / 1.045 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.0009571/0.3461, allocations: 0.5586 MB / 1.359 GB, free: 2.527 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.3462, allocations: 8.031 kB / 1.359 GB, free: 2.52 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.3463, allocations: 52.62 kB / 1.359 GB, free: 2.469 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007113/0.3471, allocations: 372.7 kB / 1.36 GB, free: 2.082 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3471, allocations: 4.359 kB / 1.36 GB, free: 2.078 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.3471, allocations: 12.12 kB / 1.36 GB, free: 2.066 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.3473, allocations: 73.66 kB / 1.36 GB, free: 1.988 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3473, allocations: 0 / 1.36 GB, free: 1.988 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.3473, allocations: 4 kB / 1.36 GB, free: 1.984 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3473, allocations: 0 / 1.36 GB, free: 1.984 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.3474, allocations: 47.91 kB / 1.36 GB, free: 1.938 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006701/0.3481, allocations: 455.7 kB / 1.36 GB, free: 1.449 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.3483, allocations: 46.5 kB / 1.36 GB, free: 1.395 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.051e-05/0.3483, allocations: 20.91 kB / 1.36 GB, free: 1.371 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.3483, allocations: 4 kB / 1.36 GB, free: 1.367 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3484, allocations: 34.67 kB / 1.36 GB, free: 1.324 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.3484, allocations: 3.938 kB / 1.36 GB, free: 1.32 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003102/0.3487, allocations: 109.4 kB / 1.361 GB, free: 1.207 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.3487, allocations: 59.34 kB / 1.361 GB, free: 1.137 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007265/0.3495, allocations: 0.5719 MB / 1.361 GB, free: 0.5547 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.3495, allocations: 25.7 kB / 1.361 GB, free: 0.5234 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.3496, allocations: 180 kB / 1.361 GB, free: 352 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.3497, allocations: 7.906 kB / 1.361 GB, free: 344 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.3497, allocations: 25.7 kB / 1.361 GB, free: 312 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002076/0.3499, allocations: 342.8 kB / 1.362 GB, free: 15.96 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/0.35, allocations: 11.98 kB / 1.362 GB, free: 15.95 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.35, allocations: 15.98 kB / 1.362 GB, free: 15.93 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.448e-05/0.3501, allocations: 32.84 kB / 1.362 GB, free: 15.9 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3501, allocations: 0 / 1.362 GB, free: 15.9 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001795/0.3503, allocations: 93.42 kB / 1.362 GB, free: 15.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.3503, allocations: 12 kB / 1.362 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3503, allocations: 0 / 1.362 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3503, allocations: 3.938 kB / 1.362 GB, free: 15.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.542e-05/0.3504, allocations: 4 kB / 1.362 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3504, allocations: 7.984 kB / 1.362 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.643e-05/0.3505, allocations: 3.953 kB / 1.362 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.3505, allocations: 3.938 kB / 1.362 GB, free: 15.77 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.0001758/0.3507, allocations: 178.5 kB / 1.362 GB, free: 15.58 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-05/0.3507, allocations: 36.14 kB / 1.362 GB, free: 15.55 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002395/0.351, allocations: 112.3 kB / 1.362 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.351, allocations: 3.938 kB / 1.362 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.351, allocations: 0 / 1.362 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.351, allocations: 3.938 kB / 1.362 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.3513, allocations: 260.6 kB / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3513, allocations: 0 / 1.362 GB, free: 15.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.3514, allocations: 11.98 kB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3514, allocations: 0 / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-06/0.3514, allocations: 0 / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.3514, allocations: 7.938 kB / 1.363 GB, free: 15.1 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3514, allocations: 4 kB / 1.363 GB, free: 15.1 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002415/0.3516, allocations: 191.3 kB / 1.363 GB, free: 14.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.374e-05/0.3517, allocations: 35.8 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.3518, allocations: 7.938 kB / 1.363 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.3518, allocations: 3.938 kB / 1.363 GB, free: 14.85 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.3519, allocations: 4 kB / 1.363 GB, free: 14.84 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.3519, allocations: 11.98 kB / 1.363 GB, free: 14.83 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.000514/0.3524, allocations: 427.1 kB / 1.363 GB, free: 14.41 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3524, allocations: 0 / 1.363 GB, free: 14.41 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002894/0.3527, allocations: 39.88 kB / 1.363 GB, free: 14.38 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.001385/0.3541, allocations: 348.7 kB / 1.364 GB, free: 14.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001703/0.3542, allocations: 27.98 kB / 1.364 GB, free: 14.13 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3543, allocations: 0 / 1.364 GB, free: 14.13 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.583e-05/0.3543, allocations: 15.98 kB / 1.364 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000406/0.3547, allocations: 45.36 kB / 1.364 GB, free: 14.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.3557, allocations: 0.5901 MB / 1.364 GB, free: 13.45 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3562, allocations: 0.787 MB / 1.365 GB, free: 12.63 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.124e-05/0.3563, allocations: 27.44 kB / 1.365 GB, free: 12.61 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/0.3563, allocations: 0 / 1.365 GB, free: 12.61 MB / 1.061 GB Notification: Performance of Templates: time 0.006865/0.3631, allocations: 3.763 MB / 1.369 GB, free: 8.84 MB / 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/jenkins1/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: 11.779627748997882]