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.005188/0.005188, allocations: 99.83 kB / 15.73 MB, free: 6.043 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.001237/0.001237, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 286.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9585/0.9585, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 95.86 kB / 0.6815 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1537, allocations: 86.98 MB / 0.7664 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001634/0.1554, allocations: 0.5895 MB / 0.767 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1566, allocations: 1.1 MB / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.516e-05/0.1566, allocations: 0 / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.262e-05/0.1566, allocations: 3.938 kB / 0.7681 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1568, allocations: 19.92 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 5.801e-06/0.1568, allocations: 0 / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.646e-05/0.1569, allocations: 15.92 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.1569, allocations: 0 / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.204e-05/0.157, allocations: 3.938 kB / 0.7681 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.802e-05/0.157, allocations: 0 / 0.7681 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.921e-06/0.157, allocations: 4 kB / 0.7681 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.917e-05/0.1571, allocations: 23.92 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.42e-06/0.1571, allocations: 0 / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.47e-05/0.1571, allocations: 7.922 kB / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 6.86e-05/0.1572, allocations: 11.98 kB / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1572, allocations: 0 / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.813e-06/0.1572, allocations: 0 / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.1572, allocations: 4 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB 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.0002453/0.1575, allocations: 323.6 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.1575, allocations: 8.031 kB / 0.7685 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.496e-05/0.1575, allocations: 4.844 kB / 0.7685 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.095e-05/0.1576, allocations: 168.3 kB / 0.7687 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1576, allocations: 8.359 kB / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.42e-05/0.1577, allocations: 384 / 0.7687 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.23e-05/0.1578, allocations: 38.02 kB / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1578, allocations: 0 / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.1578, allocations: 4 kB / 0.7687 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1578, allocations: 0 / 0.7687 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.484e-05/0.1578, allocations: 7.984 kB / 0.7687 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.158, allocations: 149.7 kB / 0.7689 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.1582, allocations: 38.55 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.879e-05/0.1582, allocations: 12.8 kB / 0.7689 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.1583, allocations: 85.19 kB / 0.769 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.1584, allocations: 38.5 kB / 0.769 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1584, allocations: 0 / 0.769 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.004136/0.1625, allocations: 0.5638 MB / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.1626, allocations: 51.41 kB / 0.7696 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.779e-05/0.1626, allocations: 89.86 kB / 0.7697 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1626, allocations: 29.7 kB / 0.7697 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.448e-05/0.1627, allocations: 88.14 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.356e-05/0.1627, allocations: 15.78 kB / 0.7698 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.1628, allocations: 17.72 kB / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1629, allocations: 314.8 kB / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007966/0.1637, allocations: 83.95 kB / 0.7702 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008511/0.1645, allocations: 102.9 kB / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.166, allocations: 194.4 kB / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1661, allocations: 0 / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001243/0.1673, allocations: 217.5 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1673, allocations: 6.188 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1673, allocations: 8.125 kB / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1674, allocations: 0 / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/0.1678, allocations: 52 kB / 0.7708 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.1678, allocations: 11.92 kB / 0.7708 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.1682, allocations: 39.98 kB / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.1682, allocations: 4 kB / 0.7708 GB, free: 3.59 MB / 0.5606 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 7.858e-05/0.1683, allocations: 114.4 kB / 0.771 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.1683, allocations: 7.922 kB / 0.771 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.1696, allocations: 241.1 kB / 0.7712 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1696, allocations: 0 / 0.7712 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1697, allocations: 4 kB / 0.7712 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1697, allocations: 0 / 0.7712 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001523/0.1712, allocations: 454.4 kB / 0.7716 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1712, allocations: 0 / 0.7716 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.1716, allocations: 47.97 kB / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1716, allocations: 0 / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1716, allocations: 8 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1716, allocations: 0 / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1716, allocations: 3.938 kB / 0.7717 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.1729, allocations: 303.3 kB / 0.772 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.1729, allocations: 85.02 kB / 0.7721 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.1729, allocations: 0 / 0.7721 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.1733, allocations: 43.97 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.1733, allocations: 4 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1734, allocations: 4.188 kB / 0.7721 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.347e-05/0.1734, allocations: 75.28 kB / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1734, allocations: 0 / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002369/0.1736, allocations: 12 kB / 0.7722 GB, free: 2.109 MB / 0.5606 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.0001788/0.1738, allocations: 103.2 kB / 0.7723 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001268/0.1751, allocations: 191.9 kB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1751, allocations: 4.062 kB / 0.7725 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.1757, allocations: 83.95 kB / 0.7726 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.1759, allocations: 7.984 kB / 0.7726 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.1771, allocations: 217.5 kB / 0.7728 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.1773, allocations: 0.6729 MB / 0.7734 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001665/0.1775, allocations: 28 kB / 0.7734 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.417e-05/0.1776, allocations: 15.42 kB / 0.7735 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of SimCode: time 4.6e-07/0.1776, allocations: 0 / 0.7735 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of Templates: time 0.2904/0.468, allocations: 0.8121 MB / 0.7743 GB, free: 14.78 MB / 0.5606 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)