Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Max,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007515/0.007515, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 200.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.705/2.705, allocations: 469.8 MB / 0.7425 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 76.09 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8124/0.8143, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Max): time 0.00198/0.8164, allocations: 0.7734 MB / 1.221 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.8174, allocations: 0.8585 MB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.8175, allocations: 0 / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.838e-05/0.8176, allocations: 15.86 kB / 1.222 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.8177, allocations: 11.86 kB / 1.222 GB, free: 384 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.8179, allocations: 43.95 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.818, allocations: 87.75 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.8182, allocations: 23.98 kB / 1.222 GB, free: 228 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.975e-05/0.8183, allocations: 31.86 kB / 1.222 GB, free: 196 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.985e-05/0.8184, allocations: 55.81 kB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.8184, allocations: 8 kB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.843e-05/0.8184, allocations: 12 kB / 1.222 GB, free: 120 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.8185, allocations: 19.91 kB / 1.222 GB, free: 100 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.713e-05/0.8185, allocations: 35.84 kB / 1.222 GB, free: 64 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.8187, allocations: 90.27 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.116e-06/0.8187, allocations: 4 kB / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8187, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.8187, allocations: 0 / 1.222 GB, free: 15.97 MB / 0.9512 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.0006866/0.8194, allocations: 392.1 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.8195, allocations: 16.03 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.8195, allocations: 34.75 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.8196, allocations: 8.891 kB / 1.223 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.8198, allocations: 176.3 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.8198, allocations: 8.375 kB / 1.223 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.8198, allocations: 8.125 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.8201, allocations: 105.5 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.8202, allocations: 0 / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.8202, allocations: 4 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.8202, allocations: 7.984 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003935/0.8206, allocations: 91.91 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005774/0.8212, allocations: 348.6 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006626/0.8219, allocations: 122.5 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.8221, allocations: 52.81 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.8221, allocations: 0 / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.8222, allocations: 38.56 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.8222, allocations: 7.938 kB / 1.224 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0007133/0.8229, allocations: 181.4 kB / 1.224 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.823, allocations: 55.41 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.8231, allocations: 129.7 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.8231, allocations: 29.7 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.8232, allocations: 96.09 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.8232, allocations: 23.78 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.8233, allocations: 29.64 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.8234, allocations: 318.8 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002193/0.8237, allocations: 43.95 kB / 1.224 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.8239, allocations: 47.95 kB / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.8242, allocations: 100.8 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.8243, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004424/0.8247, allocations: 133.5 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.8247, allocations: 8 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.8247, allocations: 0 / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.8248, allocations: 0 / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.8249, allocations: 27.97 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.825, allocations: 3.938 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.8251, allocations: 15.97 kB / 1.225 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.8251, allocations: 4.547 kB / 1.225 GB, free: 13.12 MB / 0.9512 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 9.736e-05/0.8252, allocations: 117.8 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.8252, allocations: 3.953 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005343/0.8258, allocations: 157.9 kB / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.8258, allocations: 0 / 1.225 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.8258, allocations: 3.938 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.8258, allocations: 0 / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.8261, allocations: 201.6 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.8261, allocations: 0 / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.8262, allocations: 27.91 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.8263, allocations: 0 / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.8263, allocations: 4 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.8263, allocations: 4.078 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.8263, allocations: 7.922 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005093/0.8268, allocations: 235.3 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.8269, allocations: 81.06 kB / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.8269, allocations: 0 / 1.226 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.8271, allocations: 19.97 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.8272, allocations: 27.91 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.8272, allocations: 3.984 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.599e-05/0.8272, allocations: 95.28 kB / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8273, allocations: 0 / 1.226 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002405/0.8275, allocations: 19.94 kB / 1.226 GB, free: 12.03 MB / 0.9512 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.0008712/0.8284, allocations: 0.7746 MB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004472/0.8288, allocations: 100 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8288, allocations: 0 / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.8291, allocations: 67.88 kB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.8294, allocations: 27.88 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.8317, allocations: 1.537 MB / 1.228 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.832, allocations: 0.6924 MB / 1.229 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.986e-05/0.8321, allocations: 12 kB / 1.229 GB, free: 8.691 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.042e-05/0.8322, allocations: 35.41 kB / 1.229 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/0.8322, allocations: 0 / 1.229 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.8571, allocations: 2.706 MB / 1.232 GB, free: 6.047 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.171/9.028, allocations: 4.531 kB / 1.232 GB, free: 6.043 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Integers_Validation_Max.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches