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.0007561/0.0007561, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.000834/0.0008341, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001703/0.001704, allocations: 262.9 kB / 291.3 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9461/0.9461, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004249/0.0004249, allocations: 15.03 kB / 0.598 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1683, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001712/0.1701, allocations: 1.229 MB / 0.6857 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002896/0.1704, allocations: 113.2 kB / 0.6858 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.1704, allocations: 0.5312 kB / 0.6858 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.613e-05/0.1705, allocations: 11.92 kB / 0.6858 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.414e-05/0.1706, allocations: 5.125 kB / 0.6858 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.1708, allocations: 19.98 kB / 0.6858 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.201e-05/0.1709, allocations: 49.75 kB / 0.6859 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.171, allocations: 26.47 kB / 0.6859 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.91e-05/0.171, allocations: 19.92 kB / 0.6859 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.744e-05/0.1711, allocations: 27.89 kB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.1711, allocations: 4 kB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.625e-05/0.1712, allocations: 4 kB / 0.6859 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.837e-05/0.1712, allocations: 15.92 kB / 0.686 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.759e-05/0.1712, allocations: 29.7 kB / 0.686 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.924e-05/0.1713, allocations: 45.33 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1713, allocations: 0 / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1713, allocations: 0 / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.1714, allocations: 0.5625 kB / 0.686 GB, free: 13.86 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.0004471/0.1718, allocations: 381.7 kB / 0.6864 GB, free: 13.45 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1719, allocations: 8.781 kB / 0.6864 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.1719, allocations: 11.86 kB / 0.6864 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.172, allocations: 190.3 kB / 0.6866 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1721, allocations: 4 kB / 0.6866 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.1721, allocations: 4 kB / 0.6866 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/0.1723, allocations: 98.08 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1723, allocations: 0 / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.1724, allocations: 2.438 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1724, allocations: 3.938 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.1727, allocations: 106.3 kB / 0.6868 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005445/0.1732, allocations: 330.4 kB / 0.6871 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.1734, allocations: 75.73 kB / 0.6872 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.1736, allocations: 47.33 kB / 0.6872 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-05/0.1736, allocations: 13 kB / 0.6873 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.1737, allocations: 30.56 kB / 0.6873 GB, free: 12.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.253e-06/0.1737, allocations: 4 kB / 0.6873 GB, free: 12.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005363/0.1742, allocations: 177.4 kB / 0.6875 GB, free: 12.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.1743, allocations: 51.41 kB / 0.6875 GB, free: 12.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.086e-05/0.1744, allocations: 113.8 kB / 0.6876 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1744, allocations: 25.7 kB / 0.6876 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.156e-05/0.1744, allocations: 104 kB / 0.6877 GB, free: 11.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.1745, allocations: 3.906 kB / 0.6877 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/0.1745, allocations: 0 / 0.6877 GB, free: 11.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1746, allocations: 318.8 kB / 0.688 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.1747, allocations: 47.95 kB / 0.6881 GB, free: 11.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.1749, allocations: 43.95 kB / 0.6881 GB, free: 11.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001311/0.175, allocations: 43.97 kB / 0.6882 GB, free: 11.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.175, allocations: 0 / 0.6882 GB, free: 11.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003037/0.1753, allocations: 133.5 kB / 0.6883 GB, free: 11.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1754, allocations: 10.14 kB / 0.6883 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1754, allocations: 0 / 0.6883 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1754, allocations: 3.938 kB / 0.6883 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1755, allocations: 19.98 kB / 0.6883 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1755, allocations: 4 kB / 0.6883 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.695e-05/0.1756, allocations: 27.91 kB / 0.6884 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.1756, allocations: 0 / 0.6884 GB, free: 11.28 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.381e-05/0.1757, allocations: 113.8 kB / 0.6885 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.1758, allocations: 4 kB / 0.6885 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003674/0.1761, allocations: 137.5 kB / 0.6886 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1762, allocations: 4 kB / 0.6886 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1762, allocations: 4 kB / 0.6886 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1762, allocations: 0 / 0.6886 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001755/0.1764, allocations: 177.6 kB / 0.6888 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1764, allocations: 0 / 0.6888 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.504e-05/0.1765, allocations: 27.92 kB / 0.6888 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1765, allocations: 0 / 0.6888 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.1765, allocations: 3.938 kB / 0.6888 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1765, allocations: 3.953 kB / 0.6888 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1765, allocations: 8 kB / 0.6888 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003724/0.1769, allocations: 219.4 kB / 0.689 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.1769, allocations: 85.44 kB / 0.6891 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.177, allocations: 3.984 kB / 0.6891 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/0.1771, allocations: 15.98 kB / 0.6891 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.1771, allocations: 3.953 kB / 0.6891 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.1771, allocations: 8 kB / 0.6891 GB, free: 10.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.1772, allocations: 95.64 kB / 0.6892 GB, free: 10.28 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1772, allocations: 0 / 0.6892 GB, free: 10.28 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.1774, allocations: 8 kB / 0.6892 GB, free: 10.27 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 (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.000142/0.1776, allocations: 107.2 kB / 0.6893 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.1779, allocations: 99.91 kB / 0.6894 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1779, allocations: 0 / 0.6894 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1781, allocations: 51.95 kB / 0.6895 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1783, allocations: 8 kB / 0.6895 GB, free: 10 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.1787, allocations: 164.8 kB / 0.6897 GB, free: 9.816 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.1789, allocations: 0.6926 MB / 0.6903 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.467e-05/0.179, allocations: 11.97 kB / 0.6903 GB, free: 9.086 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.179, allocations: 11.38 kB / 0.6904 GB, free: 9.074 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.179, allocations: 0 / 0.6904 GB, free: 9.074 MB / 494.1 MB Notification: Performance of Templates: time 0.002675/0.1817, allocations: 0.6074 MB / 0.6909 GB, free: 8.473 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)