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.001383/0.001383, 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.001409/0.001409, allocations: 196.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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.669/2.669, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 62.69 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002773/0.2883, allocations: 1.526 MB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002831/0.2886, allocations: 115.7 kB / 1.055 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.2887, allocations: 4 kB / 1.055 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.742e-05/0.2888, allocations: 11.88 kB / 1.055 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.459e-05/0.2888, allocations: 7.938 kB / 1.055 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001442/0.289, allocations: 27.95 kB / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.263e-05/0.2891, allocations: 55.78 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.735e-05/0.2892, allocations: 20 kB / 1.055 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.513e-05/0.2892, allocations: 35.89 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.165e-05/0.2893, allocations: 27.86 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.2893, allocations: 4 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.484e-05/0.2893, allocations: 11.98 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.218e-05/0.2894, allocations: 15.98 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.2894, allocations: 19.88 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.94e-05/0.2895, allocations: 63.78 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.2895, allocations: 0 / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2895, allocations: 4 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.2895, allocations: 0 / 1.055 GB, free: 6.305 MB / 0.8106 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.0004109/0.29, allocations: 383.5 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.57e-05/0.29, allocations: 8.625 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.801e-05/0.29, allocations: 34.75 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.109e-05/0.29, allocations: 8.781 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.2902, allocations: 184.3 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-06/0.2902, allocations: 4.375 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.2902, allocations: 8.312 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002389/0.2904, allocations: 94.19 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.2905, allocations: 3.938 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.2905, allocations: 0 / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2905, allocations: 4 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003008/0.2908, allocations: 79.86 kB / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004324/0.2912, allocations: 324.7 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.2914, allocations: 62.56 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.2916, allocations: 48.91 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.2916, allocations: 0 / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.2916, allocations: 30.56 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.2917, allocations: 0 / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005155/0.2922, allocations: 149.4 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.2922, allocations: 51.41 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.288e-05/0.2923, allocations: 117.7 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.2923, allocations: 25.7 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.12e-05/0.2923, allocations: 99.98 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.2924, allocations: 7.844 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/0.2924, allocations: 21.7 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.251e-05/0.2925, allocations: 322.8 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.2927, allocations: 31.95 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.2928, allocations: 31.97 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.2931, allocations: 76.77 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2931, allocations: 4 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003319/0.2934, allocations: 101.6 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.2935, allocations: 4 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-06/0.2935, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.2935, allocations: 4 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.2936, allocations: 15.97 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.2936, allocations: 4 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.099e-05/0.2937, allocations: 15.89 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.2937, allocations: 0 / 1.057 GB, free: 3.754 MB / 0.8106 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 6.969e-05/0.2938, allocations: 119.3 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.2938, allocations: 4 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.2942, allocations: 117.8 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2942, allocations: 0 / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2942, allocations: 7.875 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2942, allocations: 4.031 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.2944, allocations: 185.6 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.2944, allocations: 0 / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.2945, allocations: 15.98 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2945, allocations: 0 / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2945, allocations: 3.984 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2945, allocations: 4 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2945, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003497/0.2949, allocations: 199.3 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.2949, allocations: 85.09 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.2949, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.2951, allocations: 15.98 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.2951, allocations: 8 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.2951, allocations: 7.984 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.278e-05/0.2952, allocations: 91.22 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2952, allocations: 3.938 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002275/0.2954, allocations: 19.78 kB / 1.058 GB, free: 2.777 MB / 0.8106 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.0006017/0.296, allocations: 0.732 MB / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003368/0.2964, allocations: 79.92 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2964, allocations: 3.938 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.2965, allocations: 39.95 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.2968, allocations: 8.75 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.2985, allocations: 1.424 MB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2987, allocations: 0.6924 MB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.786e-05/0.2988, allocations: 8 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.2988, allocations: 19.42 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2988, allocations: 0 / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.3148, allocations: 1.783 MB / 1.063 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.942, allocations: 6.719 kB / 1.063 GB, free: 13.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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