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.001901/0.001901, allocations: 108.8 kB / 16.45 MB, free: 6.508 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.002395/0.002395, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 9.109 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.256/3.256, allocations: 0.505 GB / 0.8066 GB, free: 23.05 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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [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.002341/0.002341, allocations: 63.19 kB / 1.172 GB, free: 17.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3923/0.3947, allocations: 180.2 MB / 1.348 GB, free: 9.969 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003423/0.3981, allocations: 1.821 MB / 1.35 GB, free: 8.137 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.4, allocations: 1.15 MB / 1.351 GB, free: 6.98 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.4001, allocations: 7.938 kB / 1.351 GB, free: 6.973 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0005705/0.4007, allocations: 185.8 kB / 1.351 GB, free: 6.793 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005263/0.4012, allocations: 216.1 kB / 1.351 GB, free: 6.582 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.4018, allocations: 233.7 kB / 1.351 GB, free: 6.359 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.4021, allocations: 267.3 kB / 1.352 GB, free: 6.098 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.4022, allocations: 40.52 kB / 1.352 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.4025, allocations: 107.6 kB / 1.352 GB, free: 5.949 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.4027, allocations: 171.5 kB / 1.352 GB, free: 5.781 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.4027, allocations: 20 kB / 1.352 GB, free: 5.762 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.4028, allocations: 63.92 kB / 1.352 GB, free: 5.699 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.403, allocations: 91.73 kB / 1.352 GB, free: 5.609 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.4031, allocations: 119.2 kB / 1.352 GB, free: 5.492 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.4035, allocations: 382.4 kB / 1.352 GB, free: 5.117 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.4035, allocations: 0 / 1.352 GB, free: 5.117 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4035, allocations: 0 / 1.352 GB, free: 5.117 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.4036, allocations: 0 / 1.352 GB, free: 5.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.0009136/0.4045, allocations: 0.63 MB / 1.353 GB, free: 4.438 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4045, allocations: 15.97 kB / 1.353 GB, free: 4.422 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.018e-05/0.4046, allocations: 42.75 kB / 1.353 GB, free: 4.371 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.4048, allocations: 44.69 kB / 1.353 GB, free: 4.328 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006884/0.4054, allocations: 430.5 kB / 1.354 GB, free: 3.871 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.4055, allocations: 4.375 kB / 1.354 GB, free: 3.867 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.4055, allocations: 11.94 kB / 1.354 GB, free: 3.855 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.4056, allocations: 65.67 kB / 1.354 GB, free: 3.785 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4057, allocations: 0 / 1.354 GB, free: 3.785 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.4057, allocations: 7.938 kB / 1.354 GB, free: 3.777 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.4057, allocations: 4 kB / 1.354 GB, free: 3.773 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.4058, allocations: 47.97 kB / 1.354 GB, free: 3.727 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006462/0.4065, allocations: 488.5 kB / 1.354 GB, free: 3.199 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.4066, allocations: 46.55 kB / 1.354 GB, free: 3.145 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.644e-05/0.4067, allocations: 20.97 kB / 1.354 GB, free: 3.121 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.4067, allocations: 11.92 kB / 1.354 GB, free: 3.109 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.4067, allocations: 30.56 kB / 1.354 GB, free: 3.07 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4067, allocations: 0 / 1.354 GB, free: 3.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003124/0.407, allocations: 109.4 kB / 1.354 GB, free: 2.957 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.4071, allocations: 51.41 kB / 1.354 GB, free: 2.895 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.4078, allocations: 0.5719 MB / 1.355 GB, free: 2.312 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.4079, allocations: 33.7 kB / 1.355 GB, free: 2.273 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.408, allocations: 180 kB / 1.355 GB, free: 2.094 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.408, allocations: 15.89 kB / 1.355 GB, free: 2.078 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.4081, allocations: 17.72 kB / 1.355 GB, free: 2.055 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001719/0.4083, allocations: 342.8 kB / 1.356 GB, free: 1.711 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.409e-05/0.4083, allocations: 15.94 kB / 1.356 GB, free: 1.695 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.439e-05/0.4084, allocations: 15.98 kB / 1.356 GB, free: 1.68 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.875e-05/0.4084, allocations: 33.12 kB / 1.356 GB, free: 1.645 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4085, allocations: 0 / 1.356 GB, free: 1.645 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001795/0.4086, allocations: 93.47 kB / 1.356 GB, free: 1.547 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.4086, allocations: 4 kB / 1.356 GB, free: 1.543 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4086, allocations: 0 / 1.356 GB, free: 1.543 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.4087, allocations: 7.938 kB / 1.356 GB, free: 1.535 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.489e-05/0.4087, allocations: 7.984 kB / 1.356 GB, free: 1.527 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.4087, allocations: 0 / 1.356 GB, free: 1.527 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.137e-05/0.4088, allocations: 15.89 kB / 1.356 GB, free: 1.512 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.4088, allocations: 0 / 1.356 GB, free: 1.512 MB / 1.045 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.0001705/0.409, allocations: 181.8 kB / 1.356 GB, free: 1.324 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.1e-05/0.4091, allocations: 31.8 kB / 1.356 GB, free: 1.293 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/0.4093, allocations: 100.3 kB / 1.356 GB, free: 1.188 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.4093, allocations: 4 kB / 1.356 GB, free: 1.184 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.4093, allocations: 4 kB / 1.356 GB, free: 1.18 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.4093, allocations: 0 / 1.356 GB, free: 1.18 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003196/0.4096, allocations: 293.5 kB / 1.356 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4096, allocations: 0 / 1.356 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.74e-05/0.4097, allocations: 7.984 kB / 1.356 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4097, allocations: 4 kB / 1.356 GB, free: 0.832 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4097, allocations: 7.938 kB / 1.356 GB, free: 0.8242 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4097, allocations: 0 / 1.356 GB, free: 0.8242 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4097, allocations: 3.938 kB / 1.356 GB, free: 0.8203 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002241/0.4099, allocations: 195.2 kB / 1.357 GB, free: 0.6133 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.41, allocations: 120.8 kB / 1.357 GB, free: 488 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.4101, allocations: 3.938 kB / 1.357 GB, free: 484 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.453e-05/0.4101, allocations: 4 kB / 1.357 GB, free: 480 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.4102, allocations: 7.984 kB / 1.357 GB, free: 472 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.4102, allocations: 0 / 1.357 GB, free: 472 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004836/0.4107, allocations: 439.1 kB / 1.357 GB, free: 32 kB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4107, allocations: 0 / 1.357 GB, free: 32 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002628/0.4109, allocations: 23.95 kB / 1.357 GB, free: 8 kB / 1.045 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.001778/0.4127, allocations: 0.9682 MB / 1.358 GB, free: 15.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.4129, allocations: 35.91 kB / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4129, allocations: 8 kB / 1.358 GB, free: 15.1 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/0.4129, allocations: 8 kB / 1.358 GB, free: 15.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.4133, allocations: 46.64 kB / 1.358 GB, free: 15.05 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/0.4169, allocations: 2.968 MB / 1.361 GB, free: 12 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.4173, allocations: 0.7909 MB / 1.362 GB, free: 11.19 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001155/0.4174, allocations: 55.25 kB / 1.362 GB, free: 11.14 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.4176, allocations: 95.39 kB / 1.362 GB, free: 11.04 MB / 1.061 GB Notification: Performance of SimCode: time 4.6e-07/0.4176, allocations: 0 / 1.362 GB, free: 11.04 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.4471, allocations: 5.716 MB / 1.368 GB, free: 5.484 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.788, allocations: 6.625 kB / 1.368 GB, free: 5.48 MB / 1.061 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv --start-time 0 --stop-time 86400 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv","/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] "Error: Could not read variable linPieTwo.u in file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv. Warning: Get data of variable linPieTwo.u from file Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.903689222875983]