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.001287/0.001287, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001519/0.001519, allocations: 219 kB / 22.26 MB, free: 5.125 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 8.02 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.872/2.872, allocations: 476.8 MB / 0.7707 GB, free: 4.309 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.002015/0.002015, allocations: 72.59 kB / 1.117 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3832, allocations: 169.9 MB / 1.283 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003152/0.3863, allocations: 1.571 MB / 1.285 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003617/0.3867, allocations: 111.7 kB / 1.285 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.611e-05/0.3868, allocations: 0 / 1.285 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.3869, allocations: 11.92 kB / 1.285 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.685e-05/0.3869, allocations: 7.875 kB / 1.285 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.3872, allocations: 27.97 kB / 1.285 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.3873, allocations: 59.78 kB / 1.285 GB, free: 2.004 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.3874, allocations: 19.97 kB / 1.285 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.247e-05/0.3875, allocations: 23.92 kB / 1.285 GB, free: 1.961 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.562e-05/0.3875, allocations: 27.91 kB / 1.285 GB, free: 1.934 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.3875, allocations: 4 kB / 1.285 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.304e-05/0.3876, allocations: 19.92 kB / 1.285 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.853e-05/0.3876, allocations: 8 kB / 1.285 GB, free: 1.902 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.192e-05/0.3877, allocations: 27.86 kB / 1.285 GB, free: 1.875 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.3878, allocations: 63.95 kB / 1.285 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3878, allocations: 3.938 kB / 1.285 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3878, allocations: 4 kB / 1.285 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3878, allocations: 0 / 1.285 GB, free: 1.805 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.0005708/0.3884, allocations: 310 kB / 1.286 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3885, allocations: 8.031 kB / 1.286 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.795e-05/0.3885, allocations: 38.73 kB / 1.286 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.3885, allocations: 8.891 kB / 1.286 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.3887, allocations: 122.5 kB / 1.286 GB, free: 1.262 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.3887, allocations: 4.375 kB / 1.286 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.3887, allocations: 4.375 kB / 1.286 GB, free: 1.254 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.389, allocations: 90.14 kB / 1.286 GB, free: 1.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.389, allocations: 3.938 kB / 1.286 GB, free: 1.156 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.389, allocations: 4 kB / 1.286 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.389, allocations: 3.984 kB / 1.286 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/0.3893, allocations: 83.91 kB / 1.286 GB, free: 1.066 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.3899, allocations: 299.7 kB / 1.286 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002021/0.3901, allocations: 54.53 kB / 1.286 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3902, allocations: 48.91 kB / 1.286 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.508e-05/0.3903, allocations: 0 / 1.286 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.3903, allocations: 38.5 kB / 1.286 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 7.81e-07/0.3903, allocations: 0 / 1.286 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005521/0.3909, allocations: 141.6 kB / 1.287 GB, free: 436 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3909, allocations: 51.41 kB / 1.287 GB, free: 372 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.391, allocations: 117.8 kB / 1.287 GB, free: 244 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.391, allocations: 25.7 kB / 1.287 GB, free: 212 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.3911, allocations: 88.14 kB / 1.287 GB, free: 120 kB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.3911, allocations: 23.83 kB / 1.287 GB, free: 96 kB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.3911, allocations: 9.719 kB / 1.287 GB, free: 80 kB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3913, allocations: 326.8 kB / 1.287 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.3915, allocations: 31.95 kB / 1.287 GB, free: 15.72 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.3916, allocations: 31.97 kB / 1.287 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.3919, allocations: 76.77 kB / 1.287 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3919, allocations: 4 kB / 1.287 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003413/0.3922, allocations: 109.5 kB / 1.287 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.3922, allocations: 8 kB / 1.287 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.3922, allocations: 0 / 1.287 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3922, allocations: 3.938 kB / 1.287 GB, free: 15.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.3924, allocations: 19.97 kB / 1.287 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3924, allocations: 4 kB / 1.287 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.837e-05/0.3925, allocations: 11.98 kB / 1.287 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.3925, allocations: 4 kB / 1.287 GB, free: 15.44 MB / 0.9981 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.0001137/0.3926, allocations: 120.2 kB / 1.288 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.3926, allocations: 0 / 1.288 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.393, allocations: 121.5 kB / 1.288 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.393, allocations: 0 / 1.288 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.393, allocations: 0 / 1.288 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.393, allocations: 0 / 1.288 GB, free: 15.19 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.3932, allocations: 148.7 kB / 1.288 GB, free: 15 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3932, allocations: 4 kB / 1.288 GB, free: 15 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.972e-05/0.3933, allocations: 15.98 kB / 1.288 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3933, allocations: 0 / 1.288 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3933, allocations: 11.92 kB / 1.288 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3933, allocations: 4 kB / 1.288 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3933, allocations: 384 / 1.288 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.3937, allocations: 203.4 kB / 1.288 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.398e-05/0.3937, allocations: 7.938 kB / 1.288 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.3937, allocations: 7.938 kB / 1.288 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.3938, allocations: 11.98 kB / 1.288 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.3939, allocations: 7.984 kB / 1.288 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.3939, allocations: 0 / 1.288 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.913e-05/0.3939, allocations: 87.28 kB / 1.288 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.3939, allocations: 0 / 1.288 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002341/0.3942, allocations: 15.94 kB / 1.288 GB, free: 14.61 MB / 0.9981 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.0007301/0.3949, allocations: 0.7358 MB / 1.289 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000343/0.3952, allocations: 79.86 kB / 1.289 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3952, allocations: 0 / 1.289 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.3954, allocations: 39.95 kB / 1.289 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.3957, allocations: 4 kB / 1.289 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.3977, allocations: 1.428 MB / 1.29 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.398, allocations: 0.6885 MB / 1.291 GB, free: 11.51 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.884e-05/0.3981, allocations: 11.98 kB / 1.291 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.503e-05/0.3981, allocations: 27.38 kB / 1.291 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of SimCode: time 7.81e-07/0.3981, allocations: 0 / 1.291 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0319/0.43, allocations: 1.949 MB / 1.293 GB, free: 9.664 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.51, allocations: 7.5 kB / 1.293 GB, free: 9.66 MB / 0.9981 GB " [Timeout remaining time 288] (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: 18.204993681050837]