Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Add,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Add",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Add,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Add",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.008993/0.008994, allocations: 95.05 kB / 15.73 MB, free: 6.039 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.002149/0.002149, allocations: 201.6 kB / 16.68 MB, free: 5.969 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 71.89 kB / 0.9504 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3089, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Add): time 0.00197/0.311, allocations: 0.7638 MB / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.312, allocations: 0.8662 MB / 1.089 GB, free: 384 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.875e-05/0.3121, allocations: 4 kB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.42e-05/0.3121, allocations: 11.86 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.876e-05/0.3122, allocations: 3.938 kB / 1.089 GB, free: 364 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.3124, allocations: 47.88 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.3125, allocations: 75.89 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3126, allocations: 31.97 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.219e-05/0.3127, allocations: 39.8 kB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.976e-05/0.3128, allocations: 47.77 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.111e-05/0.3128, allocations: 8 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.419e-05/0.3129, allocations: 8 kB / 1.089 GB, free: 104 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.3129, allocations: 27.89 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.834e-05/0.313, allocations: 35.8 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3131, allocations: 87.94 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3131, allocations: 4 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3131, allocations: 0 / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3131, allocations: 0 / 1.09 GB, free: 15.95 MB / 0.8575 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.0006724/0.3138, allocations: 393.2 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3139, allocations: 8.031 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.476e-05/0.3139, allocations: 38.75 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.314, allocations: 8.891 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.3141, allocations: 184.2 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3141, allocations: 12.38 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.3141, allocations: 8.125 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.3145, allocations: 97.61 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.3145, allocations: 4 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.3145, allocations: 7.938 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3145, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00039/0.3149, allocations: 99.84 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005298/0.3154, allocations: 344.6 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.3161, allocations: 118.5 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.3163, allocations: 64.81 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3164, allocations: 0 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.3164, allocations: 34.56 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3164, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0007025/0.3171, allocations: 189.5 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.3172, allocations: 51.41 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.42e-05/0.3173, allocations: 121.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.3173, allocations: 33.62 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.043e-05/0.3174, allocations: 96.09 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.3174, allocations: 15.84 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.3174, allocations: 21.7 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3176, allocations: 326.8 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3178, allocations: 43.95 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001824/0.318, allocations: 43.95 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.3183, allocations: 96.78 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3184, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004391/0.3188, allocations: 141.5 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3188, allocations: 5.719 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3188, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3189, allocations: 3.938 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.3191, allocations: 31.91 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3191, allocations: 3.938 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.3192, allocations: 19.92 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.3192, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 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,add1.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.0001023/0.3193, allocations: 117.8 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.3194, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.203e-05/0.3194, allocations: 12.38 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3194, allocations: 4 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3194, allocations: 3.938 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3194, allocations: 3.984 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.3197, allocations: 197.6 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3197, allocations: 7.984 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.3199, allocations: 23.97 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3199, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3199, allocations: 3.984 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3199, allocations: 4 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3199, allocations: 7.875 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.3204, allocations: 240 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.3205, allocations: 85 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.3205, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.3207, allocations: 11.98 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.013e-05/0.3208, allocations: 31.91 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.3208, allocations: 0 / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.03e-05/0.3208, allocations: 99.27 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.3208, allocations: 0 / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002511/0.3211, allocations: 15.95 kB / 1.093 GB, free: 12.15 MB / 0.8575 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 (add1.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.0008289/0.3219, allocations: 0.7632 MB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004529/0.3224, allocations: 107.9 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3224, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.3226, allocations: 59.89 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.323, allocations: 23.91 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.3253, allocations: 1.521 MB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3256, allocations: 0.6926 MB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.768e-05/0.3257, allocations: 15.73 kB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.233e-05/0.3258, allocations: 35.36 kB / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of SimCode: time 5.91e-07/0.3258, allocations: 3.938 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02026/0.3461, allocations: 2.706 MB / 1.099 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.421, allocations: 0 / 1.099 GB, free: 6.188 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Add.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Add.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Add.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches