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.001705/0.001705, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.472/1.472, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.82/2.82, allocations: 469.8 MB / 0.7424 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 73.08 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2619, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002883/0.2648, allocations: 1.533 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003177/0.2651, allocations: 113.5 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.786e-05/0.2652, allocations: 4 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.2653, allocations: 3.938 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.274e-05/0.2653, allocations: 15.84 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.2656, allocations: 23.97 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.456e-05/0.2657, allocations: 59.78 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.2658, allocations: 23.98 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.919e-05/0.2658, allocations: 27.92 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.48e-05/0.2659, allocations: 31.84 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.2659, allocations: 4 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.573e-05/0.266, allocations: 11.98 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.266, allocations: 11.98 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.358e-05/0.2661, allocations: 23.88 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.2662, allocations: 55.8 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2662, allocations: 4 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2662, allocations: 4 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.036e-06/0.2662, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 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.0005523/0.2668, allocations: 379.5 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2668, allocations: 8.031 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.2669, allocations: 38.75 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.2669, allocations: 8.844 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.2671, allocations: 188.1 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.2671, allocations: 8.375 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.2672, allocations: 384 / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.2674, allocations: 94.12 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2675, allocations: 3.938 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.2675, allocations: 0 / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.2675, allocations: 4 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.2678, allocations: 83.86 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005402/0.2684, allocations: 324.8 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.2686, allocations: 58.58 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.2688, allocations: 44.91 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.2688, allocations: 3.984 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.2688, allocations: 30.56 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2688, allocations: 4 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005996/0.2694, allocations: 137.5 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.2695, allocations: 51.41 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.2696, allocations: 121.8 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2696, allocations: 25.7 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.2697, allocations: 95.98 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.183e-05/0.2697, allocations: 19.83 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.2698, allocations: 13.72 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2699, allocations: 322.8 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.2701, allocations: 35.95 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.2702, allocations: 31.97 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.2705, allocations: 76.77 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2705, allocations: 0 / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003457/0.2709, allocations: 105.5 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.2709, allocations: 5.719 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2709, allocations: 0 / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.2709, allocations: 8 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.2711, allocations: 19.91 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.2711, allocations: 0 / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.923e-05/0.2712, allocations: 11.98 kB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.2712, allocations: 0 / 1.068 GB, free: 9.652 MB / 0.8262 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.551e-05/0.2713, allocations: 117.8 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.2713, allocations: 4 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000384/0.2717, allocations: 117.5 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2717, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2717, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.2717, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.2719, allocations: 181.5 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2719, allocations: 0 / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.272, allocations: 31.91 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.272, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.2721, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2721, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2721, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.2725, allocations: 203.3 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.893e-05/0.2725, allocations: 89.44 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.2725, allocations: 0 / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.2727, allocations: 11.98 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.2727, allocations: 3.984 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.2727, allocations: 4 kB / 1.069 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.758e-05/0.2728, allocations: 95.59 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2728, allocations: 0 / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002309/0.273, allocations: 19.88 kB / 1.069 GB, free: 8.688 MB / 0.8262 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.0007008/0.2737, allocations: 0.7397 MB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003539/0.2741, allocations: 75.92 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2741, allocations: 0 / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.2743, allocations: 47.89 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.2745, allocations: 8 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.2764, allocations: 1.437 MB / 1.071 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.2767, allocations: 0.7001 MB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.9e-05/0.2767, allocations: 4 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.2768, allocations: 15.42 kB / 1.072 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2768, allocations: 0 / 1.072 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07101/0.3478, allocations: 1.777 MB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/8.005, allocations: 64 / 1.074 GB, free: 3.812 MB / 0.8262 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