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.002197/0.002197, allocations: 80.41 kB / 20.23 MB, free: 4.203 MB / 18.57 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.002341/0.002341, allocations: 165.7 kB / 23.55 MB, free: 0.8906 MB / 18.57 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.466/1.466, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.834/2.834, allocations: 377.8 MB / 0.6232 GB, free: 8.508 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.964e-06/1.964e-06, allocations: 0 / 0.8108 GB, free: 0.9219 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.163e-05/3.359e-05, allocations: 6.469 kB / 0.8108 GB, free: 0.918 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004502/0.004536, allocations: 1.557 MB / 0.8123 GB, free: 15.37 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.000508/0.005044, allocations: 121.4 kB / 0.8124 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.407e-05/0.005108, allocations: 0 / 0.8124 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.005274, allocations: 12.69 kB / 0.8125 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 4.603e-05/0.00532, allocations: 10.06 kB / 0.8125 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.005616, allocations: 24.66 kB / 0.8125 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001525/0.005768, allocations: 59.83 kB / 0.8125 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001348/0.005903, allocations: 16.7 kB / 0.8126 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.006006, allocations: 31.91 kB / 0.8126 GB, free: 15.11 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 9.302e-05/0.006099, allocations: 33.12 kB / 0.8126 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.006126, allocations: 7.984 kB / 0.8126 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 7.465e-05/0.006201, allocations: 8 kB / 0.8126 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 5.478e-05/0.006256, allocations: 16.67 kB / 0.8127 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 5.548e-05/0.006311, allocations: 15.92 kB / 0.8127 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002062/0.006517, allocations: 68.69 kB / 0.8127 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.006521, allocations: 0 / 0.8127 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.333e-06/0.006523, allocations: 0 / 0.8127 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.006527, allocations: 0.6562 kB / 0.8127 GB, free: 14.96 MB / 0.7292 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.0008194/0.007347, allocations: 303.2 kB / 0.813 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.007398, allocations: 12.03 kB / 0.813 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.687e-05/0.007475, allocations: 13.45 kB / 0.8131 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.007753, allocations: 126.2 kB / 0.8132 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.007767, allocations: 384 / 0.8132 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.00779, allocations: 5.625 kB / 0.8132 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/0.008221, allocations: 86.2 kB / 0.8133 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.008233, allocations: 2.469 kB / 0.8133 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.008248, allocations: 384 / 0.8133 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.008253, allocations: 384 / 0.8133 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005241/0.008777, allocations: 88.53 kB / 0.8133 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007724/0.00955, allocations: 266.3 kB / 0.8136 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.009878, allocations: 56.08 kB / 0.8137 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.01013, allocations: 48.88 kB / 0.8137 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.01018, allocations: 0 / 0.8137 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/0.01023, allocations: 39.78 kB / 0.8137 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.01023, allocations: 0 / 0.8137 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.000903/0.01113, allocations: 131.5 kB / 0.8139 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.0112, allocations: 55.92 kB / 0.8139 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.01136, allocations: 114.7 kB / 0.814 GB, free: 13.51 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.01139, allocations: 29.7 kB / 0.8141 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.01149, allocations: 92.03 kB / 0.8141 GB, free: 13.38 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.01152, allocations: 16.75 kB / 0.8142 GB, free: 13.37 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.062e-05/0.01159, allocations: 13.72 kB / 0.8142 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002381/0.01183, allocations: 315.4 kB / 0.8145 GB, free: 13.03 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.01207, allocations: 41.27 kB / 0.8145 GB, free: 12.99 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.01229, allocations: 29.19 kB / 0.8145 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000468/0.01276, allocations: 78.14 kB / 0.8146 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01276, allocations: 0 / 0.8146 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005727/0.01333, allocations: 111.3 kB / 0.8147 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.01335, allocations: 4 kB / 0.8147 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01336, allocations: 1.609 kB / 0.8147 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.01338, allocations: 0 / 0.8147 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.01358, allocations: 20.5 kB / 0.8147 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.01359, allocations: 3.938 kB / 0.8147 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.01372, allocations: 12.73 kB / 0.8148 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.01374, allocations: 1.688 kB / 0.8148 GB, free: 12.73 MB / 0.7292 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.0001489/0.01389, allocations: 113.8 kB / 0.8149 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.01395, allocations: 19.86 kB / 0.8149 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005719/0.01452, allocations: 118 kB / 0.815 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.01452, allocations: 0 / 0.815 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.01453, allocations: 0 / 0.815 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.01453, allocations: 0 / 0.815 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002706/0.0148, allocations: 129.2 kB / 0.8151 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.0148, allocations: 0 / 0.8151 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.01494, allocations: 15.98 kB / 0.8151 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.01495, allocations: 3.938 kB / 0.8151 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.01496, allocations: 0.5 kB / 0.8151 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.01496, allocations: 0 / 0.8151 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01496, allocations: 5.812 kB / 0.8152 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005876/0.01555, allocations: 200.5 kB / 0.8153 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.01557, allocations: 7.938 kB / 0.8153 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.01559, allocations: 0 / 0.8153 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.01577, allocations: 16.62 kB / 0.8154 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.01583, allocations: 6.156 kB / 0.8154 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.01584, allocations: 4 kB / 0.8154 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 8.993e-05/0.01593, allocations: 91.7 kB / 0.8155 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9e-08/0.01593, allocations: 0 / 0.8155 GB, free: 11.96 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000443/0.01638, allocations: 8 kB / 0.8155 GB, free: 11.95 MB / 0.7292 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.0002124/0.01659, allocations: 102.4 kB / 0.8156 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008287/0.01742, allocations: 75.86 kB / 0.8156 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.01742, allocations: 0 / 0.8156 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.01769, allocations: 44.89 kB / 0.8157 GB, free: 11.73 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.01818, allocations: 8.312 kB / 0.8157 GB, free: 11.72 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005243/0.01871, allocations: 149.5 kB / 0.8158 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.01883, allocations: 76.39 kB / 0.8159 GB, free: 11.46 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.6e-05/0.0189, allocations: 9.109 kB / 0.8159 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.01895, allocations: 12.5 kB / 0.8159 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of SimCode: time 5.81e-07/0.01895, allocations: 0 / 0.8159 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of Templates: time 0.005137/0.02409, allocations: 0.8288 MB / 0.8167 GB, free: 10.64 MB / 0.7292 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/jenkins/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: 7.531795377959497]