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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002201/0.002201, allocations: 212.6 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.822/2.822, allocations: 476 MB / 0.7699 GB, free: 4.758 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 71.14 kB / 1.117 GB, free: 40.99 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3907, allocations: 170 MB / 1.283 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003875/0.3945, allocations: 1.553 MB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004187/0.395, allocations: 111.7 kB / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.751e-05/0.395, allocations: 0 / 1.284 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.3952, allocations: 15.88 kB / 1.284 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.197e-05/0.3952, allocations: 7.922 kB / 1.284 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.3955, allocations: 31.91 kB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3956, allocations: 51.84 kB / 1.284 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.3957, allocations: 19.98 kB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.597e-05/0.3958, allocations: 27.84 kB / 1.284 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.477e-05/0.3958, allocations: 23.91 kB / 1.284 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.3959, allocations: 8 kB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.828e-05/0.3959, allocations: 15.98 kB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.67e-05/0.396, allocations: 11.94 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.188e-05/0.396, allocations: 27.8 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.3962, allocations: 57.48 kB / 1.284 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3962, allocations: 4 kB / 1.284 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3962, allocations: 0 / 1.284 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3962, allocations: 4 kB / 1.284 GB, free: 10.5 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.000608/0.3968, allocations: 302.1 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.3969, allocations: 8.031 kB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.066e-05/0.3969, allocations: 38.75 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.009e-05/0.397, allocations: 8.891 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.3972, allocations: 130.3 kB / 1.285 GB, free: 9.961 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.3972, allocations: 4.375 kB / 1.285 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.3972, allocations: 12.36 kB / 1.285 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.3975, allocations: 86.14 kB / 1.285 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.3975, allocations: 3.938 kB / 1.285 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.3975, allocations: 4 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3975, allocations: 0 / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003271/0.3978, allocations: 79.91 kB / 1.285 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005861/0.3984, allocations: 295.7 kB / 1.285 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.3987, allocations: 54.53 kB / 1.285 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3988, allocations: 36.92 kB / 1.285 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.3989, allocations: 4 kB / 1.285 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.3989, allocations: 38.59 kB / 1.286 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3989, allocations: 0 / 1.286 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0006003/0.3995, allocations: 141.5 kB / 1.286 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.3995, allocations: 51.41 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.3997, allocations: 113.8 kB / 1.286 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.3997, allocations: 25.7 kB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.218e-05/0.3998, allocations: 96.12 kB / 1.286 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.3998, allocations: 19.83 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.3998, allocations: 13.72 kB / 1.286 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.4, allocations: 322.8 kB / 1.286 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.4002, allocations: 35.89 kB / 1.286 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.4003, allocations: 35.95 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.4006, allocations: 80.72 kB / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4006, allocations: 0 / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000353/0.401, allocations: 97.62 kB / 1.287 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.401, allocations: 8 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.401, allocations: 3.984 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.401, allocations: 4 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.4011, allocations: 15.92 kB / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4012, allocations: 4 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.919e-05/0.4012, allocations: 11.94 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.4013, allocations: 4 kB / 1.287 GB, free: 8.16 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 0.0001103/0.4014, allocations: 125.7 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.4014, allocations: 0 / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004098/0.4018, allocations: 113.6 kB / 1.287 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.4018, allocations: 4.375 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4018, allocations: 0 / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4018, allocations: 0 / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.402, allocations: 148.7 kB / 1.287 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.402, allocations: 0 / 1.287 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.781e-05/0.4021, allocations: 15.97 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.4021, allocations: 7.984 kB / 1.287 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.4021, allocations: 4 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.4021, allocations: 0 / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4021, allocations: 0 / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.4026, allocations: 207.3 kB / 1.287 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.439e-05/0.4026, allocations: 7.953 kB / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.4026, allocations: 0 / 1.287 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.4027, allocations: 15.98 kB / 1.287 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.4028, allocations: 7.984 kB / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.4028, allocations: 0 / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.149e-05/0.4028, allocations: 95.27 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.4028, allocations: 0 / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002424/0.4031, allocations: 11.94 kB / 1.287 GB, free: 7.332 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.0008231/0.4039, allocations: 0.7319 MB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003652/0.4043, allocations: 75.92 kB / 1.288 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4043, allocations: 0 / 1.288 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.4044, allocations: 39.95 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.4048, allocations: 7.938 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.4069, allocations: 1.438 MB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.3e-05/0.407, allocations: 79.33 kB / 1.29 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.844e-05/0.407, allocations: 7.984 kB / 1.29 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.084e-05/0.4071, allocations: 15.44 kB / 1.29 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of SimCode: time 4.61e-07/0.4071, allocations: 0 / 1.29 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.4425, allocations: 2.391 MB / 1.292 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.26, allocations: 3.984 kB / 1.292 GB, free: 2.562 MB / 0.9825 GB " [Timeout remaining time 287] (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 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.12343731895089]