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.001433/0.001433, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001614/0.001614, allocations: 191.1 kB / 16.25 MB, free: 6.629 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.338/1.338, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002411/0.002411, allocations: 294.7 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9304/0.9304, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001764, allocations: 88.72 kB / 0.5947 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1606, allocations: 86.99 MB / 0.6796 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001619/0.1622, allocations: 0.6326 MB / 0.6803 GB, free: 428 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1634, allocations: 1.111 MB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.93e-05/0.1634, allocations: 3.938 kB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.171e-05/0.1635, allocations: 0 / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.1637, allocations: 8.641 kB / 0.6814 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.866e-06/0.1637, allocations: 0 / 0.6814 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.204e-05/0.1637, allocations: 16.64 kB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.961e-05/0.1638, allocations: 0 / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.243e-05/0.1638, allocations: 4.875 kB / 0.6814 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.697e-05/0.1638, allocations: 0 / 0.6814 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.1638, allocations: 0.5 kB / 0.6814 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.7e-05/0.1639, allocations: 23.86 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.239e-06/0.1639, allocations: 1.562 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.414e-05/0.1639, allocations: 11.91 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.105e-05/0.164, allocations: 12 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.164, allocations: 0 / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.164, allocations: 7.984 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.164, allocations: 0 / 0.6814 GB, free: 15.21 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.0002393/0.1643, allocations: 311.6 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1643, allocations: 8.031 kB / 0.6817 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.733e-05/0.1643, allocations: 4.938 kB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.263e-05/0.1644, allocations: 164.7 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.1644, allocations: 4.375 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.1645, allocations: 384 / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.1646, allocations: 38.02 kB / 0.6819 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1646, allocations: 7.938 kB / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1646, allocations: 4 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1646, allocations: 3.938 kB / 0.682 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.172e-05/0.1646, allocations: 11.98 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.1648, allocations: 153.7 kB / 0.6821 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.1649, allocations: 30.58 kB / 0.6821 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.219e-05/0.1649, allocations: 16.92 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001177/0.1651, allocations: 89.11 kB / 0.6822 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1651, allocations: 38.44 kB / 0.6823 GB, free: 14.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1651, allocations: 0 / 0.6823 GB, free: 14.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004278/0.1694, allocations: 0.5676 MB / 0.6828 GB, free: 13.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.1694, allocations: 55.41 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.068e-05/0.1695, allocations: 89.86 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.1695, allocations: 25.7 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.112e-05/0.1696, allocations: 80.14 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.1696, allocations: 23.78 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.1697, allocations: 13.72 kB / 0.6831 GB, free: 13.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1698, allocations: 318.8 kB / 0.6834 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000595/0.1704, allocations: 83.94 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005942/0.171, allocations: 102.5 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001185/0.1722, allocations: 190.4 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1722, allocations: 0 / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001237/0.1734, allocations: 213.5 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1735, allocations: 10.02 kB / 0.684 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1735, allocations: 8.062 kB / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1735, allocations: 0 / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.1739, allocations: 47.97 kB / 0.684 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1739, allocations: 4 kB / 0.684 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.1743, allocations: 39.92 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.1743, allocations: 4 kB / 0.6841 GB, free: 12.23 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 8.772e-05/0.1744, allocations: 110.5 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.1744, allocations: 11.92 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.1758, allocations: 237 kB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1758, allocations: 0 / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1758, allocations: 4 kB / 0.6844 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1758, allocations: 0 / 0.6844 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.1774, allocations: 462.3 kB / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1775, allocations: 0 / 0.6849 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003834/0.1779, allocations: 52.22 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1779, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.1779, allocations: 4 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1779, allocations: 0 / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1779, allocations: 4 kB / 0.6849 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.1793, allocations: 307.4 kB / 0.6852 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.1793, allocations: 77.11 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.1794, allocations: 7.938 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/0.1797, allocations: 39.97 kB / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.1798, allocations: 4 kB / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.1798, allocations: 0 / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.26e-05/0.1798, allocations: 75.28 kB / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1798, allocations: 0 / 0.6854 GB, free: 10.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.1801, allocations: 16 kB / 0.6854 GB, free: 10.75 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.0001839/0.1803, allocations: 111.9 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.1815, allocations: 179.8 kB / 0.6857 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1815, allocations: 4 kB / 0.6857 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006092/0.1821, allocations: 96.06 kB / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.1824, allocations: 0 / 0.6858 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.1836, allocations: 217 kB / 0.686 GB, free: 10.11 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.1838, allocations: 0.6806 MB / 0.6867 GB, free: 9.406 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000218/0.184, allocations: 27.98 kB / 0.6867 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.1841, allocations: 11.44 kB / 0.6867 GB, free: 9.367 MB / 494.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1841, allocations: 0 / 0.6867 GB, free: 9.367 MB / 494.1 MB Notification: Performance of Templates: time 0.002748/0.1869, allocations: 0.8148 MB / 0.6875 GB, free: 8.566 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)