Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_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.00123/0.00123, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001233/0.001233, allocations: 192.1 kB / 16.25 MB, free: 6.621 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.233/1.233, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.064/2.064, allocations: 390.3 MB / 0.6644 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4616/0.4628, allocations: 140.4 MB / 0.9492 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00207/0.4649, allocations: 1.595 MB / 0.9508 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002466/0.4652, allocations: 114.2 kB / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.023e-05/0.4652, allocations: 0 / 0.9509 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.38e-05/0.4653, allocations: 5.312 kB / 0.9509 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.417e-05/0.4654, allocations: 5.281 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.4656, allocations: 24.09 kB / 0.9509 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.098e-05/0.4656, allocations: 63.23 kB / 0.951 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.967e-05/0.4657, allocations: 27.81 kB / 0.951 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.3e-05/0.4658, allocations: 25.92 kB / 0.951 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.792e-05/0.4658, allocations: 24.91 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.4658, allocations: 5 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.669e-05/0.4659, allocations: 11.28 kB / 0.9511 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.139e-05/0.4659, allocations: 20.39 kB / 0.9511 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.466, allocations: 28.91 kB / 0.9511 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.374e-05/0.4661, allocations: 55.47 kB / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4661, allocations: 1.281 kB / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.4661, allocations: 0 / 0.9512 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.4661, allocations: 0 / 0.9512 GB, free: 7.613 MB / 0.7169 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.0003758/0.4665, allocations: 379.4 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.4665, allocations: 8.969 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.154e-05/0.4665, allocations: 39.91 kB / 0.9516 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.505e-05/0.4666, allocations: 8.844 kB / 0.9516 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.4667, allocations: 190.6 kB / 0.9518 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.734e-06/0.4667, allocations: 6.312 kB / 0.9518 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.4667, allocations: 3.562 kB / 0.9518 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.4669, allocations: 84.98 kB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.4669, allocations: 3.938 kB / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.467, allocations: 0 / 0.9519 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.467, allocations: 5.438 kB / 0.9519 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.4672, allocations: 81.81 kB / 0.952 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003758/0.4676, allocations: 336.1 kB / 0.9523 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.4678, allocations: 57.62 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.4679, allocations: 49.86 kB / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.468, allocations: 1.344 kB / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.102e-05/0.468, allocations: 39.86 kB / 0.9524 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.468, allocations: 0 / 0.9524 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004515/0.4684, allocations: 133.8 kB / 0.9525 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.595e-05/0.4685, allocations: 52.59 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.408e-05/0.4685, allocations: 123.1 kB / 0.9527 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.833e-06/0.4685, allocations: 25.7 kB / 0.9527 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.477e-05/0.4686, allocations: 94.78 kB / 0.9528 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.4686, allocations: 17 kB / 0.9528 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-05/0.4686, allocations: 12.78 kB / 0.9529 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.193e-05/0.4687, allocations: 325 kB / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.4688, allocations: 33.78 kB / 0.9532 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.4689, allocations: 39.48 kB / 0.9532 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.4691, allocations: 70.47 kB / 0.9533 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4691, allocations: 0 / 0.9533 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002655/0.4694, allocations: 104 kB / 0.9534 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.4694, allocations: 14.48 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.4694, allocations: 1.344 kB / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.4695, allocations: 0 / 0.9534 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.4696, allocations: 14.11 kB / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.4696, allocations: 1.375 kB / 0.9534 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.782e-05/0.4696, allocations: 11.23 kB / 0.9534 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.4697, allocations: 9.078 kB / 0.9534 GB, free: 5.492 MB / 0.7169 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 4.473e-05/0.4697, allocations: 124.7 kB / 0.9536 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.4697, allocations: 7.188 kB / 0.9536 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.4701, allocations: 108 kB / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.4701, allocations: 0 / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4701, allocations: 1.688 kB / 0.9537 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.4701, allocations: 4 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.4702, allocations: 178 kB / 0.9539 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4702, allocations: 4 kB / 0.9539 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.46e-05/0.4703, allocations: 18.53 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4703, allocations: 1.906 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.4703, allocations: 4 kB / 0.9539 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4703, allocations: 0 / 0.9539 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4703, allocations: 3.938 kB / 0.9539 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.4706, allocations: 199.3 kB / 0.9541 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.533e-05/0.4706, allocations: 87.58 kB / 0.9542 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.4707, allocations: 0 / 0.9542 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.801e-05/0.4708, allocations: 14.86 kB / 0.9542 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/0.4708, allocations: 6.297 kB / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.4708, allocations: 1.5 kB / 0.9542 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.701e-05/0.4708, allocations: 94.92 kB / 0.9543 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4708, allocations: 1.531 kB / 0.9543 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002118/0.4711, allocations: 12.19 kB / 0.9543 GB, free: 4.676 MB / 0.7169 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.0004322/0.4715, allocations: 0.7413 MB / 0.955 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002863/0.4718, allocations: 79.64 kB / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4718, allocations: 0 / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.4719, allocations: 51.23 kB / 0.9551 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.4722, allocations: 7.281 kB / 0.9551 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.4734, allocations: 1.432 MB / 0.9565 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.302e-05/0.4735, allocations: 0.6923 MB / 0.9572 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.804e-05/0.4736, allocations: 7.453 kB / 0.9572 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.239e-05/0.4736, allocations: 17.84 kB / 0.9572 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.4736, allocations: 1.625 kB / 0.9572 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8873/1.361, allocations: 1.596 MB / 0.9588 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/1.361, allocations: 185.1 kB / 0.959 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.653/4.015, allocations: 0 / 0.959 GB, free: 0.7969 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches