Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_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.6 kB / 15.73 MB, free: 76 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.001978/0.001978, allocations: 190.4 kB / 16.66 MB, free: 6.59 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.795/2.795, allocations: 437.1 MB / 0.7105 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 75.81 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2816, allocations: 151.6 MB / 1.166 GB, free: 7.348 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00317/0.2848, allocations: 1.535 MB / 1.168 GB, free: 5.797 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003784/0.2852, allocations: 116.5 kB / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.627e-05/0.2853, allocations: 0 / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.2854, allocations: 11.88 kB / 1.168 GB, free: 5.668 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.351e-05/0.2854, allocations: 11.92 kB / 1.168 GB, free: 5.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.2857, allocations: 27.91 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.2858, allocations: 47.89 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.286, allocations: 31.98 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.286, allocations: 19.92 kB / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.2861, allocations: 31.84 kB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.2861, allocations: 4 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.2862, allocations: 8 kB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.141e-05/0.2863, allocations: 23.92 kB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.908e-05/0.2863, allocations: 31.84 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.2865, allocations: 59.97 kB / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2865, allocations: 0 / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2865, allocations: 0 / 1.168 GB, free: 5.375 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.2865, allocations: 0 / 1.168 GB, free: 5.375 MB / 0.92 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.000579/0.2871, allocations: 383.1 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2872, allocations: 12.03 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.2872, allocations: 34.75 kB / 1.168 GB, free: 4.895 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.2873, allocations: 12.89 kB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.2875, allocations: 184.2 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.2875, allocations: 4.375 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.2875, allocations: 4.375 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.2878, allocations: 90.14 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2879, allocations: 3.938 kB / 1.169 GB, free: 4.559 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.2879, allocations: 3.938 kB / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2879, allocations: 0 / 1.169 GB, free: 4.555 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003278/0.2882, allocations: 83.91 kB / 1.169 GB, free: 4.473 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005682/0.2888, allocations: 332.6 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.289, allocations: 62.53 kB / 1.169 GB, free: 4.027 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.2892, allocations: 36.92 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.2892, allocations: 4 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.2893, allocations: 38.64 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.2893, allocations: 3.938 kB / 1.169 GB, free: 3.934 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0005675/0.2898, allocations: 137.6 kB / 1.169 GB, free: 3.793 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.2899, allocations: 51.41 kB / 1.169 GB, free: 3.73 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.734e-05/0.29, allocations: 117.8 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.29, allocations: 29.7 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.29, allocations: 96.08 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.2901, allocations: 7.953 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.2901, allocations: 13.72 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2902, allocations: 322.8 kB / 1.17 GB, free: 3.121 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.2904, allocations: 31.97 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.2905, allocations: 31.95 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.2908, allocations: 84.72 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2908, allocations: 0 / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003424/0.2912, allocations: 97.86 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2912, allocations: 15.98 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.2912, allocations: 0 / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.2912, allocations: 7.969 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2914, allocations: 15.98 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.2914, allocations: 0 / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.264e-05/0.2915, allocations: 11.92 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.2915, allocations: 4 kB / 1.17 GB, free: 2.816 MB / 0.92 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.04e-05/0.2916, allocations: 121.8 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.2916, allocations: 7.953 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.292, allocations: 117.5 kB / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2921, allocations: 0 / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2921, allocations: 0 / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2921, allocations: 0 / 1.171 GB, free: 2.551 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.2923, allocations: 181.6 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2923, allocations: 0 / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.942e-05/0.2924, allocations: 19.97 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2924, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.2924, allocations: 4 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2924, allocations: 0 / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2924, allocations: 3.938 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.2928, allocations: 207.3 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.2929, allocations: 81.06 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.2929, allocations: 0 / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.293, allocations: 11.98 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.2931, allocations: 11.98 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.2931, allocations: 4 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.843e-05/0.2932, allocations: 91.27 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2932, allocations: 0 / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002603/0.2934, allocations: 15.94 kB / 1.171 GB, free: 1.848 MB / 0.92 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.0007301/0.2942, allocations: 0.7358 MB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.2946, allocations: 79.92 kB / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2946, allocations: 0 / 1.172 GB, free: 1.008 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001593/0.2947, allocations: 39.95 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.2951, allocations: 7.938 kB / 1.172 GB, free: 0.9609 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.2969, allocations: 1.428 MB / 1.173 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.2972, allocations: 0.6923 MB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.72e-05/0.2972, allocations: 12.36 kB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.2973, allocations: 15.44 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.2973, allocations: 0 / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.3151, allocations: 1.82 MB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.762/8.077, allocations: 6.281 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches