Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.304/1.304, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 179.4 kB / 326.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007912/0.0007913, allocations: 97.94 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003407, allocations: 9 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2214, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.3947, allocations: 131.9 MB / 1.029 GB, free: 11.89 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.395, allocations: 71.95 kB / 1.029 GB, free: 11.82 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003509/0.3986, allocations: 1.128 MB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.532e-06/0.3986, allocations: 0 / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.806e-06/0.3986, allocations: 0 / 1.03 GB, free: 10.68 MB / 0.6823 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.0004741/0.3991, allocations: 383.1 kB / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.3991, allocations: 12.03 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.3992, allocations: 3.906 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.3994, allocations: 190.9 kB / 1.031 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3994, allocations: 8 kB / 1.031 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.3995, allocations: 4 kB / 1.031 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.3998, allocations: 97.58 kB / 1.031 GB, free: 9.906 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3998, allocations: 0 / 1.031 GB, free: 9.906 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.3998, allocations: 0 / 1.031 GB, free: 9.906 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3998, allocations: 4 kB / 1.031 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.4001, allocations: 99.91 kB / 1.031 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006134/0.4008, allocations: 336.6 kB / 1.031 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/0.401, allocations: 74.53 kB / 1.031 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.4011, allocations: 0 / 1.031 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/0.4011, allocations: 34.56 kB / 1.031 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 3.326e-06/0.4011, allocations: 4.094 kB / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0005776/0.4017, allocations: 177.5 kB / 1.031 GB, free: 9.117 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.4018, allocations: 55.36 kB / 1.031 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.449e-05/0.4018, allocations: 108.8 kB / 1.032 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.4019, allocations: 25.7 kB / 1.032 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.402, allocations: 108 kB / 1.032 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.402, allocations: 3.906 kB / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-06/0.402, allocations: 0 / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4021, allocations: 322.8 kB / 1.032 GB, free: 8.469 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.4023, allocations: 43.95 kB / 1.032 GB, free: 8.426 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4024, allocations: 47.95 kB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.4026, allocations: 39.97 kB / 1.032 GB, free: 8.34 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4026, allocations: 3.938 kB / 1.032 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003292/0.403, allocations: 137.5 kB / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.403, allocations: 8 kB / 1.032 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.403, allocations: 0 / 1.032 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.403, allocations: 0 / 1.032 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.4032, allocations: 19.98 kB / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.4032, allocations: 0 / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.913e-05/0.4033, allocations: 31.83 kB / 1.032 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.4033, allocations: 336 / 1.032 GB, free: 8.137 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.848e-05/0.4034, allocations: 113.8 kB / 1.032 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.4034, allocations: 4 kB / 1.032 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.4039, allocations: 141.4 kB / 1.033 GB, free: 7.859 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4039, allocations: 4 kB / 1.033 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4039, allocations: 0 / 1.033 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4039, allocations: 0 / 1.033 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.4041, allocations: 177.6 kB / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4041, allocations: 0 / 1.033 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.4043, allocations: 27.98 kB / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.4043, allocations: 0 / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.4043, allocations: 0 / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4043, allocations: 0 / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4043, allocations: 0 / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.4047, allocations: 231.3 kB / 1.033 GB, free: 7.363 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.336e-05/0.4048, allocations: 85.11 kB / 1.033 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.4048, allocations: 3.984 kB / 1.033 GB, free: 7.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.4049, allocations: 15.98 kB / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.405, allocations: 0 / 1.033 GB, free: 7.242 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.405, allocations: 4 kB / 1.033 GB, free: 7.238 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.073e-05/0.4051, allocations: 91.27 kB / 1.033 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4051, allocations: 0 / 1.033 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002156/0.4053, allocations: 15.84 kB / 1.033 GB, free: 7.133 MB / 0.6823 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001969/0.4055, allocations: 115.2 kB / 1.033 GB, free: 7.012 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003484/0.4058, allocations: 95.92 kB / 1.033 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4058, allocations: 0 / 1.033 GB, free: 6.918 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.406, allocations: 51.89 kB / 1.033 GB, free: 6.867 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001749/0.4062, allocations: 15.95 kB / 1.033 GB, free: 6.852 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.4066, allocations: 156.9 kB / 1.034 GB, free: 6.664 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.4068, allocations: 0.6926 MB / 1.034 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.492e-05/0.4069, allocations: 11.98 kB / 1.034 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.4069, allocations: 11.38 kB / 1.034 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of SimCode: time 2.8e-07/0.4069, allocations: 0 / 1.034 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of Templates: time 0.00268/0.4096, allocations: 0.6101 MB / 1.035 GB, free: 5.32 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_Average.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches