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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001119/0.001119, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00839/0.00839, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.353/1.353, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.646/2.646, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003394, allocations: 8.031 kB / 0.9029 GB, free: 36.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2867, allocations: 159.6 MB / 1.059 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00153/0.2882, allocations: 1.269 MB / 1.06 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003065/0.2886, allocations: 107.7 kB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.2886, allocations: 3.938 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.086e-05/0.2887, allocations: 7.938 kB / 1.06 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.291e-05/0.2887, allocations: 7.922 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.2889, allocations: 23.97 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.497e-05/0.289, allocations: 51.84 kB / 1.06 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.402e-05/0.2891, allocations: 23.98 kB / 1.06 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.41e-05/0.2892, allocations: 19.92 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.2892, allocations: 23.91 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.2892, allocations: 4 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 4.781e-05/0.2893, allocations: 15.88 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.624e-05/0.2893, allocations: 19.91 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.909e-05/0.2894, allocations: 41.58 kB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.388e-05/0.2895, allocations: 55.8 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2895, allocations: 0 / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2895, allocations: 0 / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.986e-06/0.2895, allocations: 0 / 1.06 GB, free: 3.16 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.0004514/0.29, allocations: 385 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.29, allocations: 11.97 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.434e-05/0.29, allocations: 34.75 kB / 1.061 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.2901, allocations: 8.844 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.2902, allocations: 192.1 kB / 1.061 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-06/0.2902, allocations: 4.375 kB / 1.061 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.2902, allocations: 8.375 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.2905, allocations: 102.1 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.2905, allocations: 3.938 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.2905, allocations: 0 / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2906, allocations: 0 / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.2909, allocations: 107.9 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004692/0.2914, allocations: 340.6 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.2916, allocations: 70.53 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.2918, allocations: 48.92 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.2918, allocations: 7.984 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.2918, allocations: 30.56 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 2.294e-06/0.2918, allocations: 96 / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005718/0.2924, allocations: 173.5 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.2924, allocations: 55.41 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.149e-05/0.2925, allocations: 113.7 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2925, allocations: 29.7 kB / 1.062 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.2926, allocations: 99.97 kB / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.2926, allocations: 7.906 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.2926, allocations: 9.719 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.526e-05/0.2927, allocations: 322.8 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.2929, allocations: 47.91 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.293, allocations: 43.95 kB / 1.063 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.2933, allocations: 104.7 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2934, allocations: 3.938 kB / 1.063 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003447/0.2937, allocations: 125.5 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2937, allocations: 11.98 kB / 1.063 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.2937, allocations: 4 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.2938, allocations: 0 / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.2939, allocations: 19.98 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2939, allocations: 0 / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.333e-05/0.294, allocations: 19.98 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.294, allocations: 0 / 1.063 GB, free: 440 kB / 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 7.432e-05/0.2941, allocations: 121.8 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.2941, allocations: 7.906 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003787/0.2945, allocations: 133.5 kB / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2945, allocations: 0 / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2945, allocations: 0 / 1.063 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2945, allocations: 4 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.2947, allocations: 185.6 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2947, allocations: 0 / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.2948, allocations: 23.97 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2948, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.2948, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2948, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2948, allocations: 0 / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.2952, allocations: 231.7 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.368e-05/0.2953, allocations: 85.05 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.2953, allocations: 4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.2954, allocations: 15.98 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.2954, allocations: 3.984 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.2955, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.31e-05/0.2955, allocations: 95.27 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.653e-06/0.2955, allocations: 4 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002212/0.2957, allocations: 23.81 kB / 1.064 GB, free: 15.41 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.0006274/0.2964, allocations: 0.7553 MB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003502/0.2967, allocations: 95.92 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2967, allocations: 0 / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.2969, allocations: 55.95 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.2972, allocations: 4 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.2988, allocations: 1.494 MB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.2991, allocations: 0.6926 MB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.863e-05/0.2991, allocations: 8 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.657e-05/0.2991, allocations: 19.42 kB / 1.067 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2991, allocations: 0 / 1.067 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.298/2.597, allocations: 1.503 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/2.597, allocations: 185.8 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.689/4.286, allocations: 7.125 kB / 1.068 GB, free: 10.51 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