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.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.001448/0.001448, allocations: 79.36 kB / 19.18 MB, free: 2.52 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.001737/0.001737, allocations: 166.1 kB / 22.46 MB, free: 5.375 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.457/1.457, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.908/2.908, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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 1.443e-06/1.443e-06, allocations: 0 / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.378e-05/2.522e-05, allocations: 2.281 kB / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002883/0.002908, allocations: 1.551 MB / 1.002 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003454/0.003253, allocations: 119.5 kB / 1.002 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.111e-05/0.003304, allocations: 0 / 1.002 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.003428, allocations: 19.86 kB / 1.002 GB, free: 5.594 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.361e-05/0.003462, allocations: 7.938 kB / 1.002 GB, free: 5.586 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.003694, allocations: 31.89 kB / 1.002 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.003798, allocations: 51.78 kB / 1.002 GB, free: 5.504 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.003912, allocations: 23.97 kB / 1.002 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.02e-05/0.003992, allocations: 27.97 kB / 1.002 GB, free: 5.453 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.494e-05/0.004067, allocations: 27.89 kB / 1.002 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.004088, allocations: 8 kB / 1.002 GB, free: 5.418 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.824e-05/0.004167, allocations: 12 kB / 1.002 GB, free: 5.406 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.619e-05/0.004213, allocations: 15.92 kB / 1.002 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.004252, allocations: 15.98 kB / 1.002 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.004404, allocations: 63.78 kB / 1.002 GB, free: 5.312 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.004408, allocations: 4 kB / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.01e-07/0.004409, allocations: 0 / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.004413, allocations: 0 / 1.002 GB, free: 5.309 MB / 0.9512 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.0006008/0.005014, allocations: 302 kB / 1.002 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.005056, allocations: 12.02 kB / 1.002 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.452e-05/0.0051, allocations: 8.891 kB / 1.002 GB, free: 4.961 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.005286, allocations: 125.7 kB / 1.002 GB, free: 4.812 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.0053, allocations: 8.375 kB / 1.002 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.005314, allocations: 4.375 kB / 1.002 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.005629, allocations: 82.2 kB / 1.003 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.005637, allocations: 192 / 1.003 GB, free: 4.715 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.005651, allocations: 4.375 kB / 1.003 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.005656, allocations: 4.312 kB / 1.003 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003566/0.006013, allocations: 91.78 kB / 1.003 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005674/0.00658, allocations: 264.4 kB / 1.003 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.006808, allocations: 58.58 kB / 1.003 GB, free: 4.262 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.00698, allocations: 40.84 kB / 1.003 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.007018, allocations: 8 kB / 1.003 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.00705, allocations: 30.56 kB / 1.003 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.021e-06/0.007051, allocations: 0 / 1.003 GB, free: 4.172 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0006126/0.007664, allocations: 137.5 kB / 1.003 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.007727, allocations: 55.41 kB / 1.003 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.007843, allocations: 121.8 kB / 1.003 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.007862, allocations: 25.7 kB / 1.003 GB, free: 3.805 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.007939, allocations: 92.14 kB / 1.003 GB, free: 3.711 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.007962, allocations: 15.83 kB / 1.003 GB, free: 3.695 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/0.008002, allocations: 17.66 kB / 1.004 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.008161, allocations: 318.8 kB / 1.004 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.008331, allocations: 31.95 kB / 1.004 GB, free: 3.32 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.008486, allocations: 32.16 kB / 1.004 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003211/0.008807, allocations: 84.84 kB / 1.004 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.008809, allocations: 0 / 1.004 GB, free: 3.203 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003773/0.009186, allocations: 105.6 kB / 1.004 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.009205, allocations: 8 kB / 1.004 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.00921, allocations: 4 kB / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.009224, allocations: 0 / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.00936, allocations: 19.91 kB / 1.004 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.009365, allocations: 4 kB / 1.004 GB, free: 3.059 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.009453, allocations: 15.88 kB / 1.004 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.009474, allocations: 4 kB / 1.004 GB, free: 3.039 MB / 0.9512 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 9.808e-05/0.009572, allocations: 114.4 kB / 1.004 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.02e-05/0.009602, allocations: 3.938 kB / 1.004 GB, free: 2.914 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004299/0.01003, allocations: 117.6 kB / 1.004 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.01003, allocations: 0 / 1.004 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.01004, allocations: 0 / 1.004 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.01004, allocations: 0 / 1.004 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.01021, allocations: 121.3 kB / 1.004 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01021, allocations: 0 / 1.004 GB, free: 2.641 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.01032, allocations: 15.98 kB / 1.004 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.01032, allocations: 7.938 kB / 1.004 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.01033, allocations: 0 / 1.004 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.01034, allocations: 3.938 kB / 1.004 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01034, allocations: 0 / 1.004 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004349/0.01077, allocations: 207.4 kB / 1.005 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.44e-05/0.01079, allocations: 7.891 kB / 1.005 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.0108, allocations: 0 / 1.005 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.01092, allocations: 19.97 kB / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.01097, allocations: 8 kB / 1.005 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.01097, allocations: 0 / 1.005 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.751e-05/0.01104, allocations: 95.2 kB / 1.005 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01104, allocations: 0 / 1.005 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002405/0.01128, allocations: 8 kB / 1.005 GB, free: 2.258 MB / 0.9512 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.0001548/0.01144, allocations: 95.25 kB / 1.005 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004113/0.01185, allocations: 87.84 kB / 1.005 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01185, allocations: 0 / 1.005 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.01203, allocations: 43.95 kB / 1.005 GB, free: 2.027 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.01231, allocations: 0 / 1.005 GB, free: 2.027 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003713/0.01268, allocations: 148.8 kB / 1.005 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.25e-05/0.01277, allocations: 75.33 kB / 1.005 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.317e-05/0.01281, allocations: 11.98 kB / 1.005 GB, free: 1.75 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.658e-05/0.01288, allocations: 16.5 kB / 1.005 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.01288, allocations: 0 / 1.005 GB, free: 1.734 MB / 0.9512 GB Notification: Performance of Templates: time 0.003779/0.01665, allocations: 0.7945 MB / 1.006 GB, free: 0.9453 MB / 0.9512 GB " [Timeout remaining time 300] 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/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.129262287169695]