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.005422/0.005422, allocations: 100.2 kB / 15.73 MB, free: 6.004 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.001655/0.001655, allocations: 193 kB / 16.67 MB, free: 5.93 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.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.484/2.484, allocations: 437.1 MB / 0.7105 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 67.83 kB / 1.018 GB, free: 9.863 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7463/0.7482, allocations: 151.6 MB / 1.166 GB, free: 3.734 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002961/0.7512, allocations: 1.535 MB / 1.168 GB, free: 2.191 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003521/0.7516, allocations: 116.5 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.7516, allocations: 0 / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.7517, allocations: 3.938 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.749e-05/0.7518, allocations: 11.88 kB / 1.168 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.752, allocations: 27.97 kB / 1.168 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.7522, allocations: 59.77 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.7523, allocations: 31.97 kB / 1.168 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.442e-05/0.7524, allocations: 23.92 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.837e-05/0.7524, allocations: 27.91 kB / 1.168 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.7525, allocations: 4 kB / 1.168 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.652e-05/0.7525, allocations: 8 kB / 1.168 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.7526, allocations: 23.92 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.005e-05/0.7526, allocations: 23.88 kB / 1.168 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.7528, allocations: 63.38 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.7528, allocations: 4 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.472e-06/0.7528, allocations: 0 / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.7528, allocations: 0 / 1.168 GB, free: 1.77 MB / 0.8887 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.0006182/0.7534, allocations: 383.1 kB / 1.168 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.7535, allocations: 12.92 kB / 1.168 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.7535, allocations: 34.75 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.788e-05/0.7536, allocations: 12.89 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.7538, allocations: 188.2 kB / 1.169 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.7538, allocations: 384 / 1.169 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.7538, allocations: 8.375 kB / 1.169 GB, free: 1.047 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.7541, allocations: 86.19 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.7541, allocations: 3.938 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.7541, allocations: 4 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7542, allocations: 4 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.7545, allocations: 75.86 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.7551, allocations: 328.7 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002233/0.7553, allocations: 58.58 kB / 1.169 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.7555, allocations: 44.91 kB / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.7556, allocations: 0 / 1.169 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.7556, allocations: 34.56 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.7556, allocations: 0 / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0006176/0.7562, allocations: 133.6 kB / 1.169 GB, free: 212 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.7563, allocations: 63.33 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.7564, allocations: 109.8 kB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.333e-05/0.7565, allocations: 33.64 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.7565, allocations: 104 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.7566, allocations: 11.94 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.7566, allocations: 9.719 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.7568, allocations: 322.8 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.757, allocations: 31.95 kB / 1.17 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.7571, allocations: 32.16 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.7574, allocations: 84.84 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7574, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003632/0.7578, allocations: 105.5 kB / 1.17 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.7578, allocations: 12 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.7579, allocations: 3.938 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.7579, allocations: 0 / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.758, allocations: 19.97 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.7581, allocations: 0 / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.073e-05/0.7581, allocations: 7.984 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.7582, allocations: 4 kB / 1.17 GB, free: 15.21 MB / 0.9044 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 0.0001238/0.7583, allocations: 117.8 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.7583, allocations: 11.94 kB / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004486/0.7588, allocations: 109.5 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.7588, allocations: 0 / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.7588, allocations: 0 / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.7588, allocations: 3.938 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.7591, allocations: 185.6 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.7591, allocations: 0 / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.574e-05/0.7592, allocations: 19.97 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.7592, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.7592, allocations: 8 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7592, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7592, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004227/0.7597, allocations: 203.4 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.7597, allocations: 85 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.7598, allocations: 0 / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.7599, allocations: 11.98 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.76, allocations: 7.984 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.76, allocations: 3.938 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.392e-05/0.76, allocations: 95.66 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.214e-06/0.7601, allocations: 0 / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000233/0.7603, allocations: 19.88 kB / 1.171 GB, free: 14.24 MB / 0.9044 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.0008/0.7611, allocations: 0.7358 MB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003576/0.7615, allocations: 75.92 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.7615, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001705/0.7617, allocations: 47.89 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.762, allocations: 2.656 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.7641, allocations: 1.434 MB / 1.173 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004285/0.7645, allocations: 0.6885 MB / 1.174 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.46e-05/0.7646, allocations: 15.92 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.7647, allocations: 15.44 kB / 1.174 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of SimCode: time 4.41e-07/0.7647, allocations: 0 / 1.174 GB, free: 11.1 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/0.7881, allocations: 1.805 MB / 1.176 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.83, allocations: 7.969 kB / 1.176 GB, free: 9.359 MB / 0.9044 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=400 --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