Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008858/0.0008858, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 179.2 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.622/2.622, allocations: 437.8 MB / 0.7128 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.000375, allocations: 12 kB / 0.8735 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6916/0.692, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001673/0.6937, allocations: 1.254 MB / 1.025 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003488/0.6941, allocations: 108.5 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.974e-05/0.6942, allocations: 0 / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.6943, allocations: 11.94 kB / 1.025 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.52e-05/0.6943, allocations: 7.922 kB / 1.025 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002047/0.6945, allocations: 31.91 kB / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.557e-05/0.6946, allocations: 51.84 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.6947, allocations: 19.98 kB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.651e-05/0.6948, allocations: 19.92 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.275e-05/0.6949, allocations: 23.86 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.6949, allocations: 4 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.223e-05/0.695, allocations: 19.97 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.695, allocations: 4 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.6951, allocations: 57.5 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.812e-05/0.6952, allocations: 35.88 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.6952, allocations: 0 / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6952, allocations: 0 / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.6952, allocations: 0 / 1.025 GB, free: 14.2 MB / 0.7794 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.0005102/0.6957, allocations: 381.3 kB / 1.026 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.6958, allocations: 12.03 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.604e-05/0.6958, allocations: 8.844 kB / 1.026 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.696, allocations: 184.2 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.696, allocations: 8.375 kB / 1.026 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.696, allocations: 4.375 kB / 1.026 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.6963, allocations: 102.1 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.6964, allocations: 192 / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.6964, allocations: 3.938 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.6964, allocations: 3.938 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.6967, allocations: 103.9 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.6973, allocations: 340.6 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.6976, allocations: 74.52 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.6977, allocations: 48.92 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.6978, allocations: 4 kB / 1.027 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.6978, allocations: 42.58 kB / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.403e-06/0.6978, allocations: 0 / 1.027 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006244/0.6985, allocations: 169.6 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.6985, allocations: 51.41 kB / 1.027 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.909e-05/0.6986, allocations: 121.8 kB / 1.027 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.6986, allocations: 25.7 kB / 1.027 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.6987, allocations: 96.03 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.6987, allocations: 11.84 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.6988, allocations: 13.72 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.6989, allocations: 314.8 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.699, allocations: 47.95 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.6992, allocations: 47.95 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.6995, allocations: 104.7 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.6995, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003727/0.6999, allocations: 121.5 kB / 1.028 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.6999, allocations: 8 kB / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.7, allocations: 0 / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.7, allocations: 7.938 kB / 1.028 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.7001, allocations: 23.97 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.7001, allocations: 3.984 kB / 1.028 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.958e-05/0.7002, allocations: 19.98 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.7003, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 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 8.81e-05/0.7004, allocations: 126.2 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.7004, allocations: 4 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004174/0.7008, allocations: 133.5 kB / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7008, allocations: 0 / 1.028 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7008, allocations: 3.938 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.7008, allocations: 4 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.701, allocations: 185.5 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.701, allocations: 0 / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.7011, allocations: 23.97 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.7012, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.7012, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.7012, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7012, allocations: 0 / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.7016, allocations: 231.7 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.7017, allocations: 81.02 kB / 1.028 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.7017, allocations: 4.047 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.7018, allocations: 15.97 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.7018, allocations: 11.98 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.7019, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.921e-05/0.7019, allocations: 95.27 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7019, allocations: 4 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002388/0.7022, allocations: 12 kB / 1.029 GB, free: 10.5 MB / 0.7794 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.000142/0.7023, allocations: 99.19 kB / 1.029 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003847/0.7027, allocations: 99.86 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7027, allocations: 0 / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.7029, allocations: 55.95 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.7032, allocations: 6.344 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003681/0.7036, allocations: 198.3 kB / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.704, allocations: 0.6926 MB / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.7041, allocations: 7.438 kB / 1.03 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.7041, allocations: 0 / 1.03 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of Templates: time 0.002611/0.7067, allocations: 0.9233 MB / 1.031 GB, free: 8.363 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches