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.001816/0.001816, allocations: 113 kB / 18.94 MB, free: 2.934 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.00253/0.00253, allocations: 208.3 kB / 22.25 MB, free: 5.086 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 8.008 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.192/3.192, allocations: 0.505 GB / 0.8101 GB, free: 22 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.002199/0.002199, allocations: 67.81 kB / 1.177 GB, free: 17.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3475, allocations: 180.2 MB / 1.353 GB, free: 8.434 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003963/0.3514, allocations: 1.844 MB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002224/0.3537, allocations: 1.154 MB / 1.356 GB, free: 5.418 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.3538, allocations: 3.938 kB / 1.356 GB, free: 5.414 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0006049/0.3544, allocations: 185.8 kB / 1.356 GB, free: 5.234 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000657/0.3551, allocations: 216.3 kB / 1.356 GB, free: 5.023 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.3556, allocations: 224.3 kB / 1.356 GB, free: 4.809 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004383/0.3561, allocations: 275.3 kB / 1.357 GB, free: 4.539 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.3562, allocations: 40.73 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.3564, allocations: 115.6 kB / 1.357 GB, free: 4.387 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.3567, allocations: 171.4 kB / 1.357 GB, free: 4.219 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.3567, allocations: 20 kB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.3568, allocations: 55.97 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.357, allocations: 91.75 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3571, allocations: 123.2 kB / 1.357 GB, free: 3.934 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.3576, allocations: 382.4 kB / 1.358 GB, free: 3.559 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3576, allocations: 0 / 1.358 GB, free: 3.559 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3576, allocations: 0 / 1.358 GB, free: 3.559 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.3576, allocations: 0 / 1.358 GB, free: 3.559 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.0008829/0.3585, allocations: 0.5508 MB / 1.358 GB, free: 2.977 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.3585, allocations: 12.03 kB / 1.358 GB, free: 2.965 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.354e-05/0.3585, allocations: 38.73 kB / 1.358 GB, free: 2.918 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.3587, allocations: 44.69 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006811/0.3594, allocations: 376.6 kB / 1.359 GB, free: 2.484 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.3594, allocations: 4.375 kB / 1.359 GB, free: 2.48 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.3594, allocations: 7.938 kB / 1.359 GB, free: 2.473 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.3596, allocations: 73.67 kB / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3596, allocations: 0 / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3597, allocations: 0 / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.3597, allocations: 0 / 1.359 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.3598, allocations: 51.97 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006756/0.3605, allocations: 459.6 kB / 1.359 GB, free: 1.852 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.3606, allocations: 54.55 kB / 1.359 GB, free: 1.789 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.587e-05/0.3607, allocations: 16.95 kB / 1.359 GB, free: 1.77 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.3607, allocations: 7.938 kB / 1.359 GB, free: 1.762 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.3607, allocations: 30.56 kB / 1.359 GB, free: 1.723 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3607, allocations: 4 kB / 1.359 GB, free: 1.719 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0003051/0.361, allocations: 109.4 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.3611, allocations: 55.41 kB / 1.359 GB, free: 1.539 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000761/0.3618, allocations: 0.568 MB / 1.36 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.3619, allocations: 29.64 kB / 1.36 GB, free: 0.9258 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.362, allocations: 187.9 kB / 1.36 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.362, allocations: 7.906 kB / 1.36 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.3621, allocations: 21.7 kB / 1.36 GB, free: 0.7031 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3622, allocations: 346.8 kB / 1.361 GB, free: 364 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.112e-05/0.3623, allocations: 11.98 kB / 1.361 GB, free: 352 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.542e-05/0.3623, allocations: 11.98 kB / 1.361 GB, free: 340 kB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.085e-05/0.3624, allocations: 32.84 kB / 1.361 GB, free: 304 kB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3624, allocations: 4 kB / 1.361 GB, free: 300 kB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001678/0.3626, allocations: 89.48 kB / 1.361 GB, free: 204 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3626, allocations: 8 kB / 1.361 GB, free: 196 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.3626, allocations: 0 / 1.361 GB, free: 196 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.3626, allocations: 3.938 kB / 1.361 GB, free: 192 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.27e-05/0.3627, allocations: 15.94 kB / 1.361 GB, free: 176 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.3627, allocations: 0 / 1.361 GB, free: 176 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.3628, allocations: 7.938 kB / 1.361 GB, free: 168 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.904e-06/0.3628, allocations: 4 kB / 1.361 GB, free: 164 kB / 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.000191/0.363, allocations: 185.7 kB / 1.361 GB, free: 15.97 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.363, allocations: 31.81 kB / 1.361 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.3633, allocations: 112.3 kB / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3633, allocations: 0 / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3633, allocations: 0 / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3633, allocations: 0 / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.3636, allocations: 264.6 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3636, allocations: 4 kB / 1.361 GB, free: 15.51 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.85e-05/0.3636, allocations: 11.92 kB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3636, allocations: 0 / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.3637, allocations: 3.938 kB / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3637, allocations: 0 / 1.361 GB, free: 15.5 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3637, allocations: 8 kB / 1.361 GB, free: 15.49 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.3639, allocations: 187.6 kB / 1.362 GB, free: 15.29 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.483e-05/0.364, allocations: 43.8 kB / 1.362 GB, free: 15.25 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.364, allocations: 3.984 kB / 1.362 GB, free: 15.24 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.802e-05/0.3641, allocations: 3.984 kB / 1.362 GB, free: 15.24 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.508e-05/0.3641, allocations: 4 kB / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.3641, allocations: 0 / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005268/0.3647, allocations: 439.1 kB / 1.362 GB, free: 14.8 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.3647, allocations: 0 / 1.362 GB, free: 14.8 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002737/0.3649, allocations: 31.94 kB / 1.362 GB, free: 14.77 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.001831/0.3668, allocations: 0.9762 MB / 1.363 GB, free: 13.91 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001692/0.3669, allocations: 27.92 kB / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3669, allocations: 0 / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.875e-05/0.367, allocations: 23.92 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.3674, allocations: 50.47 kB / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/0.3711, allocations: 2.97 MB / 1.366 GB, free: 10.77 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.3715, allocations: 0.787 MB / 1.367 GB, free: 9.953 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000124/0.3717, allocations: 51.25 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.3718, allocations: 95.41 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of SimCode: time 6.61e-07/0.3718, allocations: 0 / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03363/0.4054, allocations: 5.804 MB / 1.373 GB, free: 4.102 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.6, allocations: 5.234 kB / 1.373 GB, free: 4.098 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.534062235999954]