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.001003/0.001003, allocations: 112.6 kB / 16.37 MB, free: 6 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.0009829/0.0009829, allocations: 196 kB / 17.31 MB, free: 5.613 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.247/1.247, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 284.4 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9441/0.9441, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 98.59 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1577, allocations: 86.97 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001679/0.1594, allocations: 0.5824 MB / 0.6822 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1606, allocations: 1.112 MB / 0.6833 GB, free: 5.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.094e-05/0.1606, allocations: 0 / 0.6833 GB, free: 5.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.748e-06/0.1606, allocations: 0 / 0.6833 GB, free: 5.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.1608, allocations: 23.92 kB / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.875e-06/0.1608, allocations: 0 / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.172e-05/0.1609, allocations: 0 / 0.6833 GB, free: 5.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.1609, allocations: 11.98 kB / 0.6833 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.16e-05/0.161, allocations: 0 / 0.6833 GB, free: 5.695 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.941e-05/0.161, allocations: 7.875 kB / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.161, allocations: 0 / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.442e-05/0.1611, allocations: 15.98 kB / 0.6833 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-06/0.1611, allocations: 3.984 kB / 0.6833 GB, free: 5.668 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.1e-05/0.1611, allocations: 4 kB / 0.6833 GB, free: 5.664 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.897e-05/0.1612, allocations: 11.98 kB / 0.6834 GB, free: 5.652 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1612, allocations: 3.938 kB / 0.6834 GB, free: 5.648 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.1612, allocations: 0 / 0.6834 GB, free: 5.648 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.1612, allocations: 3.938 kB / 0.6834 GB, free: 5.645 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.0002317/0.1614, allocations: 319.6 kB / 0.6837 GB, free: 5.285 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.1615, allocations: 15.97 kB / 0.6837 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.1615, allocations: 0.9375 kB / 0.6837 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.495e-05/0.1616, allocations: 164.4 kB / 0.6838 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-06/0.1616, allocations: 384 / 0.6838 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.1616, allocations: 4.375 kB / 0.6838 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.728e-05/0.1617, allocations: 38 kB / 0.6839 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.1617, allocations: 3.984 kB / 0.6839 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.1618, allocations: 0 / 0.6839 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1618, allocations: 4 kB / 0.6839 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.615e-05/0.1618, allocations: 11.98 kB / 0.6839 GB, free: 5.004 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.1619, allocations: 153.6 kB / 0.684 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.1621, allocations: 34.61 kB / 0.6841 GB, free: 4.762 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.617e-05/0.1621, allocations: 8.859 kB / 0.6841 GB, free: 4.75 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001276/0.1623, allocations: 85.19 kB / 0.6842 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.1623, allocations: 42.5 kB / 0.6842 GB, free: 4.598 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1623, allocations: 0 / 0.6842 GB, free: 4.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.00419/0.1665, allocations: 0.5715 MB / 0.6848 GB, free: 4.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.1665, allocations: 51.41 kB / 0.6848 GB, free: 3.957 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.999e-05/0.1666, allocations: 89.86 kB / 0.6849 GB, free: 3.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.1666, allocations: 25.7 kB / 0.6849 GB, free: 3.828 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.815e-05/0.1666, allocations: 80.14 kB / 0.685 GB, free: 3.746 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.617e-05/0.1667, allocations: 19.81 kB / 0.685 GB, free: 3.727 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.1667, allocations: 17.7 kB / 0.685 GB, free: 3.703 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.935e-05/0.1668, allocations: 318.8 kB / 0.6853 GB, free: 3.383 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.1674, allocations: 83.95 kB / 0.6854 GB, free: 3.301 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005797/0.168, allocations: 98.53 kB / 0.6855 GB, free: 3.195 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.1691, allocations: 186.5 kB / 0.6857 GB, free: 3.004 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1692, allocations: 4 kB / 0.6857 GB, free: 3 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001195/0.1704, allocations: 221.5 kB / 0.6859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1704, allocations: 4 kB / 0.6859 GB, free: 2.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1704, allocations: 3.938 kB / 0.6859 GB, free: 2.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1704, allocations: 4 kB / 0.6859 GB, free: 2.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003774/0.1708, allocations: 48.19 kB / 0.686 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1708, allocations: 3.938 kB / 0.686 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.1711, allocations: 47.97 kB / 0.686 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1712, allocations: 4 kB / 0.686 GB, free: 2.664 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.012e-05/0.1712, allocations: 110.9 kB / 0.6861 GB, free: 2.547 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.1713, allocations: 3.938 kB / 0.6861 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.1725, allocations: 245 kB / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.1726, allocations: 0 / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.1726, allocations: 0 / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1726, allocations: 0 / 0.6864 GB, free: 2.293 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.174, allocations: 458.3 kB / 0.6868 GB, free: 1.789 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.174, allocations: 3.984 kB / 0.6868 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003717/0.1744, allocations: 51.92 kB / 0.6869 GB, free: 1.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1744, allocations: 0 / 0.6869 GB, free: 1.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.1744, allocations: 7.984 kB / 0.6869 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1744, allocations: 4 kB / 0.6869 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1744, allocations: 0 / 0.6869 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1756, allocations: 303.4 kB / 0.6872 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.201e-05/0.1757, allocations: 77.11 kB / 0.6872 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.1757, allocations: 4 kB / 0.6872 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.176, allocations: 36.41 kB / 0.6873 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.182e-05/0.1761, allocations: 7.984 kB / 0.6873 GB, free: 1.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.1761, allocations: 0 / 0.6873 GB, free: 1.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.47e-05/0.1761, allocations: 83.28 kB / 0.6874 GB, free: 1.188 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1761, allocations: 0 / 0.6874 GB, free: 1.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.1764, allocations: 8 kB / 0.6874 GB, free: 1.18 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.0001541/0.1765, allocations: 107.2 kB / 0.6875 GB, free: 1.062 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.1777, allocations: 184 kB / 0.6876 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1777, allocations: 192 / 0.6876 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000595/0.1783, allocations: 103.9 kB / 0.6877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1785, allocations: 1.312 kB / 0.6877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.1796, allocations: 217 kB / 0.6879 GB, free: 0.543 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2344/0.414, allocations: 0.6747 MB / 0.6886 GB, free: 17.94 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.4142, allocations: 25.75 kB / 0.6886 GB, free: 17.94 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.4143, allocations: 10.84 kB / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4143, allocations: 0 / 0.6886 GB, free: 17.93 MB / 494.1 MB Notification: Performance of Templates: time 0.002693/0.417, allocations: 0.8191 MB / 0.6894 GB, free: 17.91 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)