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.001333/0.001333, allocations: 110.1 kB / 19.7 MB, free: 2.262 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.001469/0.001469, allocations: 211.1 kB / 23 MB, free: 5.113 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.438/1.438, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.196/3.196, allocations: 0.49 GB / 0.7958 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.00198/0.00198, allocations: 68.08 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3809, allocations: 176.1 MB / 1.327 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003965/0.3849, allocations: 1.574 MB / 1.329 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0004447/0.3853, allocations: 115.7 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.529e-05/0.3854, allocations: 0 / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.3855, allocations: 3.938 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.756e-05/0.3856, allocations: 11.88 kB / 1.329 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.3859, allocations: 27.95 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.386, allocations: 55.78 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.3862, allocations: 27.97 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.902e-05/0.3862, allocations: 27.92 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.059e-05/0.3863, allocations: 31.84 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.061e-05/0.3863, allocations: 4 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.133e-05/0.3864, allocations: 8 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.219e-05/0.3865, allocations: 15.98 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.543e-05/0.3865, allocations: 31.8 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.3867, allocations: 59.73 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3867, allocations: 0 / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3867, allocations: 0 / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.3867, allocations: 0 / 1.329 GB, free: 15.45 MB / 1.029 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.0007038/0.3874, allocations: 314 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.3875, allocations: 12.03 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.074e-05/0.3875, allocations: 4.891 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.3877, allocations: 130.4 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.3877, allocations: 4.375 kB / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3878, allocations: 384 / 1.33 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003992/0.3882, allocations: 94.19 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.3882, allocations: 192 / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.3882, allocations: 7.938 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3882, allocations: 7.938 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.3887, allocations: 75.91 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.3895, allocations: 299.9 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.3898, allocations: 58.41 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.39, allocations: 40.92 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.522e-05/0.3901, allocations: 7.984 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.3901, allocations: 34.56 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.3901, allocations: 0 / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0008479/0.391, allocations: 137.5 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.391, allocations: 55.41 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.3911, allocations: 117.8 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.3912, allocations: 25.7 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/0.3913, allocations: 100.1 kB / 1.331 GB, free: 13.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.3913, allocations: 11.89 kB / 1.331 GB, free: 13.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.3913, allocations: 13.72 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.3915, allocations: 322.8 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.3918, allocations: 35.97 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.392, allocations: 31.95 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.3924, allocations: 72.78 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3924, allocations: 0 / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005364/0.3929, allocations: 117.5 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.393, allocations: 6.188 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.393, allocations: 0 / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.393, allocations: 0 / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.3932, allocations: 15.98 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.3932, allocations: 0 / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.3933, allocations: 11.98 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.409e-05/0.3933, allocations: 7.938 kB / 1.331 GB, free: 13.14 MB / 1.029 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.0001314/0.3935, allocations: 126.3 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.811e-05/0.3935, allocations: 4 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005727/0.3941, allocations: 113.5 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3941, allocations: 0 / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3941, allocations: 4 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.3941, allocations: 8.359 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.3944, allocations: 148.6 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3944, allocations: 3.938 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001366/0.3945, allocations: 23.97 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3945, allocations: 0 / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.3945, allocations: 0 / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3945, allocations: 0 / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3945, allocations: 3.984 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.395, allocations: 203.4 kB / 1.332 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.056e-05/0.3951, allocations: 7.953 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.3951, allocations: 0 / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.3952, allocations: 7.984 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.3953, allocations: 7.984 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.3953, allocations: 4 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.828e-05/0.3954, allocations: 95.2 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3954, allocations: 0 / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0004031/0.3958, allocations: 16 kB / 1.332 GB, free: 12.29 MB / 1.029 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.0001637/0.3959, allocations: 95.19 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004614/0.3964, allocations: 79.91 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3964, allocations: 0 / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.3966, allocations: 35.97 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.3971, allocations: 11.98 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005045/0.3976, allocations: 183 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.398, allocations: 0.6924 MB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.3981, allocations: 11.44 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of SimCode: time 3.31e-07/0.3981, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of Templates: time 0.003669/0.4017, allocations: 0.9369 MB / 1.334 GB, free: 10.18 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.330698782985564]