Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",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.00871/0.008715, allocations: 97.67 kB / 15.73 MB, free: 6.043 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.001997/0.001997, allocations: 195.9 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.79/2.79, allocations: 469.4 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 71.88 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2984, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002804/0.3012, allocations: 1.534 MB / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.3016, allocations: 111.7 kB / 1.221 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.3017, allocations: 4 kB / 1.221 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.3018, allocations: 15.86 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.33e-05/0.3019, allocations: 3.938 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.3021, allocations: 27.91 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.3023, allocations: 51.84 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3024, allocations: 31.97 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.396e-05/0.3025, allocations: 23.92 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.205e-05/0.3025, allocations: 27.91 kB / 1.222 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.3026, allocations: 4 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.597e-05/0.3026, allocations: 15.92 kB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.653e-05/0.3027, allocations: 19.92 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.3027, allocations: 23.88 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.3029, allocations: 59.73 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3029, allocations: 0 / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3029, allocations: 0 / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.3029, allocations: 4 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005812/0.3035, allocations: 379.2 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3036, allocations: 8.031 kB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.833e-05/0.3036, allocations: 38.73 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.639e-05/0.3037, allocations: 8.891 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.3039, allocations: 180.3 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3039, allocations: 8.359 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.3039, allocations: 16.31 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002944/0.3042, allocations: 82.2 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3042, allocations: 7.875 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3043, allocations: 4 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3043, allocations: 4 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.3046, allocations: 79.91 kB / 1.222 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.3052, allocations: 328.7 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.3054, allocations: 58.53 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.3056, allocations: 44.91 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3056, allocations: 96 / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.3056, allocations: 38.5 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3056, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005753/0.3062, allocations: 137.6 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.3063, allocations: 51.41 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.935e-05/0.3064, allocations: 113.8 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.3064, allocations: 29.69 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.634e-05/0.3064, allocations: 100 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.3065, allocations: 7.938 kB / 1.223 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.3065, allocations: 21.7 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3066, allocations: 322.8 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.3068, allocations: 35.95 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.3069, allocations: 35.91 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.3072, allocations: 76.78 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3073, allocations: 0 / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003369/0.3076, allocations: 105.6 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.3076, allocations: 4 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3076, allocations: 4 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3076, allocations: 0 / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.3078, allocations: 11.98 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3078, allocations: 4 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.194e-05/0.3079, allocations: 15.97 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.3079, allocations: 4 kB / 1.224 GB, free: 10.13 MB / 0.9825 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 7.807e-05/0.308, allocations: 118.2 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.993e-05/0.308, allocations: 7.953 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003898/0.3084, allocations: 117.8 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3084, allocations: 0 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3084, allocations: 0 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3085, allocations: 48 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.3086, allocations: 185.6 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3087, allocations: 0 / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.982e-05/0.3088, allocations: 15.98 kB / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3088, allocations: 0 / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.3088, allocations: 0 / 1.224 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3088, allocations: 3.938 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3088, allocations: 8 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003806/0.3092, allocations: 211.3 kB / 1.225 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.542e-05/0.3092, allocations: 77.11 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.3093, allocations: 7.922 kB / 1.225 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.3094, allocations: 15.98 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/0.3094, allocations: 4 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.3094, allocations: 4 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.424e-05/0.3095, allocations: 95.64 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3095, allocations: 0 / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002438/0.3097, allocations: 15.88 kB / 1.225 GB, free: 9.152 MB / 0.9825 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.0006968/0.3104, allocations: 0.7358 MB / 1.225 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003665/0.3108, allocations: 79.91 kB / 1.226 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3108, allocations: 4 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.311, allocations: 39.95 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.3113, allocations: 5.875 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.3132, allocations: 1.428 MB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.3134, allocations: 0.6885 MB / 1.228 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.908e-05/0.3135, allocations: 4 kB / 1.228 GB, free: 6.039 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.3135, allocations: 23.42 kB / 1.228 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of SimCode: time 3.7e-07/0.3135, allocations: 0 / 1.228 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.3313, allocations: 1.828 MB / 1.229 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.963, allocations: 3.938 kB / 1.229 GB, free: 4.258 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches