Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0007183/0.0007184, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004545/0.004545, allocations: 169 kB / 16.26 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001618/0.001618, allocations: 270.6 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9329/0.9329, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004656/0.0004655, allocations: 13.06 kB / 0.5986 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1927, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001641/0.1943, allocations: 1.253 MB / 0.6863 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003505/0.1947, allocations: 115.3 kB / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.764e-05/0.1948, allocations: 0 / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1949, allocations: 3.938 kB / 0.6865 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.567e-05/0.1949, allocations: 7.922 kB / 0.6865 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.1951, allocations: 23.97 kB / 0.6865 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.773e-05/0.1952, allocations: 55.78 kB / 0.6865 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1953, allocations: 26.59 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.498e-05/0.1954, allocations: 19.92 kB / 0.6866 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.923e-05/0.1955, allocations: 20.45 kB / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.1955, allocations: 2.25 kB / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.017e-05/0.1956, allocations: 15.98 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.1956, allocations: 15.91 kB / 0.6866 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.98e-05/0.1957, allocations: 49.52 kB / 0.6867 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.1958, allocations: 56.02 kB / 0.6867 GB, free: 13.39 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1958, allocations: 0 / 0.6867 GB, free: 13.39 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1958, allocations: 0.5312 kB / 0.6867 GB, free: 13.39 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1958, allocations: 0 / 0.6867 GB, free: 13.39 MB / 494.1 MB 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.0005133/0.1964, allocations: 378.4 kB / 0.6871 GB, free: 12.97 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1964, allocations: 8.031 kB / 0.6871 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.493e-05/0.1964, allocations: 12.5 kB / 0.6871 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001806/0.1966, allocations: 184.2 kB / 0.6873 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1966, allocations: 8.312 kB / 0.6873 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.1967, allocations: 8.375 kB / 0.6873 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.197, allocations: 98.84 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.197, allocations: 192 / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.197, allocations: 4.656 kB / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.197, allocations: 0 / 0.6874 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003337/0.1973, allocations: 103.1 kB / 0.6875 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005423/0.1979, allocations: 352.5 kB / 0.6878 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.1981, allocations: 66.53 kB / 0.6879 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1983, allocations: 57 kB / 0.688 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.1983, allocations: 3.938 kB / 0.688 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.1984, allocations: 30.56 kB / 0.688 GB, free: 11.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1984, allocations: 0 / 0.688 GB, free: 11.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005733/0.1989, allocations: 173.6 kB / 0.6882 GB, free: 11.77 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.199, allocations: 51.41 kB / 0.6882 GB, free: 11.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.1991, allocations: 113.8 kB / 0.6883 GB, free: 11.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1991, allocations: 29.7 kB / 0.6883 GB, free: 11.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.381e-05/0.1992, allocations: 92.05 kB / 0.6884 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.1992, allocations: 15.89 kB / 0.6884 GB, free: 11.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.1992, allocations: 9.719 kB / 0.6885 GB, free: 11.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1993, allocations: 318.8 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1995, allocations: 43.95 kB / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.1996, allocations: 47.91 kB / 0.6888 GB, free: 11.02 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.1999, allocations: 96.78 kB / 0.6889 GB, free: 10.92 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1999, allocations: 3.984 kB / 0.6889 GB, free: 10.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003259/0.2003, allocations: 125.5 kB / 0.6891 GB, free: 10.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2003, allocations: 11.94 kB / 0.6891 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2003, allocations: 3.938 kB / 0.6891 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2003, allocations: 0 / 0.6891 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.2005, allocations: 27.97 kB / 0.6891 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2005, allocations: 3.984 kB / 0.6891 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.281e-05/0.2006, allocations: 15.98 kB / 0.6891 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2006, allocations: 0 / 0.6891 GB, free: 10.73 MB / 494.1 MB 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.213e-05/0.2007, allocations: 122.4 kB / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.2007, allocations: 11.91 kB / 0.6893 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003876/0.2011, allocations: 133.5 kB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2011, allocations: 0 / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2011, allocations: 0 / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2011, allocations: 4 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.2013, allocations: 185.5 kB / 0.6896 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2013, allocations: 0 / 0.6896 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.604e-05/0.2014, allocations: 19.98 kB / 0.6896 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2014, allocations: 4 kB / 0.6896 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.2015, allocations: 3.984 kB / 0.6896 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2015, allocations: 0 / 0.6896 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2015, allocations: 0 / 0.6896 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.2018, allocations: 224.2 kB / 0.6898 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.803e-05/0.2019, allocations: 85 kB / 0.6899 GB, free: 9.848 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.2019, allocations: 4.047 kB / 0.6899 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.202, allocations: 23.97 kB / 0.6899 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.2021, allocations: 0 / 0.6899 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2021, allocations: 3.984 kB / 0.6899 GB, free: 9.816 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.977e-05/0.2021, allocations: 91.28 kB / 0.69 GB, free: 9.727 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2022, allocations: 0 / 0.69 GB, free: 9.727 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.2024, allocations: 12 kB / 0.69 GB, free: 9.715 MB / 494.1 MB 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.0001593/0.2025, allocations: 103.2 kB / 0.6901 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003664/0.2029, allocations: 99.86 kB / 0.6902 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.2029, allocations: 4 kB / 0.6902 GB, free: 9.504 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.2031, allocations: 51.89 kB / 0.6903 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.2034, allocations: 8 kB / 0.6903 GB, free: 9.445 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.2037, allocations: 172.6 kB / 0.6904 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.204, allocations: 0.6887 MB / 0.6911 GB, free: 8.539 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.125e-05/0.204, allocations: 7.984 kB / 0.6911 GB, free: 8.531 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.438e-05/0.2041, allocations: 7.438 kB / 0.6911 GB, free: 8.523 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2041, allocations: 4 kB / 0.6911 GB, free: 8.52 MB / 494.1 MB Notification: Performance of Templates: time 0.002867/0.2069, allocations: 0.628 MB / 0.6917 GB, free: 7.898 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)