Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001277/0.001277, allocations: 113.8 kB / 17.61 MB, free: 4.703 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.001297/0.001297, allocations: 186 kB / 20.78 MB, free: 1.547 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.414/1.414, allocations: 225.6 MB / 249.4 MB, free: 3.141 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 496.2 MB / 0.7819 GB, free: 12.28 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 67.89 kB / 1.136 GB, free: 12.44 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8862/0.8882, allocations: 173.6 MB / 1.305 GB, free: 33.43 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002254/0.8905, allocations: 1.564 MB / 1.307 GB, free: 32.35 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003091/0.8908, allocations: 114.6 kB / 1.307 GB, free: 32.27 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.299e-05/0.8908, allocations: 4 kB / 1.307 GB, free: 32.27 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.8909, allocations: 6.469 kB / 1.307 GB, free: 32.27 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.738e-05/0.891, allocations: 11.86 kB / 1.307 GB, free: 32.25 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.8912, allocations: 26.28 kB / 1.307 GB, free: 32.25 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.506e-05/0.8913, allocations: 61.89 kB / 1.307 GB, free: 32.22 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.8914, allocations: 16.78 kB / 1.307 GB, free: 32.21 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.788e-05/0.8914, allocations: 26.28 kB / 1.307 GB, free: 32.2 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.8915, allocations: 26.83 kB / 1.307 GB, free: 32.19 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.8915, allocations: 6.344 kB / 1.307 GB, free: 32.19 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.497e-05/0.8915, allocations: 13.28 kB / 1.307 GB, free: 32.18 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.663e-05/0.8916, allocations: 20.5 kB / 1.307 GB, free: 32.17 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.8916, allocations: 24.36 kB / 1.307 GB, free: 32.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.8917, allocations: 64.28 kB / 1.307 GB, free: 32.13 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.8917, allocations: 0 / 1.307 GB, free: 32.13 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8917, allocations: 0 / 1.307 GB, free: 32.13 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.8917, allocations: 0 / 1.307 GB, free: 32.13 MB / 1.061 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.0004504/0.8922, allocations: 382.3 kB / 1.308 GB, free: 31.75 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.8922, allocations: 8.562 kB / 1.308 GB, free: 31.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.8922, allocations: 11.64 kB / 1.308 GB, free: 31.75 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.8924, allocations: 185.7 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.521e-06/0.8924, allocations: 3.656 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.8924, allocations: 3.312 kB / 1.308 GB, free: 31.54 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.8926, allocations: 86.62 kB / 1.308 GB, free: 31.49 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.8926, allocations: 192 / 1.308 GB, free: 31.49 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.8927, allocations: 11.88 kB / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.8927, allocations: 0 / 1.308 GB, free: 31.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.8929, allocations: 86.19 kB / 1.308 GB, free: 31.46 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000407/0.8933, allocations: 323.5 kB / 1.308 GB, free: 31.17 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.8935, allocations: 62.45 kB / 1.308 GB, free: 31.14 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.8936, allocations: 42.19 kB / 1.309 GB, free: 31.12 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.8937, allocations: 3.422 kB / 1.309 GB, free: 31.12 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.8937, allocations: 33.34 kB / 1.309 GB, free: 31.08 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.8937, allocations: 0 / 1.309 GB, free: 31.08 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004753/0.8942, allocations: 135.8 kB / 1.309 GB, free: 31.03 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.894e-05/0.8942, allocations: 51.41 kB / 1.309 GB, free: 30.97 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.223e-05/0.8942, allocations: 121.5 kB / 1.309 GB, free: 30.86 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.724e-06/0.8943, allocations: 29.64 kB / 1.309 GB, free: 30.82 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.857e-05/0.8943, allocations: 98 kB / 1.309 GB, free: 30.73 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.8943, allocations: 14.89 kB / 1.309 GB, free: 30.72 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.8943, allocations: 12.28 kB / 1.309 GB, free: 30.7 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.243e-05/0.8944, allocations: 324.1 kB / 1.309 GB, free: 30.38 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.8945, allocations: 31 kB / 1.309 GB, free: 30.38 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.8946, allocations: 34.73 kB / 1.309 GB, free: 30.38 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000232/0.8949, allocations: 74.08 kB / 1.309 GB, free: 30.36 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.8949, allocations: 3.031 kB / 1.309 GB, free: 30.36 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002707/0.8951, allocations: 104.4 kB / 1.31 GB, free: 30.31 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.8951, allocations: 2.875 kB / 1.31 GB, free: 30.31 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.8951, allocations: 9.969 kB / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.8952, allocations: 0 / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.8953, allocations: 16.05 kB / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.8953, allocations: 2.812 kB / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.956e-05/0.8953, allocations: 12.31 kB / 1.31 GB, free: 30.3 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.8954, allocations: 2.812 kB / 1.31 GB, free: 30.3 MB / 1.061 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.589e-05/0.8954, allocations: 116.7 kB / 1.31 GB, free: 30.18 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.8954, allocations: 10.58 kB / 1.31 GB, free: 30.17 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003175/0.8958, allocations: 110.2 kB / 1.31 GB, free: 30.12 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.8958, allocations: 0 / 1.31 GB, free: 30.12 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.8958, allocations: 0 / 1.31 GB, free: 30.12 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.8958, allocations: 4 kB / 1.31 GB, free: 30.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.8959, allocations: 185.8 kB / 1.31 GB, free: 29.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.8959, allocations: 0 / 1.31 GB, free: 29.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.755e-05/0.896, allocations: 24.44 kB / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.896, allocations: 6.25 kB / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.896, allocations: 0 / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.896, allocations: 0 / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.896, allocations: 3.938 kB / 1.31 GB, free: 29.89 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002914/0.8963, allocations: 208.3 kB / 1.31 GB, free: 29.74 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.8963, allocations: 77.11 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.8963, allocations: 2.812 kB / 1.31 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.75e-05/0.8964, allocations: 13.08 kB / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.8965, allocations: 6.078 kB / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.8965, allocations: 0 / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.984e-05/0.8965, allocations: 91.16 kB / 1.31 GB, free: 29.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.8965, allocations: 0 / 1.31 GB, free: 29.57 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002239/0.8967, allocations: 16.75 kB / 1.31 GB, free: 29.56 MB / 1.061 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.0001109/0.8968, allocations: 108.3 kB / 1.311 GB, free: 29.46 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003152/0.8971, allocations: 75.5 kB / 1.311 GB, free: 29.45 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8972, allocations: 0 / 1.311 GB, free: 29.45 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.8973, allocations: 40 kB / 1.311 GB, free: 29.45 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.8975, allocations: 10 kB / 1.311 GB, free: 29.44 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002753/0.8978, allocations: 167.8 kB / 1.311 GB, free: 29.3 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.8979, allocations: 0.6927 MB / 1.311 GB, free: 28.61 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.878e-05/0.898, allocations: 6.312 kB / 1.311 GB, free: 28.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.331e-05/0.898, allocations: 14.03 kB / 1.311 GB, free: 28.6 MB / 1.061 GB Notification: Performance of SimCode: time 3.71e-07/0.898, allocations: 3.938 kB / 1.311 GB, free: 28.59 MB / 1.061 GB Notification: Performance of Templates: time 0.002976/0.901, allocations: 0.7687 MB / 1.312 GB, free: 28.51 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.769113994203508]