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.001014/0.001014, allocations: 102.7 kB / 16.35 MB, free: 5.828 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.001033/0.001033, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.238/1.238, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001974/0.001974, allocations: 282.8 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8849/0.8849, allocations: 169.3 MB / 0.4989 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 98.91 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1546, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002392/0.157, allocations: 1.535 MB / 0.6831 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002688/0.1573, allocations: 108.5 kB / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.022e-05/0.1573, allocations: 0 / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.1575, allocations: 11.92 kB / 0.6832 GB, free: 5.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.432e-05/0.1575, allocations: 11.88 kB / 0.6832 GB, free: 5.785 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.1577, allocations: 27.97 kB / 0.6832 GB, free: 5.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.109e-05/0.1578, allocations: 51.78 kB / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.1579, allocations: 31.97 kB / 0.6833 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.098e-05/0.1579, allocations: 27.91 kB / 0.6834 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.52e-05/0.158, allocations: 27.91 kB / 0.6834 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.158, allocations: 4 kB / 0.6834 GB, free: 5.617 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.253e-05/0.1581, allocations: 15.98 kB / 0.6834 GB, free: 5.602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.821e-05/0.1581, allocations: 15.92 kB / 0.6834 GB, free: 5.586 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.1582, allocations: 27.88 kB / 0.6834 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1583, allocations: 63.73 kB / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.1583, allocations: 0 / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1583, allocations: 0 / 0.6835 GB, free: 5.496 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1583, allocations: 0 / 0.6835 GB, free: 5.496 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.0004502/0.1588, allocations: 379.2 kB / 0.6839 GB, free: 5.074 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.1588, allocations: 8.031 kB / 0.6839 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.1588, allocations: 8.844 kB / 0.6839 GB, free: 5.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.159, allocations: 188.3 kB / 0.6841 GB, free: 4.836 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.159, allocations: 4.375 kB / 0.6841 GB, free: 4.832 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.159, allocations: 384 / 0.6841 GB, free: 4.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002508/0.1593, allocations: 86.2 kB / 0.6841 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.1593, allocations: 192 / 0.6841 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.1593, allocations: 3.938 kB / 0.6841 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.1593, allocations: 0 / 0.6841 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002754/0.1596, allocations: 95.78 kB / 0.6842 GB, free: 4.645 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004802/0.1601, allocations: 320.6 kB / 0.6845 GB, free: 4.281 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.1603, allocations: 66.56 kB / 0.6846 GB, free: 4.207 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.1604, allocations: 40.92 kB / 0.6846 GB, free: 4.164 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.1605, allocations: 7.984 kB / 0.6847 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1605, allocations: 34.56 kB / 0.6847 GB, free: 4.113 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1605, allocations: 0 / 0.6847 GB, free: 4.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004838/0.161, allocations: 141.5 kB / 0.6848 GB, free: 3.969 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.161, allocations: 55.41 kB / 0.6849 GB, free: 3.902 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.085e-05/0.1611, allocations: 113.8 kB / 0.685 GB, free: 3.781 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.1611, allocations: 25.7 kB / 0.685 GB, free: 3.75 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.1612, allocations: 99.97 kB / 0.6851 GB, free: 3.648 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1612, allocations: 7.906 kB / 0.6851 GB, free: 3.641 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.1613, allocations: 17.72 kB / 0.6851 GB, free: 3.617 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.1614, allocations: 326.7 kB / 0.6854 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1615, allocations: 31.97 kB / 0.6855 GB, free: 3.258 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.1616, allocations: 35.95 kB / 0.6855 GB, free: 3.223 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.1619, allocations: 72.78 kB / 0.6856 GB, free: 3.148 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1619, allocations: 0 / 0.6856 GB, free: 3.148 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002854/0.1622, allocations: 105.6 kB / 0.6857 GB, free: 3.039 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.1622, allocations: 4 kB / 0.6857 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.1622, allocations: 0 / 0.6857 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.1622, allocations: 4 kB / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1623, allocations: 15.98 kB / 0.6857 GB, free: 3.016 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1623, allocations: 3.938 kB / 0.6857 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.011e-05/0.1624, allocations: 15.89 kB / 0.6857 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.1624, allocations: 0 / 0.6857 GB, free: 2.996 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 0.0001058/0.1625, allocations: 125.8 kB / 0.6858 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.1626, allocations: 4 kB / 0.6858 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003196/0.1629, allocations: 109.5 kB / 0.6859 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1629, allocations: 7.984 kB / 0.686 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1629, allocations: 0 / 0.686 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1629, allocations: 0 / 0.686 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.1631, allocations: 185.5 kB / 0.6861 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1631, allocations: 0 / 0.6861 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.91e-05/0.1632, allocations: 19.98 kB / 0.6861 GB, free: 2.484 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1632, allocations: 4 kB / 0.6862 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.1632, allocations: 0 / 0.6862 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1632, allocations: 3.938 kB / 0.6862 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1632, allocations: 0 / 0.6862 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003175/0.1636, allocations: 203.3 kB / 0.6864 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.06e-05/0.1636, allocations: 89.05 kB / 0.6864 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.1636, allocations: 0 / 0.6864 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.942e-05/0.1637, allocations: 7.984 kB / 0.6864 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.1638, allocations: 7.984 kB / 0.6865 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.1638, allocations: 0 / 0.6865 GB, free: 2.141 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.474e-05/0.1638, allocations: 95.2 kB / 0.6865 GB, free: 2.047 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1638, allocations: 0 / 0.6865 GB, free: 2.047 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.1641, allocations: 19.91 kB / 0.6866 GB, free: 2.027 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.0001173/0.1642, allocations: 103.2 kB / 0.6867 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.1645, allocations: 80.27 kB / 0.6867 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1645, allocations: 0 / 0.6867 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.1647, allocations: 35.97 kB / 0.6868 GB, free: 1.805 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.1649, allocations: 22.33 kB / 0.6868 GB, free: 1.785 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002855/0.1652, allocations: 141.8 kB / 0.6869 GB, free: 1.621 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1655, allocations: 0.6885 MB / 0.6876 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.037e-05/0.1655, allocations: 15.95 kB / 0.6876 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.1656, allocations: 11.44 kB / 0.6876 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1656, allocations: 0 / 0.6876 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of Templates: time 0.00271/0.1683, allocations: 0.7664 MB / 0.6884 GB, free: 124 kB / 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)