Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-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.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_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.004192/0.004192, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001256/0.001256, allocations: 202.1 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.83/2.83, allocations: 469.8 MB / 0.7425 GB, free: 7.367 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 71.83 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2718, allocations: 159.1 MB / 1.22 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002537/0.2744, allocations: 1.538 MB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002929/0.2747, allocations: 111.7 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.79e-05/0.2747, allocations: 4 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.94e-05/0.2748, allocations: 7.938 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.699e-05/0.2748, allocations: 11.88 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.2751, allocations: 27.95 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.718e-05/0.2752, allocations: 59.77 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.2753, allocations: 23.98 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.082e-05/0.2753, allocations: 19.92 kB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.2754, allocations: 35.91 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.2754, allocations: 4 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.04e-05/0.2755, allocations: 11.94 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.05e-05/0.2755, allocations: 15.98 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.676e-05/0.2756, allocations: 23.86 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.2757, allocations: 59.73 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2757, allocations: 0 / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2757, allocations: 4 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.2757, allocations: 0 / 1.222 GB, free: 12.38 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.0005202/0.2763, allocations: 383.2 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.2763, allocations: 8.031 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.819e-05/0.2763, allocations: 34.75 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.2764, allocations: 4.891 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.2766, allocations: 188.2 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.2766, allocations: 4.375 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.2766, allocations: 4.375 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.2769, allocations: 90.19 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.2769, allocations: 3.938 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-06/0.2769, allocations: 4 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.2769, allocations: 4 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000328/0.2772, allocations: 79.86 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.2778, allocations: 332.7 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.278, allocations: 66.5 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.2782, allocations: 36.92 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.2782, allocations: 0 / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2782, allocations: 34.56 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.2782, allocations: 0 / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005787/0.2788, allocations: 145.5 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.2789, allocations: 51.41 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.279, allocations: 125.7 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.279, allocations: 25.7 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.625e-05/0.2791, allocations: 100 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.2791, allocations: 7.938 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.893e-05/0.2791, allocations: 17.72 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.2793, allocations: 314.8 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.2794, allocations: 43.95 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.2796, allocations: 35.95 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.2799, allocations: 72.78 kB / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2799, allocations: 0 / 1.224 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003552/0.2803, allocations: 105.6 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2803, allocations: 4 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.2803, allocations: 0 / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.2803, allocations: 3.938 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.2805, allocations: 19.97 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2805, allocations: 0 / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.061e-05/0.2806, allocations: 11.98 kB / 1.224 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2806, allocations: 8 kB / 1.224 GB, free: 9.824 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 8.977e-05/0.2807, allocations: 121.8 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.2807, allocations: 7.953 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003961/0.2811, allocations: 109.5 kB / 1.225 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2811, allocations: 0 / 1.225 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2811, allocations: 0 / 1.225 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.2811, allocations: 4 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.2814, allocations: 181.6 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2814, allocations: 0 / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.2815, allocations: 23.91 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2815, allocations: 0 / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.2815, allocations: 0 / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2815, allocations: 0 / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2815, allocations: 0 / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004068/0.2819, allocations: 207.4 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.555e-05/0.282, allocations: 85.05 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.282, allocations: 0 / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.2821, allocations: 11.98 kB / 1.225 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.2821, allocations: 11.92 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.2822, allocations: 4 kB / 1.225 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.048e-05/0.2822, allocations: 95.27 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2822, allocations: 0 / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000236/0.2825, allocations: 15.88 kB / 1.225 GB, free: 8.855 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.0007278/0.2832, allocations: 0.7367 MB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003647/0.2836, allocations: 79.95 kB / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2836, allocations: 0 / 1.226 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.2838, allocations: 47.89 kB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.2841, allocations: 5.875 kB / 1.226 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.286, allocations: 1.429 MB / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.2863, allocations: 0.6885 MB / 1.228 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.369e-05/0.2863, allocations: 7.984 kB / 1.228 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.2864, allocations: 19.44 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.2864, allocations: 0 / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02118/0.3076, allocations: 1.821 MB / 1.23 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.927, allocations: 12 kB / 1.23 GB, free: 3.957 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches