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.001357/0.001357, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001328/0.001328, allocations: 191.1 kB / 16.25 MB, free: 6.625 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.408/1.408, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002575/0.002575, allocations: 282.5 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.1/1.1, allocations: 178.6 MB / 0.507 GB, free: 4.723 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003868/0.003868, allocations: 102.5 kB / 0.6059 GB, free: 25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1872, allocations: 89.15 MB / 0.693 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001937/0.1892, allocations: 0.6461 MB / 0.6936 GB, free: 4.043 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.1906, allocations: 1.117 MB / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.196e-05/0.1907, allocations: 0 / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.1907, allocations: 0 / 0.6947 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.1909, allocations: 15.92 kB / 0.6947 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.116e-06/0.1909, allocations: 0 / 0.6947 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.476e-05/0.191, allocations: 8 kB / 0.6947 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.495e-05/0.191, allocations: 0 / 0.6947 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.467e-05/0.191, allocations: 4.734 kB / 0.6947 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.1911, allocations: 4 kB / 0.6947 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-06/0.1911, allocations: 4 kB / 0.6947 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.1912, allocations: 19.92 kB / 0.6948 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-06/0.1912, allocations: 3.938 kB / 0.6948 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.642e-05/0.1912, allocations: 0 / 0.6948 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.649e-05/0.1913, allocations: 19.97 kB / 0.6948 GB, free: 2.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.1913, allocations: 0 / 0.6948 GB, free: 2.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1913, allocations: 4 kB / 0.6948 GB, free: 2.832 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1913, allocations: 0 / 0.6948 GB, free: 2.832 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.0003264/0.1916, allocations: 311.6 kB / 0.6951 GB, free: 2.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.1917, allocations: 12.03 kB / 0.6951 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.1917, allocations: 0.9375 kB / 0.6951 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.1918, allocations: 168.4 kB / 0.6953 GB, free: 2.266 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.1919, allocations: 8.375 kB / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.1919, allocations: 384 / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.192, allocations: 37.95 kB / 0.6953 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.192, allocations: 3.938 kB / 0.6953 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-06/0.192, allocations: 0 / 0.6953 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.192, allocations: 0 / 0.6953 GB, free: 2.211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.906e-05/0.1921, allocations: 11.98 kB / 0.6953 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.1922, allocations: 153.9 kB / 0.6955 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.1924, allocations: 38.56 kB / 0.6955 GB, free: 1.953 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.141e-05/0.1924, allocations: 12.86 kB / 0.6955 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.1926, allocations: 89.12 kB / 0.6956 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.1926, allocations: 34.5 kB / 0.6956 GB, free: 1.789 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1926, allocations: 0 / 0.6956 GB, free: 1.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004723/0.1974, allocations: 0.5757 MB / 0.6962 GB, free: 1.207 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.1974, allocations: 51.41 kB / 0.6962 GB, free: 1.145 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.161e-05/0.1975, allocations: 89.86 kB / 0.6963 GB, free: 1.047 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.1975, allocations: 25.7 kB / 0.6964 GB, free: 1.016 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.1975, allocations: 84.14 kB / 0.6964 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.1976, allocations: 15.8 kB / 0.6965 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.83e-05/0.1977, allocations: 17.66 kB / 0.6965 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1978, allocations: 314.8 kB / 0.6968 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006576/0.1985, allocations: 83.95 kB / 0.6968 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.1991, allocations: 106.5 kB / 0.6969 GB, free: 388 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.2005, allocations: 190.4 kB / 0.6971 GB, free: 188 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2005, allocations: 4 kB / 0.6971 GB, free: 184 kB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001414/0.2019, allocations: 213.5 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2019, allocations: 4 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2019, allocations: 3.984 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.202, allocations: 4 kB / 0.6973 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.2024, allocations: 48 kB / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2024, allocations: 0 / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003608/0.2028, allocations: 39.98 kB / 0.6974 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.2028, allocations: 4 kB / 0.6974 GB, free: 15.86 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.2029, allocations: 113.8 kB / 0.6975 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.2029, allocations: 11.83 kB / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.2044, allocations: 237.1 kB / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.2044, allocations: 0 / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2044, allocations: 0 / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2044, allocations: 0 / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.206, allocations: 466.6 kB / 0.6982 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.206, allocations: 4 kB / 0.6982 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00041/0.2064, allocations: 51.97 kB / 0.6983 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2064, allocations: 0 / 0.6983 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2064, allocations: 4 kB / 0.6983 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2064, allocations: 0 / 0.6983 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2064, allocations: 0 / 0.6983 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.2078, allocations: 307.3 kB / 0.6986 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.2079, allocations: 77.11 kB / 0.6987 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.2079, allocations: 4 kB / 0.6987 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000402/0.2083, allocations: 39.97 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.661e-05/0.2083, allocations: 4 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2084, allocations: 4 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.563e-05/0.2084, allocations: 75.28 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2084, allocations: 0 / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002618/0.2087, allocations: 19.94 kB / 0.6988 GB, free: 14.37 MB / 0.4981 GB 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 (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.0001943/0.2089, allocations: 107.2 kB / 0.6989 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001321/0.2102, allocations: 183.8 kB / 0.6991 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2102, allocations: 0 / 0.6991 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006117/0.2108, allocations: 92.06 kB / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.211, allocations: 4.938 kB / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.2122, allocations: 224.8 kB / 0.6994 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.2126, allocations: 0.6729 MB / 0.7 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.2128, allocations: 35.97 kB / 0.7001 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.604e-05/0.2129, allocations: 7.438 kB / 0.7001 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2129, allocations: 0 / 0.7001 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of Templates: time 0.003174/0.2161, allocations: 0.8168 MB / 0.7009 GB, free: 12.19 MB / 0.4981 GB 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)