Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008007/0.0008007, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001153/0.001153, allocations: 168.7 kB / 15.95 MB, free: 204 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.305/1.305, allocations: 223.3 MB / 240 MB, free: 5.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.001643/0.001643, allocations: 277.8 kB / 291.4 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9057/0.9057, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.0004229, allocations: 20.78 kB / 0.598 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1812, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.000692/0.1819, allocations: 311.3 kB / 0.6848 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1832, allocations: 1.077 MB / 0.6858 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.49e-05/0.1832, allocations: 0 / 0.6858 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.998e-06/0.1833, allocations: 0 / 0.6858 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.1835, allocations: 19.94 kB / 0.6859 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.575e-06/0.1835, allocations: 0 / 0.6859 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.936e-05/0.1836, allocations: 4.516 kB / 0.6859 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.1836, allocations: 0 / 0.6859 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.1836, allocations: 9.172 kB / 0.6859 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.734e-05/0.1837, allocations: 3.938 kB / 0.6859 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.1837, allocations: 0 / 0.6859 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.837e-05/0.1838, allocations: 17.89 kB / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-06/0.1838, allocations: 0 / 0.6859 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.613e-05/0.1838, allocations: 29.64 kB / 0.6859 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.805e-05/0.1839, allocations: 11.97 kB / 0.6859 GB, free: 13.98 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.1839, allocations: 0 / 0.6859 GB, free: 13.98 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1839, allocations: 4.812 kB / 0.6859 GB, free: 13.98 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1839, allocations: 0 / 0.6859 GB, free: 13.98 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002566/0.1842, allocations: 316.8 kB / 0.6862 GB, free: 13.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1842, allocations: 12.09 kB / 0.6863 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.1843, allocations: 0 / 0.6863 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.1844, allocations: 168.5 kB / 0.6864 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1844, allocations: 3.938 kB / 0.6864 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.1844, allocations: 4 kB / 0.6864 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.147e-05/0.1845, allocations: 30.45 kB / 0.6865 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1845, allocations: 7.984 kB / 0.6865 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-06/0.1846, allocations: 3.031 kB / 0.6865 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.1846, allocations: 3.984 kB / 0.6865 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.612e-05/0.1846, allocations: 7.938 kB / 0.6865 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.1848, allocations: 161.6 kB / 0.6866 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.1849, allocations: 26.58 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.185, allocations: 14.44 kB / 0.6867 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.1851, allocations: 81.11 kB / 0.6867 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.1851, allocations: 31.22 kB / 0.6868 GB, free: 12.95 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.923e-06/0.1851, allocations: 1.719 kB / 0.6868 GB, free: 12.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.003481/0.1886, allocations: 0.5678 MB / 0.6873 GB, free: 12.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.1887, allocations: 55.41 kB / 0.6874 GB, free: 12.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.37e-05/0.1887, allocations: 89.86 kB / 0.6875 GB, free: 12.21 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1887, allocations: 29.64 kB / 0.6875 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.1888, allocations: 84.14 kB / 0.6876 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.1889, allocations: 15.8 kB / 0.6876 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.1889, allocations: 0 / 0.6876 GB, free: 12.08 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.189, allocations: 318.8 kB / 0.6879 GB, free: 11.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.1895, allocations: 83.95 kB / 0.688 GB, free: 11.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/0.19, allocations: 102.5 kB / 0.6881 GB, free: 11.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004474/0.1904, allocations: 83.95 kB / 0.6882 GB, free: 11.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.1904, allocations: 0 / 0.6882 GB, free: 11.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0009666/0.1914, allocations: 217.6 kB / 0.6884 GB, free: 11.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1914, allocations: 4 kB / 0.6884 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1914, allocations: 0 / 0.6884 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1914, allocations: 4 kB / 0.6884 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.1918, allocations: 48 kB / 0.6884 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1918, allocations: 0 / 0.6884 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.1921, allocations: 48.09 kB / 0.6885 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.1921, allocations: 11.94 kB / 0.6885 GB, free: 11.15 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 (5): * Single equations (assignments): 5 * 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.101e-05/0.1922, allocations: 114.5 kB / 0.6886 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.1922, allocations: 0 / 0.6886 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.1933, allocations: 241 kB / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1933, allocations: 0 / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1933, allocations: 0 / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.1933, allocations: 3.984 kB / 0.6888 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.1945, allocations: 458.3 kB / 0.6893 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1945, allocations: 0 / 0.6893 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000297/0.1948, allocations: 47.97 kB / 0.6893 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1948, allocations: 7.938 kB / 0.6893 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1948, allocations: 4 kB / 0.6893 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1948, allocations: 0 / 0.6893 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1948, allocations: 0 / 0.6893 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009721/0.1958, allocations: 311.3 kB / 0.6896 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.1959, allocations: 77.11 kB / 0.6897 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.1959, allocations: 0 / 0.6897 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.1962, allocations: 39.98 kB / 0.6897 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.28e-05/0.1962, allocations: 3.984 kB / 0.6897 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.1962, allocations: 0 / 0.6897 GB, free: 9.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.725e-05/0.1962, allocations: 87.31 kB / 0.6898 GB, free: 9.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1962, allocations: 0 / 0.6898 GB, free: 9.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.1965, allocations: 12 kB / 0.6898 GB, free: 9.668 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 (5): * Single equations (assignments): 5 * 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.0001694/0.1967, allocations: 103.2 kB / 0.6899 GB, free: 9.555 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009763/0.1977, allocations: 183.9 kB / 0.6901 GB, free: 9.375 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1977, allocations: 0 / 0.6901 GB, free: 9.375 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004638/0.1981, allocations: 92.27 kB / 0.6902 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002025/0.1983, allocations: 0.75 kB / 0.6902 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008835/0.1992, allocations: 222.7 kB / 0.6904 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.1995, allocations: 0.677 MB / 0.6911 GB, free: 8.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.1997, allocations: 28 kB / 0.6911 GB, free: 8.312 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.894e-05/0.1998, allocations: 19.36 kB / 0.6911 GB, free: 8.293 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1998, allocations: 0 / 0.6911 GB, free: 8.293 MB / 494.1 MB Notification: Performance of Templates: time 0.002567/0.2023, allocations: 0.7948 MB / 0.6919 GB, free: 7.512 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)