Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001431/0.001431, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001489/0.001489, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.129 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.291/3.291, allocations: 0.49 GB / 0.7916 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_12_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.003065/0.003065, allocations: 67.53 kB / 1.149 GB, free: 26.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3826, allocations: 176.1 MB / 1.321 GB, free: 3.312 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.002258/0.3849, allocations: 0.7814 MB / 1.322 GB, free: 2.539 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3861, allocations: 0.8977 MB / 1.322 GB, free: 1.629 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.455e-05/0.3861, allocations: 0 / 1.322 GB, free: 1.629 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.3862, allocations: 7.875 kB / 1.322 GB, free: 1.621 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.269e-05/0.3863, allocations: 11.88 kB / 1.322 GB, free: 1.609 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.3864, allocations: 43.88 kB / 1.323 GB, free: 1.566 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.3866, allocations: 83.77 kB / 1.323 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.3867, allocations: 31.97 kB / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.021e-05/0.3868, allocations: 35.91 kB / 1.323 GB, free: 1.418 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.609e-05/0.3869, allocations: 51.81 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.448e-05/0.3869, allocations: 8 kB / 1.323 GB, free: 1.359 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.3869, allocations: 8 kB / 1.323 GB, free: 1.352 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.387, allocations: 15.92 kB / 1.323 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.095e-05/0.387, allocations: 35.8 kB / 1.323 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.3872, allocations: 91.88 kB / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3872, allocations: 0 / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3872, allocations: 0 / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.3872, allocations: 0 / 1.323 GB, free: 1.211 MB / 1.014 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.0006735/0.3879, allocations: 399.1 kB / 1.323 GB, free: 0.7734 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.3879, allocations: 15.98 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.3879, allocations: 34.75 kB / 1.323 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.388, allocations: 12.88 kB / 1.323 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.3882, allocations: 184.2 kB / 1.323 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.3882, allocations: 4.375 kB / 1.323 GB, free: 492 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.3882, allocations: 8.125 kB / 1.323 GB, free: 484 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.3885, allocations: 110 kB / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.3885, allocations: 0 / 1.324 GB, free: 368 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.3886, allocations: 4 kB / 1.324 GB, free: 364 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3886, allocations: 0 / 1.324 GB, free: 364 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.389, allocations: 95.89 kB / 1.324 GB, free: 268 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006268/0.3896, allocations: 348.6 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.3902, allocations: 110.6 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.3905, allocations: 60.78 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.068e-05/0.3905, allocations: 11.98 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.3905, allocations: 30.56 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.3905, allocations: 0 / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0007244/0.3912, allocations: 181.5 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3913, allocations: 55.41 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.3914, allocations: 125.8 kB / 1.325 GB, free: 15.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3914, allocations: 29.7 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.3915, allocations: 96.08 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.3915, allocations: 23.8 kB / 1.325 GB, free: 15.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/0.3916, allocations: 21.7 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3918, allocations: 314.8 kB / 1.325 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.3919, allocations: 51.95 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.3921, allocations: 47.94 kB / 1.325 GB, free: 14.66 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003668/0.3925, allocations: 92.77 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3925, allocations: 3.938 kB / 1.325 GB, free: 14.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004376/0.3929, allocations: 141.5 kB / 1.325 GB, free: 14.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.393, allocations: 4 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.393, allocations: 7.922 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.393, allocations: 0 / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.3932, allocations: 23.97 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3932, allocations: 7.938 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.3933, allocations: 23.94 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.3933, allocations: 0 / 1.325 GB, free: 14.35 MB / 1.029 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.0001237/0.3934, allocations: 123.6 kB / 1.326 GB, free: 14.22 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.3935, allocations: 4 kB / 1.326 GB, free: 14.22 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005253/0.394, allocations: 153.8 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.394, allocations: 0 / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.394, allocations: 3.938 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.394, allocations: 4 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002595/0.3943, allocations: 197.6 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3943, allocations: 0 / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.3944, allocations: 23.97 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3944, allocations: 0 / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3944, allocations: 8 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.3944, allocations: 7.984 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3944, allocations: 3.938 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005154/0.395, allocations: 232 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.395, allocations: 85.05 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.3951, allocations: 0 / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3952, allocations: 19.98 kB / 1.326 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/0.3953, allocations: 23.91 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.3953, allocations: 4 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.074e-05/0.3954, allocations: 91.27 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3954, allocations: 0 / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002359/0.3956, allocations: 15.95 kB / 1.326 GB, free: 13.27 MB / 1.029 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.0009146/0.3965, allocations: 0.7749 MB / 1.327 GB, free: 12.47 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004664/0.397, allocations: 112 kB / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.397, allocations: 0 / 1.327 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.3972, allocations: 59.89 kB / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.3976, allocations: 13.8 kB / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.3998, allocations: 1.536 MB / 1.329 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.4002, allocations: 0.6924 MB / 1.329 GB, free: 9.949 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.127e-05/0.4002, allocations: 11.98 kB / 1.329 GB, free: 9.938 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.154e-05/0.4003, allocations: 31.42 kB / 1.33 GB, free: 9.906 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.4003, allocations: 0 / 1.33 GB, free: 9.906 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.4275, allocations: 2.709 MB / 1.332 GB, free: 7.293 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.485, allocations: 14.38 kB / 1.332 GB, free: 7.281 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! Error: Could not read variable max1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! Error: Could not read variable max1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv. Warning: Get data of variable max1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.465992886107415]