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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001215/0.001215, allocations: 108 kB / 15.61 MB, free: 152 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.001259/0.001259, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.351/1.351, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.742 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001236, allocations: 66.16 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2666, allocations: 159.1 MB / 1.064 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00296/0.2696, allocations: 1.532 MB / 1.065 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003977/0.2701, allocations: 111.7 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.532e-05/0.2702, allocations: 4 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.2703, allocations: 7.922 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.032e-05/0.2704, allocations: 11.88 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.2707, allocations: 27.95 kB / 1.065 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.2708, allocations: 55.78 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.2709, allocations: 27.98 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.248e-05/0.271, allocations: 23.92 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.2711, allocations: 27.91 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.2711, allocations: 7.938 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.2712, allocations: 8 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.932e-05/0.2713, allocations: 19.97 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.2713, allocations: 23.86 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.2715, allocations: 55.81 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2715, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2715, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2715, allocations: 0 / 1.066 GB, free: 12.62 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.0005477/0.2721, allocations: 383.5 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2721, allocations: 12.03 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.2721, allocations: 30.75 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.2722, allocations: 12.83 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.2724, allocations: 192.1 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-06/0.2724, allocations: 384 / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.2724, allocations: 8.375 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.2727, allocations: 90.12 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.2727, allocations: 3.938 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.2727, allocations: 8 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2728, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.2731, allocations: 79.86 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/0.2736, allocations: 326.4 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.2738, allocations: 62.56 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.274, allocations: 44.92 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.2741, allocations: 4 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.2741, allocations: 30.56 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.2741, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005529/0.2746, allocations: 141.5 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.2747, allocations: 55.41 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.879e-05/0.2748, allocations: 109.8 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.2748, allocations: 29.7 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.2748, allocations: 99.92 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.2749, allocations: 11.89 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.2749, allocations: 17.66 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.275, allocations: 322.8 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.2752, allocations: 35.95 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.2753, allocations: 31.95 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.2756, allocations: 76.78 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2756, allocations: 0 / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003379/0.276, allocations: 101.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.276, allocations: 10.03 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.276, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.276, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.2762, allocations: 27.91 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2762, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.748e-05/0.2763, allocations: 7.984 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.2763, allocations: 4 kB / 1.068 GB, free: 10.06 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.957e-05/0.2764, allocations: 117.8 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.2764, allocations: 3.984 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003982/0.2768, allocations: 113.8 kB / 1.068 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2768, allocations: 4.031 kB / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2768, allocations: 0 / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2769, allocations: 0 / 1.068 GB, free: 9.809 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.277, allocations: 181.6 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2771, allocations: 4 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.731e-05/0.2772, allocations: 19.91 kB / 1.068 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2772, allocations: 4 kB / 1.068 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.2772, allocations: 7.938 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2772, allocations: 0 / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2772, allocations: 0 / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.2776, allocations: 203.3 kB / 1.068 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.474e-05/0.2776, allocations: 85.02 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.2776, allocations: 0 / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.2778, allocations: 11.98 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.2778, allocations: 7.984 kB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.2778, allocations: 4 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.137e-05/0.2779, allocations: 99.2 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2779, allocations: 0 / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002365/0.2781, allocations: 15.88 kB / 1.069 GB, free: 9.094 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.0007185/0.2789, allocations: 0.7324 MB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003556/0.2792, allocations: 79.92 kB / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2792, allocations: 0 / 1.069 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.2794, allocations: 43.89 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.2797, allocations: 4 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.2817, allocations: 1.431 MB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.2819, allocations: 0.7001 MB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.401e-05/0.282, allocations: 4 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.282, allocations: 19.42 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.282, allocations: 0 / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.2994, allocations: 1.791 MB / 1.073 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.459, allocations: 13.7 kB / 1.073 GB, free: 4.215 MB / 0.8262 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