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.001116/0.001116, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00139/0.00139, allocations: 194.6 kB / 16.14 MB, free: 6.664 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.341/1.341, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 278.6 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9643/0.9643, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 96.3 kB / 0.5945 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1604, allocations: 86.98 MB / 0.6794 GB, free: 1.191 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002546/0.163, allocations: 1.583 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003422/0.1634, allocations: 115 kB / 0.6811 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.809e-05/0.1634, allocations: 0 / 0.6811 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.1635, allocations: 11.92 kB / 0.6811 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.226e-05/0.1636, allocations: 3.938 kB / 0.6811 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001773/0.1637, allocations: 19.98 kB / 0.6811 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.922e-05/0.1638, allocations: 63.77 kB / 0.6812 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.164, allocations: 26.75 kB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.985e-05/0.164, allocations: 19.92 kB / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.054e-05/0.1641, allocations: 28.78 kB / 0.6813 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.1641, allocations: 4 kB / 0.6813 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.325e-05/0.1642, allocations: 8.609 kB / 0.6813 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.788e-05/0.1642, allocations: 15.88 kB / 0.6813 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.825e-05/0.1643, allocations: 29.17 kB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.1644, allocations: 60.02 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1644, allocations: 0 / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1644, allocations: 0.75 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1644, allocations: 0 / 0.6814 GB, free: 15.21 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.0005259/0.1649, allocations: 379.3 kB / 0.6817 GB, free: 14.79 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.165, allocations: 8.031 kB / 0.6817 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.165, allocations: 8.844 kB / 0.6817 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.1652, allocations: 188.2 kB / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.541e-06/0.1652, allocations: 384 / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.1652, allocations: 8.375 kB / 0.6819 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.1655, allocations: 90.2 kB / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.1655, allocations: 192 / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.1655, allocations: 7.922 kB / 0.682 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.371e-06/0.1655, allocations: 4 kB / 0.682 GB, free: 14.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.1658, allocations: 87.84 kB / 0.6821 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.1663, allocations: 328.6 kB / 0.6824 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.1665, allocations: 66.56 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.1667, allocations: 36.92 kB / 0.6825 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.1667, allocations: 7.984 kB / 0.6825 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1668, allocations: 30.56 kB / 0.6826 GB, free: 13.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1668, allocations: 0 / 0.6826 GB, free: 13.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000524/0.1673, allocations: 141.5 kB / 0.6827 GB, free: 13.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.049e-05/0.1673, allocations: 55.41 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.277e-05/0.1674, allocations: 109.8 kB / 0.6829 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.1674, allocations: 25.7 kB / 0.6829 GB, free: 13.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.1675, allocations: 100 kB / 0.683 GB, free: 13.36 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1675, allocations: 3.906 kB / 0.683 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.1676, allocations: 21.66 kB / 0.683 GB, free: 13.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.95e-05/0.1677, allocations: 318.8 kB / 0.6833 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1678, allocations: 35.97 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.168, allocations: 35.95 kB / 0.6834 GB, free: 12.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.1682, allocations: 72.78 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1682, allocations: 4 kB / 0.6834 GB, free: 12.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003307/0.1686, allocations: 105.5 kB / 0.6835 GB, free: 12.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.1686, allocations: 7.938 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1686, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.1686, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.1687, allocations: 19.92 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.1688, allocations: 0 / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.783e-05/0.1688, allocations: 19.89 kB / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.1689, allocations: 0 / 0.6836 GB, free: 12.71 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.483e-05/0.1689, allocations: 122.4 kB / 0.6837 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.169, allocations: 4 kB / 0.6837 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003553/0.1693, allocations: 109.5 kB / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.1694, allocations: 7.984 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1694, allocations: 0 / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1694, allocations: 0 / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.1695, allocations: 185.5 kB / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1696, allocations: 0 / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.725e-05/0.1697, allocations: 16.36 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1697, allocations: 0 / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.1697, allocations: 3.938 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1697, allocations: 0 / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1697, allocations: 4 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003665/0.1701, allocations: 207.8 kB / 0.6842 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.1701, allocations: 81.11 kB / 0.6843 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.1701, allocations: 0 / 0.6843 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.1702, allocations: 11.98 kB / 0.6843 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.79e-05/0.1703, allocations: 11.98 kB / 0.6843 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1703, allocations: 4 kB / 0.6843 GB, free: 11.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.728e-05/0.1704, allocations: 91.27 kB / 0.6844 GB, free: 11.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1704, allocations: 0 / 0.6844 GB, free: 11.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.1706, allocations: 15.91 kB / 0.6844 GB, free: 11.75 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.0001488/0.1708, allocations: 103.2 kB / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.1711, allocations: 83.84 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1711, allocations: 3.938 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1713, allocations: 39.97 kB / 0.6847 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.1716, allocations: 7.984 kB / 0.6847 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.1719, allocations: 159.3 kB / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.1722, allocations: 0.6887 MB / 0.6855 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.291e-05/0.1722, allocations: 7.984 kB / 0.6855 GB, free: 10.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.627e-05/0.1723, allocations: 11.44 kB / 0.6855 GB, free: 10.59 MB / 494.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1723, allocations: 4 kB / 0.6855 GB, free: 10.59 MB / 494.1 MB Notification: Performance of Templates: time 0.002652/0.1749, allocations: 0.6421 MB / 0.6861 GB, free: 9.949 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)