Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_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.007167/0.007167, allocations: 96.56 kB / 15.73 MB, free: 6.043 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.001885/0.001885, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.877/2.877, allocations: 469.8 MB / 0.7425 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.89 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3336, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002531/0.3362, allocations: 1.553 MB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003156/0.3365, allocations: 107.7 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.096e-05/0.3366, allocations: 3.938 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.3367, allocations: 7.938 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.229e-05/0.3367, allocations: 3.938 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.3369, allocations: 31.89 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.337, allocations: 51.84 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3372, allocations: 35.91 kB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.353e-05/0.3372, allocations: 23.92 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.827e-05/0.3373, allocations: 27.91 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.3373, allocations: 4 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.69e-05/0.3374, allocations: 8 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.955e-05/0.3374, allocations: 15.92 kB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.3375, allocations: 27.86 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.3376, allocations: 63.73 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3376, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3376, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.3376, allocations: 0 / 1.222 GB, free: 12.32 MB / 0.9825 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.0005284/0.3382, allocations: 381.2 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3382, allocations: 12.03 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.3383, allocations: 34.75 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.711e-05/0.3383, allocations: 8.891 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.3385, allocations: 196.2 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-06/0.3385, allocations: 384 / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.3385, allocations: 4.375 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.3388, allocations: 86.2 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.3388, allocations: 3.938 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.3388, allocations: 7.938 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3388, allocations: 3.984 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3391, allocations: 83.84 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005008/0.3396, allocations: 328.7 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.3399, allocations: 62.56 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.34, allocations: 40.92 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.3401, allocations: 4 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.3401, allocations: 34.55 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3401, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005443/0.3407, allocations: 133.6 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.3407, allocations: 51.41 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.52e-05/0.3408, allocations: 121.8 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.3408, allocations: 25.7 kB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.647e-05/0.3409, allocations: 100 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.3409, allocations: 11.94 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.341, allocations: 21.66 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3411, allocations: 318.8 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3413, allocations: 39.95 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3414, allocations: 31.95 kB / 1.224 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/0.3417, allocations: 76.78 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3417, allocations: 0 / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003244/0.342, allocations: 101.6 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.342, allocations: 8 kB / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3421, allocations: 3.984 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.3421, allocations: 4 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3422, allocations: 19.92 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.3422, allocations: 0 / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.659e-05/0.3423, allocations: 11.98 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.3423, allocations: 0 / 1.224 GB, free: 9.766 MB / 0.9825 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.543e-05/0.3424, allocations: 123.7 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/0.3424, allocations: 3.953 kB / 1.224 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003697/0.3428, allocations: 113.5 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3428, allocations: 0 / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.3428, allocations: 0 / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3428, allocations: 0 / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.343, allocations: 185.6 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.343, allocations: 0 / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.264e-05/0.3431, allocations: 15.97 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3431, allocations: 4 kB / 1.225 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.3432, allocations: 8.312 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3432, allocations: 0 / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3432, allocations: 3.938 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.3435, allocations: 211.3 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.412e-05/0.3436, allocations: 77.11 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.3436, allocations: 3.938 kB / 1.225 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.3437, allocations: 15.98 kB / 1.225 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.3438, allocations: 7.984 kB / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.3438, allocations: 0 / 1.225 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.185e-05/0.3439, allocations: 91.7 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3439, allocations: 0 / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002223/0.3441, allocations: 19.88 kB / 1.225 GB, free: 8.793 MB / 0.9825 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.0006927/0.3448, allocations: 0.7402 MB / 1.226 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003587/0.3452, allocations: 75.92 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3452, allocations: 0 / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.3453, allocations: 47.89 kB / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.3456, allocations: 336 / 1.226 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.3474, allocations: 1.429 MB / 1.227 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.3477, allocations: 0.6923 MB / 1.228 GB, free: 5.68 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.636e-05/0.3478, allocations: 11.98 kB / 1.228 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.3478, allocations: 15.44 kB / 1.228 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.3478, allocations: 4 kB / 1.228 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6545/1.002, allocations: 1.812 MB / 1.23 GB, free: 3.906 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.45, allocations: 2.344 kB / 1.23 GB, free: 3.906 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches