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.001838/0.001838, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002255/0.002255, allocations: 214.9 kB / 23.04 MB, free: 5.07 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.506/1.506, allocations: 230.6 MB / 256.8 MB, free: 7.961 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.82/2.82, allocations: 476.7 MB / 0.7715 GB, free: 4.293 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="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.002023/0.002023, allocations: 64.75 kB / 1.118 GB, free: 40.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3643, allocations: 170 MB / 1.284 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002981/0.3673, allocations: 1.578 MB / 1.286 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003438/0.3677, allocations: 111.7 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.677e-05/0.3677, allocations: 0 / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001153/0.3678, allocations: 7.875 kB / 1.286 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.002e-05/0.3678, allocations: 7.922 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.3681, allocations: 35.89 kB / 1.286 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000104/0.3682, allocations: 51.91 kB / 1.286 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.3683, allocations: 19.98 kB / 1.286 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.874e-05/0.3684, allocations: 23.91 kB / 1.286 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.096e-05/0.3685, allocations: 35.84 kB / 1.286 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.55e-05/0.3685, allocations: 4 kB / 1.286 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.3685, allocations: 12 kB / 1.286 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.568e-05/0.3686, allocations: 15.92 kB / 1.286 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.3686, allocations: 23.86 kB / 1.286 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.3688, allocations: 67.19 kB / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3688, allocations: 0 / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3688, allocations: 4 kB / 1.286 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.3688, allocations: 4 kB / 1.286 GB, free: 9.719 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.0005338/0.3693, allocations: 302.1 kB / 1.286 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.3694, allocations: 8.031 kB / 1.286 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.256e-05/0.3694, allocations: 4.188 kB / 1.286 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.095e-05/0.3694, allocations: 30.75 kB / 1.286 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.3694, allocations: 8.891 kB / 1.286 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.3696, allocations: 130.4 kB / 1.287 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-06/0.3696, allocations: 4.375 kB / 1.287 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.3696, allocations: 16.3 kB / 1.287 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.3699, allocations: 89.95 kB / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3699, allocations: 0 / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.3699, allocations: 0 / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3699, allocations: 0 / 1.287 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.3703, allocations: 83.86 kB / 1.287 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.3708, allocations: 295.8 kB / 1.287 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.371, allocations: 62.52 kB / 1.287 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.3712, allocations: 48.91 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.3712, allocations: 0 / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3713, allocations: 34.59 kB / 1.287 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.3713, allocations: 0 / 1.287 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005934/0.3719, allocations: 145.5 kB / 1.287 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.3719, allocations: 51.41 kB / 1.287 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.372, allocations: 113.8 kB / 1.287 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.372, allocations: 25.7 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.3721, allocations: 96.09 kB / 1.288 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.3721, allocations: 7.891 kB / 1.288 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.3722, allocations: 17.7 kB / 1.288 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3723, allocations: 326.8 kB / 1.288 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.3725, allocations: 31.95 kB / 1.288 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.3727, allocations: 35.91 kB / 1.288 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.373, allocations: 76.78 kB / 1.288 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.373, allocations: 0 / 1.288 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003619/0.3733, allocations: 105.6 kB / 1.288 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3733, allocations: 7.938 kB / 1.288 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3733, allocations: 0 / 1.288 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3734, allocations: 4 kB / 1.288 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3735, allocations: 15.98 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3735, allocations: 3.984 kB / 1.288 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.869e-05/0.3736, allocations: 11.98 kB / 1.288 GB, free: 7.371 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.3736, allocations: 3.938 kB / 1.288 GB, free: 7.367 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.3737, allocations: 118.6 kB / 1.288 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.3737, allocations: 4 kB / 1.288 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.3741, allocations: 117.6 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3741, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3741, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3741, allocations: 0 / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.3744, allocations: 160.6 kB / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3744, allocations: 0 / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.886e-05/0.3745, allocations: 15.98 kB / 1.289 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3745, allocations: 0 / 1.289 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.3745, allocations: 4 kB / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3745, allocations: 0 / 1.289 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3745, allocations: 4 kB / 1.289 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.3749, allocations: 199.7 kB / 1.289 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.669e-06/0.3749, allocations: 11.89 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.3749, allocations: 8.031 kB / 1.289 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.375, allocations: 15.97 kB / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.3751, allocations: 8 kB / 1.289 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.3751, allocations: 4 kB / 1.289 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.78e-05/0.3751, allocations: 95.2 kB / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3751, allocations: 0 / 1.289 GB, free: 6.539 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002378/0.3754, allocations: 8 kB / 1.289 GB, free: 6.531 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.0007878/0.3762, allocations: 0.7435 MB / 1.29 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003566/0.3765, allocations: 75.92 kB / 1.29 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3765, allocations: 0 / 1.29 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.3767, allocations: 43.89 kB / 1.29 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.377, allocations: 6.391 kB / 1.29 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.379, allocations: 1.436 MB / 1.291 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3794, allocations: 0.6885 MB / 1.292 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.282e-05/0.3794, allocations: 7.984 kB / 1.292 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.736e-05/0.3795, allocations: 23.44 kB / 1.292 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.3795, allocations: 0 / 1.292 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.4025, allocations: 1.968 MB / 1.294 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.89, allocations: 8.734 kB / 1.294 GB, free: 1.559 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: 18.807586756011005]