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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001413/0.001413, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 195.2 kB / 16.14 MB, free: 6.629 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.838/2.838, allocations: 437 MB / 0.71 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002016, allocations: 63.89 kB / 0.8686 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6146/0.6166, allocations: 151.6 MB / 1.017 GB, free: 2.785 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003027/0.6197, allocations: 1.601 MB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003986/0.6201, allocations: 112.5 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.6202, allocations: 7.938 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.6203, allocations: 0 / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.521e-05/0.6204, allocations: 3.938 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.6206, allocations: 35.91 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.6207, allocations: 55.83 kB / 1.018 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.6208, allocations: 19.98 kB / 1.018 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.757e-05/0.6209, allocations: 19.92 kB / 1.018 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.151e-05/0.6209, allocations: 27.91 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.621, allocations: 8 kB / 1.018 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.731e-05/0.621, allocations: 8 kB / 1.018 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.6211, allocations: 23.86 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.203e-05/0.6212, allocations: 23.86 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.6213, allocations: 51.8 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.6213, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.92e-07/0.6213, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.6213, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 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.0005915/0.6219, allocations: 389.2 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.6219, allocations: 8.031 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.622, allocations: 8.938 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.6222, allocations: 184.2 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.6222, allocations: 8.375 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.6222, allocations: 384 / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003239/0.6226, allocations: 94.12 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.6226, allocations: 192 / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.6226, allocations: 3.938 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.6226, allocations: 4 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.623, allocations: 79.92 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005884/0.6236, allocations: 336.6 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.6238, allocations: 62.53 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.624, allocations: 40.91 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.624, allocations: 0 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.624, allocations: 34.56 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.624, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005998/0.6246, allocations: 141.5 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.6247, allocations: 59.39 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.6248, allocations: 121.8 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.6248, allocations: 25.7 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.6249, allocations: 88.14 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.6249, allocations: 15.73 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.625, allocations: 17.72 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.6251, allocations: 314.8 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.6253, allocations: 35.95 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.6254, allocations: 35.97 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.6257, allocations: 76.77 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.6257, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000341/0.6261, allocations: 113.5 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.6261, allocations: 4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.6261, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.6261, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.6263, allocations: 19.97 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.6263, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.339e-05/0.6264, allocations: 11.98 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.6264, allocations: 4 kB / 1.021 GB, free: 14.27 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 0.0001/0.6265, allocations: 117.8 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.6265, allocations: 7.906 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003976/0.627, allocations: 117.4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.627, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.627, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.627, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.6272, allocations: 177.6 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.6272, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.6273, allocations: 19.97 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.6273, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.6273, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.6273, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6273, allocations: 0 / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.6277, allocations: 211.6 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.6278, allocations: 81.11 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.6278, allocations: 48 / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.6279, allocations: 11.97 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.628, allocations: 11.98 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.628, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.061e-05/0.6281, allocations: 99.64 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6281, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002497/0.6283, allocations: 8 kB / 1.022 GB, free: 13.3 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.000162/0.6285, allocations: 99.72 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003727/0.6289, allocations: 75.92 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6289, allocations: 7.875 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.6291, allocations: 47.89 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.6294, allocations: 4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.6298, allocations: 167.2 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.6301, allocations: 0.6888 MB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.931e-05/0.6301, allocations: 11.98 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.6302, allocations: 7.438 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of SimCode: time 3.81e-07/0.6302, allocations: 0 / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of Templates: time 0.003143/0.6333, allocations: 0.6258 MB / 1.023 GB, free: 11.52 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches