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.001193/0.001194, allocations: 107.1 kB / 16.35 MB, free: 5.824 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.001265/0.001265, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001984/0.001984, allocations: 291.5 kB / 291.4 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9357/0.9357, allocations: 169.3 MB / 0.4989 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 96.42 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1513, allocations: 86.97 MB / 0.6816 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001639/0.1529, allocations: 0.5902 MB / 0.6822 GB, free: 6.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1542, allocations: 1.108 MB / 0.6833 GB, free: 5.715 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.913e-05/0.1542, allocations: 3.938 kB / 0.6833 GB, free: 5.711 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.1543, allocations: 0 / 0.6833 GB, free: 5.711 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.1545, allocations: 31.84 kB / 0.6833 GB, free: 5.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.947e-06/0.1546, allocations: 0 / 0.6833 GB, free: 5.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.309e-05/0.1546, allocations: 4 kB / 0.6833 GB, free: 5.676 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.38e-05/0.1547, allocations: 4 kB / 0.6833 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.1547, allocations: 0 / 0.6833 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.284e-05/0.1547, allocations: 4 kB / 0.6833 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1547, allocations: 0 / 0.6833 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.1549, allocations: 23.91 kB / 0.6833 GB, free: 5.645 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.092e-06/0.1549, allocations: 0 / 0.6833 GB, free: 5.645 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.779e-05/0.1549, allocations: 3.938 kB / 0.6833 GB, free: 5.641 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.466e-05/0.155, allocations: 11.98 kB / 0.6833 GB, free: 5.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.155, allocations: 4 kB / 0.6834 GB, free: 5.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.155, allocations: 0 / 0.6834 GB, free: 5.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.155, allocations: 0 / 0.6834 GB, free: 5.625 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.0003028/0.1553, allocations: 327.5 kB / 0.6837 GB, free: 5.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1554, allocations: 8.031 kB / 0.6837 GB, free: 5.25 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.1554, allocations: 4.938 kB / 0.6837 GB, free: 5.246 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1555, allocations: 160.4 kB / 0.6838 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.1555, allocations: 384 / 0.6838 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.51e-05/0.1556, allocations: 4.359 kB / 0.6838 GB, free: 5.047 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.1557, allocations: 37.95 kB / 0.6839 GB, free: 5.004 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1557, allocations: 0 / 0.6839 GB, free: 5.004 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1557, allocations: 4 kB / 0.6839 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1557, allocations: 11.94 kB / 0.6839 GB, free: 4.988 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.365e-05/0.1558, allocations: 7.984 kB / 0.6839 GB, free: 4.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001618/0.1559, allocations: 149.6 kB / 0.684 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.1561, allocations: 30.61 kB / 0.6841 GB, free: 4.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.086e-05/0.1561, allocations: 16.8 kB / 0.6841 GB, free: 4.727 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.1563, allocations: 89.17 kB / 0.6842 GB, free: 4.621 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.1563, allocations: 38.5 kB / 0.6842 GB, free: 4.574 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.1563, allocations: 0 / 0.6842 GB, free: 4.574 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004238/0.1606, allocations: 0.5717 MB / 0.6848 GB, free: 3.996 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.1606, allocations: 55.41 kB / 0.6848 GB, free: 3.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.994e-05/0.1607, allocations: 89.86 kB / 0.6849 GB, free: 3.832 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.1607, allocations: 25.7 kB / 0.6849 GB, free: 3.801 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.396e-05/0.1607, allocations: 80.14 kB / 0.685 GB, free: 3.719 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.445e-05/0.1608, allocations: 15.81 kB / 0.685 GB, free: 3.703 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-05/0.1608, allocations: 25.7 kB / 0.685 GB, free: 3.672 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.1609, allocations: 310.8 kB / 0.6853 GB, free: 3.359 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.1615, allocations: 83.95 kB / 0.6854 GB, free: 3.277 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006002/0.1621, allocations: 102.5 kB / 0.6855 GB, free: 3.168 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.1633, allocations: 186.4 kB / 0.6857 GB, free: 2.977 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1633, allocations: 0 / 0.6857 GB, free: 2.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001221/0.1645, allocations: 221.5 kB / 0.6859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1645, allocations: 8 kB / 0.6859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1646, allocations: 0 / 0.6859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1646, allocations: 0 / 0.6859 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.165, allocations: 52 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.165, allocations: 0 / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.1653, allocations: 43.97 kB / 0.686 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1654, allocations: 0 / 0.686 GB, free: 2.652 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.394e-05/0.1654, allocations: 117.8 kB / 0.6861 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.1655, allocations: 3.938 kB / 0.6861 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.1667, allocations: 245.2 kB / 0.6864 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1668, allocations: 4 kB / 0.6864 GB, free: 2.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1668, allocations: 0 / 0.6864 GB, free: 2.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1668, allocations: 3.938 kB / 0.6864 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.1682, allocations: 458.3 kB / 0.6868 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1682, allocations: 0 / 0.6868 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.1686, allocations: 51.91 kB / 0.6868 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1686, allocations: 0 / 0.6868 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1686, allocations: 8 kB / 0.6869 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.1686, allocations: 0 / 0.6869 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1686, allocations: 4 kB / 0.6869 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.1699, allocations: 307.3 kB / 0.6872 GB, free: 1.383 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.1699, allocations: 77.11 kB / 0.6872 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.1699, allocations: 0 / 0.6872 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/0.1703, allocations: 43.97 kB / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.1703, allocations: 0 / 0.6873 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.1703, allocations: 8 kB / 0.6873 GB, free: 1.238 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.272e-05/0.1704, allocations: 79.28 kB / 0.6873 GB, free: 1.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1704, allocations: 0 / 0.6873 GB, free: 1.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002346/0.1706, allocations: 8 kB / 0.6874 GB, free: 1.152 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 (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.0001528/0.1708, allocations: 107.2 kB / 0.6875 GB, free: 1.035 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.172, allocations: 183.8 kB / 0.6876 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.172, allocations: 0 / 0.6876 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000625/0.1727, allocations: 92.08 kB / 0.6877 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.1729, allocations: 0 / 0.6877 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.174, allocations: 221 kB / 0.6879 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2331/0.4072, allocations: 0.6729 MB / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.4074, allocations: 25.44 kB / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.686e-05/0.4075, allocations: 11.11 kB / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4075, allocations: 0.5312 kB / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of Templates: time 0.00274/0.4102, allocations: 0.8165 MB / 0.6894 GB, free: 17.9 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)