Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.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.001767/0.001767, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002156/0.002156, allocations: 217 kB / 22.25 MB, free: 4.855 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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.801 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.49/3.49, 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max",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.002068/0.002068, allocations: 68.28 kB / 1.186 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3907, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002568/0.3933, allocations: 0.7562 MB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3946, allocations: 0.8899 MB / 1.365 GB, free: 12.45 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.503e-05/0.3947, allocations: 0 / 1.365 GB, free: 12.45 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.45e-05/0.3947, allocations: 3.938 kB / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.3948, allocations: 19.86 kB / 1.365 GB, free: 12.42 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.395, allocations: 43.89 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001298/0.3952, allocations: 75.89 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3953, allocations: 20.27 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3954, allocations: 43.83 kB / 1.365 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.246e-05/0.3955, allocations: 47.77 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.3955, allocations: 8 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.991e-05/0.3955, allocations: 8 kB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.388e-05/0.3956, allocations: 23.91 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.38e-05/0.3956, allocations: 23.86 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.3958, allocations: 91.67 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3958, allocations: 3.984 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3958, allocations: 0 / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.3958, allocations: 0 / 1.365 GB, free: 12.04 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006544/0.3964, allocations: 321.9 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3965, allocations: 8.031 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.197e-05/0.3965, allocations: 42.73 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.3966, allocations: 12.89 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.3967, allocations: 118.4 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.212e-05/0.3967, allocations: 12.38 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.3968, allocations: 8.125 kB / 1.366 GB, free: 11.46 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.3971, allocations: 107.7 kB / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3971, allocations: 0 / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3971, allocations: 0 / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3971, allocations: 0 / 1.366 GB, free: 11.36 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003828/0.3975, allocations: 99.91 kB / 1.366 GB, free: 11.26 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005681/0.3981, allocations: 295.8 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006179/0.3987, allocations: 114.6 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.3989, allocations: 52.8 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.3989, allocations: 7.938 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.3989, allocations: 38.56 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.3989, allocations: 0 / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0006879/0.3996, allocations: 181.5 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.3997, allocations: 51.41 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3998, allocations: 125.8 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.3998, allocations: 25.7 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.3999, allocations: 104.1 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.814e-05/0.3999, allocations: 19.8 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.4, allocations: 21.7 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4001, allocations: 322.8 kB / 1.367 GB, free: 9.809 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.4003, allocations: 43.95 kB / 1.367 GB, free: 9.766 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.4005, allocations: 51.88 kB / 1.367 GB, free: 9.715 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/0.4009, allocations: 97.25 kB / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4009, allocations: 0 / 1.368 GB, free: 9.617 MB / 1.061 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004301/0.4013, allocations: 149.5 kB / 1.368 GB, free: 9.465 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.4013, allocations: 4 kB / 1.368 GB, free: 9.461 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4013, allocations: 4 kB / 1.368 GB, free: 9.457 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.4013, allocations: 4 kB / 1.368 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.4015, allocations: 23.97 kB / 1.368 GB, free: 9.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.4015, allocations: 7.875 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.4016, allocations: 11.98 kB / 1.368 GB, free: 9.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.4016, allocations: 4 kB / 1.368 GB, free: 9.406 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: 3 (reaToInt1.y,reaToInt.y,max1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000106/0.4017, allocations: 118.9 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.4018, allocations: 7.953 kB / 1.368 GB, free: 9.273 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.4022, allocations: 146 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.4022, allocations: 4 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4023, allocations: 7.875 kB / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4023, allocations: 0 / 1.368 GB, free: 9.109 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.4025, allocations: 164.6 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4025, allocations: 0 / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.4026, allocations: 27.91 kB / 1.368 GB, free: 8.879 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.4026, allocations: 4 kB / 1.368 GB, free: 8.875 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.4027, allocations: 4 kB / 1.368 GB, free: 8.871 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.4027, allocations: 4 kB / 1.368 GB, free: 8.867 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4027, allocations: 3.938 kB / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004909/0.4031, allocations: 231.4 kB / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/0.4032, allocations: 3.953 kB / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.4032, allocations: 4 kB / 1.368 GB, free: 8.613 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.4033, allocations: 23.97 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.4034, allocations: 27.91 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.4034, allocations: 0 / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.943e-05/0.4035, allocations: 95.27 kB / 1.369 GB, free: 8.469 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4035, allocations: 3.938 kB / 1.369 GB, free: 8.465 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002341/0.4037, allocations: 16 kB / 1.369 GB, free: 8.449 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: 3 (max1.y,reaToInt.y,reaToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0008527/0.4046, allocations: 0.7631 MB / 1.369 GB, free: 7.66 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00043/0.405, allocations: 111.8 kB / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.405, allocations: 0 / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.4052, allocations: 59.95 kB / 1.37 GB, free: 7.492 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.4055, allocations: 15.92 kB / 1.37 GB, free: 7.477 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.4079, allocations: 1.53 MB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.349e-05/0.408, allocations: 71.33 kB / 1.371 GB, free: 5.777 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.948e-05/0.408, allocations: 19.92 kB / 1.371 GB, free: 5.758 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.611e-05/0.4081, allocations: 27.42 kB / 1.371 GB, free: 5.73 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.4081, allocations: 0 / 1.371 GB, free: 5.73 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03367/0.4418, allocations: 3.356 MB / 1.374 GB, free: 2.512 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.85, allocations: 14.53 kB / 1.374 GB, free: 2.504 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable max1.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! Error: Could not read variable max1.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! Error: Could not read variable max1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.087326858192682]