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.001315/0.001315, 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.001406/0.001406, allocations: 198 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.288/1.288, 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 10.1.1-maint.10.0.x/package.mo): time 2.399/2.399, allocations: 437.1 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.91 kB / 0.8693 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5818/0.5831, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003405/0.5866, allocations: 1.534 MB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003281/0.5869, allocations: 108.6 kB / 1.019 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.812e-05/0.587, allocations: 3.938 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.5871, allocations: 11.92 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.008e-05/0.5872, allocations: 7.922 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.5875, allocations: 31.91 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.298e-05/0.5876, allocations: 55.84 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.5877, allocations: 23.98 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.671e-05/0.5878, allocations: 23.92 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.862e-05/0.5878, allocations: 27.89 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.5879, allocations: 11.94 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.971e-05/0.5879, allocations: 12 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.103e-05/0.588, allocations: 15.92 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.588, allocations: 27.86 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.5882, allocations: 59.8 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5882, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.293e-06/0.5882, allocations: 0 / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.5882, allocations: 3.938 kB / 1.019 GB, free: 0.4961 MB / 0.7637 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.0005554/0.5888, allocations: 389.4 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.5888, allocations: 8.031 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.504e-05/0.5888, allocations: 34.75 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.5889, allocations: 8.938 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.5891, allocations: 188.2 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.5891, allocations: 384 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.5891, allocations: 8.359 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.5894, allocations: 90.14 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.5894, allocations: 3.938 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.5894, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.5894, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.5898, allocations: 83.92 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005364/0.5903, allocations: 328.6 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.5905, allocations: 58.53 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.5907, allocations: 40.92 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.5907, allocations: 4 kB / 1.021 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.5908, allocations: 38.59 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.5908, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005594/0.5913, allocations: 137.5 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.5914, allocations: 51.41 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.5915, allocations: 118.2 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.5915, allocations: 29.7 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.226e-05/0.5915, allocations: 92.12 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.5916, allocations: 15.75 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.5916, allocations: 13.72 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.5917, allocations: 318.8 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.5919, allocations: 39.89 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.592, allocations: 39.95 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.5923, allocations: 72.72 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5923, allocations: 0 / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003247/0.5926, allocations: 105.6 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.5926, allocations: 4 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.5927, allocations: 3.984 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.5927, allocations: 0 / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.5928, allocations: 15.98 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.5928, allocations: 3.938 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.49e-05/0.5929, allocations: 11.98 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.5929, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 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.556e-05/0.593, allocations: 125.8 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/0.593, allocations: 7.906 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003557/0.5934, allocations: 109.8 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.5934, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5934, allocations: 4.047 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5934, allocations: 3.984 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.5936, allocations: 185.6 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5936, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.558e-05/0.5937, allocations: 23.97 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.5937, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.5937, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5937, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5937, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003553/0.5941, allocations: 211.2 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.425e-05/0.5941, allocations: 77.11 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.5942, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.5943, allocations: 7.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.5943, allocations: 7.984 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.5943, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.485e-05/0.5944, allocations: 99.31 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.343e-06/0.5944, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002249/0.5946, allocations: 23.88 kB / 1.022 GB, free: 12.98 MB / 0.7794 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.0006601/0.5953, allocations: 0.7396 MB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.5956, allocations: 71.92 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5956, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.5958, allocations: 43.95 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.5961, allocations: 9.719 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.5978, allocations: 1.42 MB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.598, allocations: 0.6885 MB / 1.025 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.978e-05/0.598, allocations: 7.984 kB / 1.025 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/0.5981, allocations: 19.44 kB / 1.025 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.5981, allocations: 3.938 kB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.6183, allocations: 1.787 MB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.249/7.867, allocations: 4 kB / 1.027 GB, free: 8.113 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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