Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008433/0.0008433, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001495/0.002338, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007266/0.0007266, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009496/0.001676, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.9503/0.9503, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1076/1.058, allocations: 53.65 MB / 243.3 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.91/1.91, allocations: 378.2 MB / 0.6076 GB, free: 7.832 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4616/2.372, allocations: 123.3 MB / 0.728 GB, free: 5.805 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.7293 GB, free: 4.5 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.01e-05, allocations: 6.438 kB / 0.7293 GB, free: 4.496 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001921/0.001941, allocations: 1.638 MB / 0.7309 GB, free: 2.871 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0002192/0.00216, allocations: 115.6 kB / 0.7311 GB, free: 2.758 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.093e-05/0.002201, allocations: 0 / 0.7311 GB, free: 2.758 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 6.193e-05/0.002263, allocations: 9.125 kB / 0.7311 GB, free: 2.75 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.121e-05/0.002285, allocations: 12.3 kB / 0.7311 GB, free: 2.742 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.002427, allocations: 32.77 kB / 0.7311 GB, free: 2.711 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.951e-05/0.002517, allocations: 53.05 kB / 0.7312 GB, free: 2.668 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.8e-05/0.002605, allocations: 21.31 kB / 0.7312 GB, free: 2.648 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 8.338e-05/0.002688, allocations: 47.78 kB / 0.7312 GB, free: 2.605 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.202e-05/0.00275, allocations: 26.27 kB / 0.7312 GB, free: 2.582 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.002767, allocations: 8 kB / 0.7313 GB, free: 2.574 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.346e-05/0.00285, allocations: 8.75 kB / 0.7313 GB, free: 2.566 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.002883, allocations: 15.59 kB / 0.7313 GB, free: 2.555 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.002907, allocations: 13.31 kB / 0.7313 GB, free: 2.543 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.003016, allocations: 43.83 kB / 0.7313 GB, free: 2.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.477e-05/0.003031, allocations: 4 kB / 0.7313 GB, free: 2.496 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.11e-07/0.003032, allocations: 0.875 kB / 0.7313 GB, free: 2.496 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.382e-05/0.003045, allocations: 0 / 0.7313 GB, free: 2.496 MB / 0.698 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.000395/0.00344, allocations: 269.9 kB / 0.7316 GB, free: 2.207 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.003477, allocations: 12.03 kB / 0.7316 GB, free: 2.195 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.00351, allocations: 12.92 kB / 0.7316 GB, free: 2.184 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.003652, allocations: 122.3 kB / 0.7317 GB, free: 2.039 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.003662, allocations: 4.312 kB / 0.7317 GB, free: 2.035 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/0.003677, allocations: 13.05 kB / 0.7317 GB, free: 2.023 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.00386, allocations: 70.27 kB / 0.7318 GB, free: 1.945 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.003868, allocations: 1.969 kB / 0.7318 GB, free: 1.945 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.003877, allocations: 384 / 0.7318 GB, free: 1.945 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.003883, allocations: 4.375 kB / 0.7318 GB, free: 1.941 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.003918, allocations: 23.8 kB / 0.7318 GB, free: 1.918 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000331/0.004249, allocations: 190.7 kB / 0.732 GB, free: 1.715 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.733e-05/0.004326, allocations: 23.17 kB / 0.732 GB, free: 1.684 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.469e-05/0.004351, allocations: 8.859 kB / 0.7321 GB, free: 1.672 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.853e-05/0.004399, allocations: 5.219 kB / 0.7321 GB, free: 1.668 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.004428, allocations: 38.59 kB / 0.7321 GB, free: 1.621 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.004429, allocations: 0 / 0.7321 GB, free: 1.621 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001428/0.004571, allocations: 50.67 kB / 0.7321 GB, free: 1.566 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.004611, allocations: 51.41 kB / 0.7322 GB, free: 1.504 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.004684, allocations: 123.5 kB / 0.7323 GB, free: 1.371 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.004705, allocations: 29.64 kB / 0.7323 GB, free: 1.336 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.454e-05/0.00475, allocations: 96.02 kB / 0.7324 GB, free: 1.238 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.004774, allocations: 12.52 kB / 0.7324 GB, free: 1.227 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.004804, allocations: 15.33 kB / 0.7325 GB, free: 1.207 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.5e-05/0.004899, allocations: 314.8 kB / 0.7328 GB, free: 0.8906 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.663e-05/0.004916, allocations: 7.984 kB / 0.7328 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.004927, allocations: 0 / 0.7328 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.234e-05/0.004959, allocations: 16.91 kB / 0.7328 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.004961, allocations: 0 / 0.7328 GB, free: 0.8633 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.878e-05/0.00502, allocations: 37.69 kB / 0.7328 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.005037, allocations: 11.92 kB / 0.7328 GB, free: 0.8086 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.005044, allocations: 4.812 kB / 0.7328 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.005053, allocations: 0 / 0.7328 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.365e-05/0.005136, allocations: 12.91 kB / 0.7328 GB, free: 0.793 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-06/0.005139, allocations: 0 / 0.7328 GB, free: 0.793 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.21e-05/0.005161, allocations: 12.45 kB / 0.7329 GB, free: 0.7812 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.005179, allocations: 5.031 kB / 0.7329 GB, free: 0.7773 MB / 0.698 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 5.669e-05/0.005236, allocations: 112.7 kB / 0.733 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.456e-05/0.00525, allocations: 4.625 kB / 0.733 GB, free: 0.6523 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.304e-05/0.005343, allocations: 57.67 kB / 0.733 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.005346, allocations: 1.781 kB / 0.733 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.005347, allocations: 0 / 0.733 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.00535, allocations: 0 / 0.733 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.977e-05/0.00544, allocations: 73.88 kB / 0.7331 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.005442, allocations: 0 / 0.7331 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.00548, allocations: 21.14 kB / 0.7331 GB, free: 488 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.905e-06/0.005488, allocations: 3.953 kB / 0.7331 GB, free: 484 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.005489, allocations: 0 / 0.7331 GB, free: 484 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.005494, allocations: 6 kB / 0.7331 GB, free: 480 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.005496, allocations: 4 kB / 0.7331 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.005497, allocations: 0 / 0.7331 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.358e-05/0.00558, allocations: 143.5 kB / 0.7333 GB, free: 316 kB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.103e-05/0.005601, allocations: 0 / 0.7333 GB, free: 316 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.044e-05/0.005642, allocations: 8.688 kB / 0.7333 GB, free: 308 kB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.963e-05/0.005671, allocations: 3.984 kB / 0.7333 GB, free: 304 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.005678, allocations: 4.812 kB / 0.7333 GB, free: 300 kB / 0.698 GB Notification: Performance of sorting global known variables: time 1.731e-05/0.005695, allocations: 21.22 kB / 0.7333 GB, free: 276 kB / 0.698 GB Notification: Performance of sort global known variables: time 5e-08/0.005695, allocations: 0 / 0.7333 GB, free: 276 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001242/0.00582, allocations: 16.59 kB / 0.7333 GB, free: 260 kB / 0.698 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.0001102/0.00593, allocations: 78.36 kB / 0.7334 GB, free: 176 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 8.149e-05/0.006011, allocations: 67.8 kB / 0.7335 GB, free: 104 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.006018, allocations: 0 / 0.7335 GB, free: 104 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.006038, allocations: 12.95 kB / 0.7335 GB, free: 88 kB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.006197, allocations: 11.31 kB / 0.7335 GB, free: 80 kB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004212/0.006618, allocations: 159.1 kB / 0.7336 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.797e-05/0.006656, allocations: 67.28 kB / 0.7337 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.67e-05/0.006683, allocations: 4.641 kB / 0.7337 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.006736, allocations: 59.97 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of SimCode: time 9.32e-07/0.006737, allocations: 2.094 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of Templates: time 0.002544/0.00928, allocations: 0.7868 MB / 0.7345 GB, free: 15 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Examples.Average/Buildings_12_Buildings.Utilities.Math.Examples.Average.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.004398672841489]