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.00121/0.00121, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001392/0.001392, allocations: 191.8 kB / 16.25 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.338/1.338, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001935/0.001935, allocations: 294.7 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9551/0.9551, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 99.09 kB / 0.5947 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1601, allocations: 86.99 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002553/0.1627, allocations: 1.587 MB / 0.6812 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002822/0.163, allocations: 108.5 kB / 0.6813 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.045e-05/0.1631, allocations: 0 / 0.6813 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.1632, allocations: 13.64 kB / 0.6813 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.537e-05/0.1633, allocations: 7.938 kB / 0.6813 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.1634, allocations: 23.97 kB / 0.6813 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.243e-05/0.1635, allocations: 56.31 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.1637, allocations: 30.22 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.694e-05/0.1637, allocations: 26.97 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.37e-05/0.1638, allocations: 23.92 kB / 0.6815 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.1638, allocations: 8 kB / 0.6815 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.058e-05/0.1638, allocations: 11.98 kB / 0.6815 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.713e-05/0.1639, allocations: 23.91 kB / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.109e-05/0.1639, allocations: 19.88 kB / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.164, allocations: 60.03 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1641, allocations: 0 / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1641, allocations: 0.7812 kB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1641, allocations: 0 / 0.6816 GB, free: 15.07 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.0004788/0.1646, allocations: 376.8 kB / 0.6819 GB, free: 14.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1646, allocations: 12.03 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.1646, allocations: 9.375 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.1648, allocations: 189.2 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.1648, allocations: 8.375 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.1648, allocations: 4.375 kB / 0.6821 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.1651, allocations: 87.3 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.1651, allocations: 192 / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.1651, allocations: 3.938 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1651, allocations: 4 kB / 0.6822 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.1654, allocations: 83.84 kB / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004787/0.1659, allocations: 328.6 kB / 0.6826 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000186/0.1661, allocations: 62.56 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.1663, allocations: 40.92 kB / 0.6827 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.1663, allocations: 3.984 kB / 0.6827 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.1664, allocations: 42.5 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1664, allocations: 0 / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005031/0.1669, allocations: 137.5 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.1669, allocations: 55.34 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.04e-05/0.167, allocations: 113.8 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.167, allocations: 25.7 kB / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.194e-05/0.1671, allocations: 96.03 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.1671, allocations: 4.422 kB / 0.6832 GB, free: 13.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/0.1671, allocations: 17.72 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.961e-05/0.1672, allocations: 326.8 kB / 0.6835 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.1674, allocations: 31.97 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.1675, allocations: 35.95 kB / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.1678, allocations: 68.78 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1678, allocations: 0 / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003001/0.1681, allocations: 109.5 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.1681, allocations: 7.938 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1681, allocations: 4 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.1682, allocations: 0 / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.1683, allocations: 11.98 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1683, allocations: 0 / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.1684, allocations: 23.89 kB / 0.6838 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.1684, allocations: 4 kB / 0.6838 GB, free: 12.57 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 7.171e-05/0.1685, allocations: 118.4 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.1685, allocations: 4 kB / 0.6839 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003633/0.1689, allocations: 117.8 kB / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1689, allocations: 4 kB / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1689, allocations: 0 / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.1689, allocations: 4.031 kB / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.1691, allocations: 185.5 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1691, allocations: 0 / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.403e-05/0.1692, allocations: 15.98 kB / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1692, allocations: 0 / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.1692, allocations: 0 / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1692, allocations: 0 / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1692, allocations: 11.98 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000344/0.1696, allocations: 203.3 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.046e-05/0.1696, allocations: 77.11 kB / 0.6845 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.1696, allocations: 0 / 0.6845 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1697, allocations: 23.97 kB / 0.6845 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.1698, allocations: 0 / 0.6845 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.1698, allocations: 4 kB / 0.6845 GB, free: 11.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.11e-05/0.1698, allocations: 91.27 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1698, allocations: 3.938 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1701, allocations: 11.91 kB / 0.6846 GB, free: 11.61 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.0001098/0.1702, allocations: 103.1 kB / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.1705, allocations: 91.91 kB / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.1706, allocations: 0 / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.1707, allocations: 35.91 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.171, allocations: 14.23 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003119/0.1713, allocations: 165.5 kB / 0.685 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002412/0.1715, allocations: 0.6885 MB / 0.6857 GB, free: 10.46 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.111e-05/0.1716, allocations: 7.984 kB / 0.6857 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.1716, allocations: 11.44 kB / 0.6857 GB, free: 10.44 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1716, allocations: 0 / 0.6857 GB, free: 10.44 MB / 494.1 MB Notification: Performance of Templates: time 0.002573/0.1742, allocations: 0.6547 MB / 0.6864 GB, free: 9.789 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)