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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001086/0.001086, 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.006995/0.006995, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.342/1.342, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 437.8 MB / 0.7121 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003368, allocations: 8 kB / 0.8729 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5876/0.5879, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001909/0.5899, allocations: 1.27 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003569/0.5903, allocations: 108.5 kB / 1.024 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.117e-05/0.5903, allocations: 3.938 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.5905, allocations: 3.938 kB / 1.024 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.543e-05/0.5905, allocations: 11.92 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.5907, allocations: 27.97 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.5908, allocations: 51.78 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.591, allocations: 27.98 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.06e-05/0.591, allocations: 19.92 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.017e-05/0.5911, allocations: 19.92 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.5911, allocations: 4 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.683e-05/0.5912, allocations: 15.91 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.067e-05/0.5912, allocations: 8 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.037e-05/0.5913, allocations: 45.56 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.5914, allocations: 55.8 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5914, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.794e-06/0.5914, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.5915, allocations: 0 / 1.025 GB, free: 14.18 MB / 0.7794 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.0005243/0.592, allocations: 389.5 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.592, allocations: 12.03 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.758e-05/0.5921, allocations: 34.75 kB / 1.025 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.028e-05/0.5921, allocations: 4.844 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.5923, allocations: 188.2 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.5923, allocations: 8.375 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.5923, allocations: 4.312 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.5926, allocations: 106.2 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.5927, allocations: 3.938 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.5927, allocations: 3.984 kB / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.5927, allocations: 0 / 1.025 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003427/0.593, allocations: 99.92 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.5936, allocations: 344.6 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.5939, allocations: 66.55 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.594, allocations: 48.91 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.5941, allocations: 4.094 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.5941, allocations: 38.5 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.422e-06/0.5941, allocations: 0 / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006169/0.5947, allocations: 169.6 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.5948, allocations: 55.39 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.5949, allocations: 117.8 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.5949, allocations: 33.7 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.5949, allocations: 92.05 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.595, allocations: 11.83 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.595, allocations: 13.72 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.5951, allocations: 322.7 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/0.5953, allocations: 47.95 kB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.5954, allocations: 43.91 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.5958, allocations: 96.77 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5958, allocations: 4 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00037/0.5961, allocations: 125.5 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.5962, allocations: 4 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.5962, allocations: 8 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.5962, allocations: 4 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.5963, allocations: 19.97 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.5963, allocations: 4 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.369e-05/0.5964, allocations: 15.98 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.5965, allocations: 4 kB / 1.027 GB, free: 11.45 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 8.223e-05/0.5965, allocations: 122.2 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.5966, allocations: 0 / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004024/0.597, allocations: 137.5 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.597, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.597, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.597, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.5972, allocations: 189.5 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.5972, allocations: 0 / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.5973, allocations: 19.98 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.5973, allocations: 4 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.5973, allocations: 4.359 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.5973, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5973, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.5977, allocations: 227.3 kB / 1.028 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-05/0.5978, allocations: 85 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.5978, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.5979, allocations: 15.98 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.598, allocations: 7.984 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.598, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.305e-05/0.598, allocations: 87.28 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.598, allocations: 3.938 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002401/0.5983, allocations: 19.94 kB / 1.028 GB, free: 10.44 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.000662/0.5989, allocations: 0.7669 MB / 1.029 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003638/0.5993, allocations: 95.92 kB / 1.029 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5993, allocations: 0 / 1.029 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.5995, allocations: 55.95 kB / 1.029 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.5998, allocations: 8.438 kB / 1.029 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.6016, allocations: 1.494 MB / 1.03 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.6018, allocations: 0.6887 MB / 1.031 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.5e-05/0.6019, allocations: 7.984 kB / 1.031 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.826e-05/0.6019, allocations: 15.44 kB / 1.031 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6019, allocations: 0 / 1.031 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01055/0.6125, allocations: 1.484 MB / 1.033 GB, free: 5.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/0.6127, allocations: 192.9 kB / 1.033 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/2.273, allocations: 0 / 1.033 GB, free: 5.543 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