Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001919/0.001919, allocations: 110.8 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002114/0.002114, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 247.8 MB, free: 13.91 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.689/2.689, allocations: 443.5 MB / 0.7287 GB, free: 13.23 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 67.89 kB / 1.056 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8022/0.8042, allocations: 160.7 MB / 1.213 GB, free: 3.887 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00364/0.8078, allocations: 1.551 MB / 1.214 GB, free: 2.672 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0004855/0.8083, allocations: 112.1 kB / 1.215 GB, free: 2.582 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.885e-05/0.8084, allocations: 1.125 kB / 1.215 GB, free: 2.582 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.8086, allocations: 12.95 kB / 1.215 GB, free: 2.57 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.887e-05/0.8086, allocations: 8.906 kB / 1.215 GB, free: 2.562 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.8089, allocations: 28.22 kB / 1.215 GB, free: 2.543 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.809, allocations: 59.05 kB / 1.215 GB, free: 2.508 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.8091, allocations: 26.05 kB / 1.215 GB, free: 2.492 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.22e-05/0.8092, allocations: 25.25 kB / 1.215 GB, free: 2.477 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.801e-05/0.8093, allocations: 28.66 kB / 1.215 GB, free: 2.457 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.8093, allocations: 9.281 kB / 1.215 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.8094, allocations: 7.438 kB / 1.215 GB, free: 2.453 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.8095, allocations: 20.45 kB / 1.215 GB, free: 2.438 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.202e-05/0.8095, allocations: 25.3 kB / 1.215 GB, free: 2.418 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.8097, allocations: 61.62 kB / 1.215 GB, free: 2.375 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.8097, allocations: 0.9688 kB / 1.215 GB, free: 2.375 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8097, allocations: 7.938 kB / 1.215 GB, free: 2.367 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.8097, allocations: 0 / 1.215 GB, free: 2.367 MB / 0.92 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.0007196/0.8105, allocations: 380.2 kB / 1.215 GB, free: 1.973 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.8105, allocations: 10.42 kB / 1.215 GB, free: 1.973 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.024e-05/0.8106, allocations: 32.78 kB / 1.215 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.8106, allocations: 8.234 kB / 1.215 GB, free: 1.93 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.8109, allocations: 190.8 kB / 1.215 GB, free: 1.711 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.8109, allocations: 10.5 kB / 1.215 GB, free: 1.703 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.8109, allocations: 3.656 kB / 1.215 GB, free: 1.703 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004368/0.8114, allocations: 83.98 kB / 1.216 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.8114, allocations: 4.812 kB / 1.216 GB, free: 1.641 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.8114, allocations: 0 / 1.216 GB, free: 1.641 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.8114, allocations: 1.812 kB / 1.216 GB, free: 1.641 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.8119, allocations: 88.78 kB / 1.216 GB, free: 1.598 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007943/0.8127, allocations: 319.7 kB / 1.216 GB, free: 1.277 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.813, allocations: 61.59 kB / 1.216 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.8132, allocations: 40.7 kB / 1.216 GB, free: 1.207 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 5.297e-05/0.8132, allocations: 5.609 kB / 1.216 GB, free: 1.203 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.8133, allocations: 31.47 kB / 1.216 GB, free: 1.164 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.723e-06/0.8133, allocations: 0 / 1.216 GB, free: 1.164 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0007945/0.8141, allocations: 142.5 kB / 1.216 GB, free: 1.078 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.8141, allocations: 52.53 kB / 1.216 GB, free: 1.016 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.8143, allocations: 110.7 kB / 1.216 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.8143, allocations: 30.77 kB / 1.216 GB, free: 0.875 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.659e-05/0.8144, allocations: 102.3 kB / 1.216 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.8144, allocations: 9.656 kB / 1.216 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.096e-05/0.8145, allocations: 16.97 kB / 1.217 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002472/0.8147, allocations: 323.7 kB / 1.217 GB, free: 432 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.8149, allocations: 30.78 kB / 1.217 GB, free: 420 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.8151, allocations: 34.8 kB / 1.217 GB, free: 404 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003941/0.8155, allocations: 82.81 kB / 1.217 GB, free: 356 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8155, allocations: 0 / 1.217 GB, free: 356 kB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004747/0.816, allocations: 103.8 kB / 1.217 GB, free: 288 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.816, allocations: 6.406 kB / 1.217 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.816, allocations: 0 / 1.217 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.816, allocations: 0 / 1.217 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001791/0.8162, allocations: 26.73 kB / 1.217 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.8162, allocations: 0 / 1.217 GB, free: 272 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.8163, allocations: 11.66 kB / 1.217 GB, free: 268 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.8164, allocations: 1.906 kB / 1.217 GB, free: 268 kB / 0.92 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.0001263/0.8165, allocations: 121.1 kB / 1.217 GB, free: 140 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.561e-05/0.8165, allocations: 5.891 kB / 1.217 GB, free: 136 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005172/0.8171, allocations: 116 kB / 1.217 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.8171, allocations: 1.094 kB / 1.217 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.8171, allocations: 0 / 1.217 GB, free: 48 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.8171, allocations: 5.078 kB / 1.217 GB, free: 44 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003224/0.8174, allocations: 178.3 kB / 1.218 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.8174, allocations: 3.984 kB / 1.218 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.8175, allocations: 18.52 kB / 1.218 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-06/0.8175, allocations: 1.125 kB / 1.218 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.8176, allocations: 4 kB / 1.218 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.8176, allocations: 1.219 kB / 1.218 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.8176, allocations: 3.938 kB / 1.218 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.8181, allocations: 199.5 kB / 1.218 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.99e-05/0.8182, allocations: 86.12 kB / 1.218 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.8182, allocations: 5.094 kB / 1.218 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.8183, allocations: 10.42 kB / 1.218 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.8184, allocations: 10.11 kB / 1.218 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.8184, allocations: 1.156 kB / 1.218 GB, free: 15.53 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.478e-05/0.8185, allocations: 92.61 kB / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8185, allocations: 0 / 1.218 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004254/0.8189, allocations: 13.31 kB / 1.218 GB, free: 15.44 MB / 0.9356 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.001112/0.82, allocations: 0.7383 MB / 1.219 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000516/0.8206, allocations: 80.12 kB / 1.219 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8206, allocations: 0 / 1.219 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.8208, allocations: 42.41 kB / 1.219 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005314/0.8213, allocations: 2.625 kB / 1.219 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.8241, allocations: 1.432 MB / 1.22 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.8245, allocations: 0.6897 MB / 1.221 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.89e-05/0.8246, allocations: 8.422 kB / 1.221 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.949e-05/0.8247, allocations: 22.62 kB / 1.221 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of SimCode: time 6.81e-07/0.8247, allocations: 0 / 1.221 GB, free: 12.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06804/0.8927, allocations: 1.82 MB / 1.223 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.306/9.199, allocations: 7 kB / 1.223 GB, free: 11.64 MB / 0.9356 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_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.27055628132075]