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.001236/0.001236, allocations: 113.5 kB / 17.08 MB, free: 6 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.001273/0.001273, allocations: 193.2 kB / 20.03 MB, free: 3.07 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.396/1.396, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 179] 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.898/2.898, allocations: 489.3 MB / 0.7687 GB, free: 3.734 MB / 0.6075 GB " [Timeout remaining time 176] 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.001981/0.001981, allocations: 67.89 kB / 1.103 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.061/1.063, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002703/1.066, allocations: 1.539 MB / 1.264 GB, free: 6.93 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003416/1.066, allocations: 116.7 kB / 1.264 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.162e-05/1.066, allocations: 4.719 kB / 1.264 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001318/1.066, allocations: 11.08 kB / 1.264 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.705e-05/1.066, allocations: 5.375 kB / 1.264 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000244/1.066, allocations: 32.66 kB / 1.264 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/1.067, allocations: 53.72 kB / 1.264 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/1.067, allocations: 24.03 kB / 1.264 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.173e-05/1.067, allocations: 22.53 kB / 1.264 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.707e-05/1.067, allocations: 31.69 kB / 1.264 GB, free: 6.773 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/1.067, allocations: 9.031 kB / 1.264 GB, free: 6.77 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.347e-05/1.067, allocations: 16.67 kB / 1.264 GB, free: 6.762 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.843e-05/1.067, allocations: 20.7 kB / 1.264 GB, free: 6.75 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4e-05/1.067, allocations: 23.53 kB / 1.264 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/1.067, allocations: 59.23 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/1.067, allocations: 0 / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.743e-06/1.067, allocations: 0.6562 kB / 1.264 GB, free: 6.715 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.103e-06/1.067, allocations: 0.5156 kB / 1.264 GB, free: 6.715 MB / 0.9981 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.0004878/1.068, allocations: 381.1 kB / 1.265 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/1.068, allocations: 9.625 kB / 1.265 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.952e-05/1.068, allocations: 8.391 kB / 1.265 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/1.068, allocations: 192.3 kB / 1.265 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/1.068, allocations: 2.656 kB / 1.265 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/1.068, allocations: 6.594 kB / 1.265 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/1.068, allocations: 86.53 kB / 1.265 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/1.068, allocations: 192 / 1.265 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/1.068, allocations: 9.406 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/1.068, allocations: 0.8438 kB / 1.265 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/1.069, allocations: 79.86 kB / 1.265 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/1.069, allocations: 328.3 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/1.069, allocations: 58.41 kB / 1.266 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/1.07, allocations: 38.98 kB / 1.266 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.051e-05/1.07, allocations: 6.516 kB / 1.266 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/1.07, allocations: 43.44 kB / 1.266 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/1.07, allocations: 0.875 kB / 1.266 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005934/1.07, allocations: 130.6 kB / 1.266 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/1.07, allocations: 52.06 kB / 1.266 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/1.07, allocations: 120.8 kB / 1.266 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.809e-06/1.07, allocations: 30.48 kB / 1.266 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/1.07, allocations: 96.44 kB / 1.266 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/1.07, allocations: 14.16 kB / 1.266 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/1.07, allocations: 13.88 kB / 1.266 GB, free: 5.285 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.148e-05/1.071, allocations: 322.8 kB / 1.266 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/1.071, allocations: 32.22 kB / 1.266 GB, free: 4.961 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/1.071, allocations: 45.69 kB / 1.267 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/1.071, allocations: 70.34 kB / 1.267 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.071, allocations: 0.7812 kB / 1.267 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003405/1.072, allocations: 102.8 kB / 1.267 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.072, allocations: 5 kB / 1.267 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/1.072, allocations: 1.547 kB / 1.267 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/1.072, allocations: 0 / 1.267 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/1.072, allocations: 20.06 kB / 1.267 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.072, allocations: 0.625 kB / 1.267 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.291e-05/1.072, allocations: 15.41 kB / 1.267 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/1.072, allocations: 2.234 kB / 1.267 GB, free: 4.879 MB / 0.9981 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.976e-05/1.072, allocations: 126.8 kB / 1.267 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/1.072, allocations: 7.359 kB / 1.267 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003966/1.072, allocations: 109.8 kB / 1.267 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/1.072, allocations: 0.8125 kB / 1.267 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/1.072, allocations: 4 kB / 1.267 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/1.072, allocations: 1.469 kB / 1.267 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/1.073, allocations: 181.7 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.073, allocations: 0.5625 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.67e-05/1.073, allocations: 15.83 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/1.073, allocations: 0.7188 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/1.073, allocations: 1.609 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.073, allocations: 0.8125 kB / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/1.073, allocations: 0 / 1.267 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003668/1.073, allocations: 210.7 kB / 1.267 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.932e-05/1.073, allocations: 79 kB / 1.267 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/1.073, allocations: 1.641 kB / 1.267 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/1.073, allocations: 15.27 kB / 1.267 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/1.073, allocations: 3.625 kB / 1.267 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/1.073, allocations: 2.594 kB / 1.267 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.051e-05/1.073, allocations: 98.61 kB / 1.268 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.073, allocations: 0 / 1.268 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002274/1.074, allocations: 17.36 kB / 1.268 GB, free: 4.137 MB / 0.9981 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.0001294/1.074, allocations: 105.7 kB / 1.268 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003959/1.074, allocations: 77.06 kB / 1.268 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/1.074, allocations: 4 kB / 1.268 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001681/1.074, allocations: 39.16 kB / 1.268 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/1.075, allocations: 7.406 kB / 1.268 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/1.075, allocations: 180.8 kB / 1.268 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/1.075, allocations: 0.6881 MB / 1.269 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.983e-05/1.075, allocations: 17.75 kB / 1.269 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/1.075, allocations: 0.7812 kB / 1.269 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of Templates: time 0.002962/1.078, allocations: 0.9413 MB / 1.27 GB, free: 3.07 MB / 0.9981 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.022921595955268]