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.001138/0.001138, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002154/0.002154, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9797/0.9797, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 90.3 kB / 0.5952 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1752, allocations: 86.99 MB / 0.6802 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.003188/0.1785, allocations: 1.527 MB / 0.6817 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003557/0.1789, allocations: 108.5 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.817e-05/0.1789, allocations: 0 / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.1791, allocations: 12.48 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.823e-05/0.1791, allocations: 12.64 kB / 0.6818 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.1794, allocations: 23.97 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.941e-05/0.1795, allocations: 56.66 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.1796, allocations: 30.66 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.809e-05/0.1797, allocations: 19.92 kB / 0.6819 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.236e-05/0.1798, allocations: 35.89 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.1798, allocations: 4 kB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.228e-05/0.1799, allocations: 12 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.1799, allocations: 19.92 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.161e-05/0.18, allocations: 27.8 kB / 0.682 GB, free: 14.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.1801, allocations: 64.02 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1801, allocations: 0 / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1801, allocations: 0 / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.1802, allocations: 0 / 0.6821 GB, free: 14.74 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.0005379/0.1807, allocations: 379.3 kB / 0.6824 GB, free: 14.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1807, allocations: 12.03 kB / 0.6824 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.866e-05/0.1808, allocations: 8.781 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.181, allocations: 180.3 kB / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.181, allocations: 4.375 kB / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.181, allocations: 384 / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.1813, allocations: 90.19 kB / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1813, allocations: 192 / 0.6827 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.1813, allocations: 11.94 kB / 0.6827 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1813, allocations: 4 kB / 0.6827 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.1816, allocations: 79.86 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005493/0.1822, allocations: 332.6 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.1825, allocations: 58.56 kB / 0.6832 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.1826, allocations: 44.91 kB / 0.6832 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.1827, allocations: 0 / 0.6832 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.1827, allocations: 34.56 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1827, allocations: 0 / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005617/0.1833, allocations: 141.4 kB / 0.6834 GB, free: 13.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1833, allocations: 55.41 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.531e-05/0.1834, allocations: 118.2 kB / 0.6836 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.1835, allocations: 25.7 kB / 0.6836 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.1835, allocations: 96.05 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.1835, allocations: 3.906 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.1836, allocations: 17.7 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1837, allocations: 322.8 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.1839, allocations: 35.95 kB / 0.684 GB, free: 12.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.184, allocations: 31.97 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.1843, allocations: 72.77 kB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1843, allocations: 0 / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003432/0.1847, allocations: 109.9 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1847, allocations: 4 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1847, allocations: 11.86 kB / 0.6843 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.1847, allocations: 4 kB / 0.6843 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.1849, allocations: 15.97 kB / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.1849, allocations: 0 / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.097e-05/0.185, allocations: 15.89 kB / 0.6843 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.185, allocations: 4 kB / 0.6843 GB, free: 12.23 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 9.326e-05/0.1851, allocations: 118.4 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/0.1851, allocations: 4 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.1855, allocations: 113.5 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.1855, allocations: 0 / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1855, allocations: 7.938 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1856, allocations: 0 / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.1857, allocations: 189.5 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1858, allocations: 0 / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.1859, allocations: 15.98 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1859, allocations: 0 / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.1859, allocations: 3.984 kB / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.1859, allocations: 0 / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1859, allocations: 0 / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.1863, allocations: 203.3 kB / 0.6849 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.996e-05/0.1863, allocations: 85.09 kB / 0.685 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.1864, allocations: 0 / 0.685 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1865, allocations: 11.98 kB / 0.685 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.1865, allocations: 0 / 0.685 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1865, allocations: 15.98 kB / 0.685 GB, free: 11.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.149e-05/0.1866, allocations: 91.33 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1866, allocations: 3.938 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.1869, allocations: 15.91 kB / 0.6851 GB, free: 11.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 (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.0001448/0.187, allocations: 107.2 kB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.1874, allocations: 75.92 kB / 0.6853 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.1874, allocations: 4 kB / 0.6853 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.1876, allocations: 39.95 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.1879, allocations: 7.938 kB / 0.6854 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003844/0.1883, allocations: 149.6 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.1886, allocations: 0.6885 MB / 0.6862 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.98e-05/0.1886, allocations: 15.97 kB / 0.6862 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.1887, allocations: 11.44 kB / 0.6862 GB, free: 10.12 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1887, allocations: 0 / 0.6862 GB, free: 10.12 MB / 494.1 MB Notification: Performance of Templates: time 0.003405/0.1921, allocations: 0.7635 MB / 0.6869 GB, free: 9.359 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)