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.001355/0.001355, allocations: 119 kB / 17.17 MB, free: 5.906 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.001429/0.001429, allocations: 211 kB / 20.13 MB, free: 2.969 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.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.955/2.955, allocations: 476.7 MB / 0.7678 GB, free: 9.305 MB / 0.6075 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.002075/0.002075, allocations: 71.91 kB / 1.113 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9558/0.9579, allocations: 169.9 MB / 1.279 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003016/0.9609, allocations: 1.552 MB / 1.28 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003397/0.9612, allocations: 120.8 kB / 1.281 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.842e-05/0.9613, allocations: 4.688 kB / 1.281 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.9614, allocations: 7.812 kB / 1.281 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.9614, allocations: 5 kB / 1.281 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.9616, allocations: 33.36 kB / 1.281 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.9618, allocations: 58.72 kB / 1.281 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.9619, allocations: 21.86 kB / 1.281 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.367e-05/0.9619, allocations: 26.8 kB / 1.281 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.567e-05/0.962, allocations: 29.61 kB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.962, allocations: 8.312 kB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.931e-05/0.9621, allocations: 13.52 kB / 1.281 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.921e-05/0.9622, allocations: 15.8 kB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.086e-05/0.9622, allocations: 24.38 kB / 1.281 GB, free: 10.45 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.9623, allocations: 62.86 kB / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.9623, allocations: 0 / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.9623, allocations: 0 / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.9623, allocations: 1.344 kB / 1.281 GB, free: 10.42 MB / 0.9981 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.0006552/0.963, allocations: 379.2 kB / 1.281 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.963, allocations: 9.562 kB / 1.281 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.287e-05/0.9631, allocations: 2.141 kB / 1.281 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.047e-05/0.9631, allocations: 37.5 kB / 1.281 GB, free: 10 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.964e-05/0.9631, allocations: 8.141 kB / 1.281 GB, free: 9.996 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.9633, allocations: 192.8 kB / 1.281 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.163e-06/0.9634, allocations: 1.406 kB / 1.281 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.9634, allocations: 7.719 kB / 1.281 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.9637, allocations: 89.91 kB / 1.282 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.9637, allocations: 0.8438 kB / 1.282 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.9637, allocations: 0 / 1.282 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.9637, allocations: 2.281 kB / 1.282 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003516/0.964, allocations: 86.64 kB / 1.282 GB, free: 9.711 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005864/0.9646, allocations: 319.8 kB / 1.282 GB, free: 9.422 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.9649, allocations: 62.25 kB / 1.282 GB, free: 9.387 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.9651, allocations: 50.56 kB / 1.282 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.9651, allocations: 2 kB / 1.282 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.9652, allocations: 35.72 kB / 1.282 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.9652, allocations: 0.5 kB / 1.282 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0006915/0.9659, allocations: 138.9 kB / 1.282 GB, free: 9.27 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.9659, allocations: 52.7 kB / 1.282 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.966, allocations: 123.7 kB / 1.282 GB, free: 9.094 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.966, allocations: 26.2 kB / 1.282 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.654e-05/0.9661, allocations: 93.84 kB / 1.283 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.9661, allocations: 13.72 kB / 1.283 GB, free: 8.961 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.447e-05/0.9662, allocations: 13.38 kB / 1.283 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.9663, allocations: 327 kB / 1.283 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.9665, allocations: 36.19 kB / 1.283 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.9667, allocations: 37.48 kB / 1.283 GB, free: 8.605 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.9671, allocations: 75.67 kB / 1.283 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.9671, allocations: 0 / 1.283 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005025/0.9676, allocations: 103.1 kB / 1.283 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.9676, allocations: 6.969 kB / 1.283 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.9677, allocations: 1.625 kB / 1.283 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.9677, allocations: 4.547 kB / 1.283 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.9679, allocations: 23.02 kB / 1.283 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.9679, allocations: 1.5 kB / 1.283 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.968, allocations: 10.41 kB / 1.283 GB, free: 8.531 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.968, allocations: 6.078 kB / 1.283 GB, free: 8.527 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.0001411/0.9682, allocations: 115.1 kB / 1.283 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.9682, allocations: 2.438 kB / 1.283 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004776/0.9687, allocations: 115.5 kB / 1.283 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.9687, allocations: 0 / 1.283 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.9687, allocations: 1.562 kB / 1.283 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.9687, allocations: 0.7969 kB / 1.283 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003081/0.969, allocations: 177.2 kB / 1.284 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.969, allocations: 0 / 1.284 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.9691, allocations: 24.59 kB / 1.284 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/0.9691, allocations: 0 / 1.284 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.9692, allocations: 6.016 kB / 1.284 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9692, allocations: 0 / 1.284 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.9692, allocations: 0 / 1.284 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004527/0.9696, allocations: 203.1 kB / 1.284 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.9697, allocations: 87.38 kB / 1.284 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.9697, allocations: 6.375 kB / 1.284 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.9698, allocations: 14.67 kB / 1.284 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.9699, allocations: 7.234 kB / 1.284 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.9699, allocations: 2.016 kB / 1.284 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.679e-05/0.9699, allocations: 94.64 kB / 1.284 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.9699, allocations: 0 / 1.284 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002397/0.9702, allocations: 9.828 kB / 1.284 GB, free: 7.797 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.0008112/0.971, allocations: 0.7426 MB / 1.285 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003854/0.9714, allocations: 77.92 kB / 1.285 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.9714, allocations: 0 / 1.285 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.9715, allocations: 42.23 kB / 1.285 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.9719, allocations: 11.27 kB / 1.285 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.9742, allocations: 1.429 MB / 1.286 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.9746, allocations: 0.6927 MB / 1.287 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.946e-05/0.9747, allocations: 6.594 kB / 1.287 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.662e-05/0.9747, allocations: 19.58 kB / 1.287 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of SimCode: time 5.61e-07/0.9747, allocations: 0 / 1.287 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.994, allocations: 1.864 MB / 1.289 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.473/9.467, allocations: 16.42 kB / 1.289 GB, free: 4.691 MB / 0.9981 GB " [Timeout remaining time 290] (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: 15.984481642954051]