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.001803/0.001803, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002302/0.002302, allocations: 219.6 kB / 23.03 MB, free: 4.922 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.558/1.558, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.835/2.835, allocations: 476.8 MB / 0.7715 GB, free: 3.855 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="cs",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.002121/0.002121, allocations: 63.92 kB / 1.118 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3898, allocations: 170 MB / 1.284 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003341/0.3931, allocations: 1.541 MB / 1.286 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003726/0.3935, allocations: 111.7 kB / 1.286 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.622e-05/0.3935, allocations: 3.938 kB / 1.286 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.3937, allocations: 11.92 kB / 1.286 GB, free: 8.938 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.043e-05/0.3937, allocations: 7.875 kB / 1.286 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.394, allocations: 27.95 kB / 1.286 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000112/0.3941, allocations: 59.78 kB / 1.286 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.3942, allocations: 11.98 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.625e-05/0.3943, allocations: 27.92 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.764e-05/0.3943, allocations: 27.91 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.3944, allocations: 8 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.572e-05/0.3944, allocations: 11.98 kB / 1.286 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.598e-05/0.3945, allocations: 23.92 kB / 1.286 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.822e-05/0.3945, allocations: 19.86 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.3947, allocations: 55.33 kB / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3947, allocations: 0 / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3947, allocations: 0 / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.3947, allocations: 0 / 1.286 GB, free: 8.664 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.0005693/0.3952, allocations: 308.3 kB / 1.286 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3953, allocations: 12.03 kB / 1.286 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.129e-05/0.3953, allocations: 4.188 kB / 1.286 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.3953, allocations: 38.73 kB / 1.286 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.3954, allocations: 8.891 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.3956, allocations: 138.3 kB / 1.286 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.3956, allocations: 4.312 kB / 1.286 GB, free: 8.098 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3956, allocations: 8.312 kB / 1.286 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.3959, allocations: 93.94 kB / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.3959, allocations: 0 / 1.287 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.3959, allocations: 4 kB / 1.287 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3959, allocations: 4 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.3962, allocations: 83.84 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005748/0.3968, allocations: 279.8 kB / 1.287 GB, free: 7.586 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.397, allocations: 66.56 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.3971, allocations: 36.92 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.3972, allocations: 0 / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.3972, allocations: 38.55 kB / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 8.02e-07/0.3972, allocations: 0 / 1.287 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005791/0.3978, allocations: 141.5 kB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.3978, allocations: 55.34 kB / 1.287 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.3979, allocations: 109.8 kB / 1.287 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.398, allocations: 33.7 kB / 1.287 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.398, allocations: 88.12 kB / 1.287 GB, free: 6.969 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.3981, allocations: 15.84 kB / 1.287 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-05/0.3981, allocations: 17.72 kB / 1.288 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001718/0.3983, allocations: 318.8 kB / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3985, allocations: 35.97 kB / 1.288 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3986, allocations: 31.95 kB / 1.288 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002689/0.3989, allocations: 76.78 kB / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3989, allocations: 0 / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003248/0.3992, allocations: 109.5 kB / 1.288 GB, free: 6.352 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3992, allocations: 4 kB / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3992, allocations: 0 / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3992, allocations: 0 / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.3994, allocations: 15.98 kB / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.3994, allocations: 0 / 1.288 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.775e-05/0.3995, allocations: 15.94 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.3995, allocations: 11.88 kB / 1.288 GB, free: 6.305 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.0001012/0.3996, allocations: 117.8 kB / 1.288 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.3996, allocations: 4 kB / 1.288 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.4, allocations: 105.6 kB / 1.288 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4, allocations: 0 / 1.288 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.4, allocations: 7.938 kB / 1.288 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4, allocations: 4.359 kB / 1.288 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.4002, allocations: 156.6 kB / 1.288 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4002, allocations: 0 / 1.288 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.775e-05/0.4003, allocations: 19.97 kB / 1.288 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4003, allocations: 0 / 1.288 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.4003, allocations: 3.984 kB / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4003, allocations: 0 / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4003, allocations: 0 / 1.289 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000376/0.4007, allocations: 207.4 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.283e-05/0.4007, allocations: 7.953 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.4007, allocations: 0 / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.4008, allocations: 11.98 kB / 1.289 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.4008, allocations: 3.984 kB / 1.289 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.4008, allocations: 4 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.464e-05/0.4009, allocations: 99.2 kB / 1.289 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4009, allocations: 0 / 1.289 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002274/0.4011, allocations: 8 kB / 1.289 GB, free: 5.48 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.0007325/0.4019, allocations: 0.7337 MB / 1.29 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003443/0.4022, allocations: 75.92 kB / 1.29 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4022, allocations: 0 / 1.29 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.4024, allocations: 51.89 kB / 1.29 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.4027, allocations: 4 kB / 1.29 GB, free: 4.594 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.4046, allocations: 1.432 MB / 1.291 GB, free: 3.086 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.565e-05/0.4047, allocations: 75.33 kB / 1.291 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.602e-05/0.4047, allocations: 7.984 kB / 1.291 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.4048, allocations: 15.44 kB / 1.291 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of SimCode: time 4.31e-07/0.4048, allocations: 0 / 1.291 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.4274, allocations: 2.037 MB / 1.293 GB, free: 1.086 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.62, allocations: 4.062 kB / 1.293 GB, free: 1.082 MB / 0.9825 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.846570987952873]