Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001404/0.001403, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00163/0.001631, allocations: 192.8 kB / 16.14 MB, free: 6.715 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.356/1.356, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002034/0.002034, allocations: 286.1 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9472/0.9472, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 96.3 kB / 0.5945 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.166, allocations: 86.98 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.002931/0.169, allocations: 1.822 MB / 0.6812 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1701, allocations: 0.6651 MB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.1701, allocations: 0 / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.691e-05/0.1702, allocations: 8.547 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.02e-05/0.1702, allocations: 13.31 kB / 0.6819 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.1707, allocations: 155.2 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.1709, allocations: 111.7 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.171, allocations: 49.36 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.1711, allocations: 55.83 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.776e-05/0.1712, allocations: 47.77 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.1712, allocations: 8 kB / 0.6823 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.1714, allocations: 43.91 kB / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.212e-05/0.1714, allocations: 27.91 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.554e-05/0.1715, allocations: 51.7 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.1716, allocations: 143.5 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1717, allocations: 4 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1717, allocations: 0 / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1717, allocations: 0 / 0.6826 GB, free: 14 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005773/0.1723, allocations: 431 kB / 0.683 GB, free: 13.53 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.1723, allocations: 8.031 kB / 0.683 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008494/0.1732, allocations: 116.7 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1733, allocations: 192 kB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.71e-05/0.1734, allocations: 59.97 kB / 0.6833 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.1734, allocations: 12.36 kB / 0.6833 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005116/0.1739, allocations: 165.7 kB / 0.6835 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.1739, allocations: 3.938 kB / 0.6835 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.174, allocations: 8 kB / 0.6835 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.174, allocations: 0 / 0.6835 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000591/0.1746, allocations: 159.8 kB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.1756, allocations: 489.7 kB / 0.6841 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009907/0.1766, allocations: 218.3 kB / 0.6843 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.1769, allocations: 76.91 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.177, allocations: 4 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.177, allocations: 34.56 kB / 0.6844 GB, free: 11.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.177, allocations: 0 / 0.6844 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.00101/0.178, allocations: 273.4 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.178, allocations: 51.41 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.1782, allocations: 139.4 kB / 0.6849 GB, free: 11.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.1782, allocations: 25.7 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.1783, allocations: 120.1 kB / 0.685 GB, free: 11.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.1783, allocations: 19.73 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.1784, allocations: 25.7 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1785, allocations: 318.8 kB / 0.6854 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.1788, allocations: 75.92 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.1791, allocations: 90.5 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005634/0.1797, allocations: 174.6 kB / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1797, allocations: 0 / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006582/0.1804, allocations: 201.5 kB / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1804, allocations: 14.48 kB / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1804, allocations: 0 / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1804, allocations: 3.938 kB / 0.6859 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.1807, allocations: 35.95 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1807, allocations: 0 / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.1809, allocations: 23.88 kB / 0.686 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.1809, allocations: 11.98 kB / 0.686 GB, free: 10.24 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.591e-05/0.181, allocations: 131 kB / 0.6861 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.1811, allocations: 7.906 kB / 0.6861 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006805/0.1818, allocations: 206.2 kB / 0.6863 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1818, allocations: 4 kB / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1818, allocations: 0 / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1818, allocations: 0 / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.182, allocations: 234.4 kB / 0.6865 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1821, allocations: 0 / 0.6865 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.1823, allocations: 35.89 kB / 0.6866 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1823, allocations: 0 / 0.6866 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.1823, allocations: 11.94 kB / 0.6866 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.1823, allocations: 0 / 0.6866 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1823, allocations: 4 kB / 0.6866 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006703/0.183, allocations: 279.4 kB / 0.6868 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.1831, allocations: 85.08 kB / 0.6869 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.1831, allocations: 7.938 kB / 0.6869 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.1834, allocations: 31.94 kB / 0.687 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.1835, allocations: 8 kB / 0.687 GB, free: 9.113 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.1835, allocations: 7.984 kB / 0.687 GB, free: 9.105 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.874e-05/0.1836, allocations: 106.2 kB / 0.6871 GB, free: 9.004 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1836, allocations: 4 kB / 0.6871 GB, free: 9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.1839, allocations: 27.84 kB / 0.6871 GB, free: 8.973 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 (6): * Single equations (assignments): 6 * 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.0001411/0.184, allocations: 107.2 kB / 0.6872 GB, free: 8.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006709/0.1847, allocations: 159.8 kB / 0.6874 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1847, allocations: 0 / 0.6874 GB, free: 8.703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.185, allocations: 83.86 kB / 0.6874 GB, free: 8.621 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1854, allocations: 11.94 kB / 0.6875 GB, free: 8.609 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007087/0.1861, allocations: 289.3 kB / 0.6877 GB, free: 8.301 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.1864, allocations: 0.7043 MB / 0.6884 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001/0.1865, allocations: 8 kB / 0.6884 GB, free: 7.562 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.991e-05/0.1866, allocations: 23.42 kB / 0.6885 GB, free: 7.539 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1866, allocations: 0 / 0.6885 GB, free: 7.539 MB / 494.1 MB Notification: Performance of Templates: time 0.00356/0.1902, allocations: 1.375 MB / 0.6898 GB, free: 6.176 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)