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.005941/0.005941, allocations: 101.7 kB / 15.73 MB, free: 6.047 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.001264/0.001264, allocations: 199.4 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002123/0.002123, allocations: 282.8 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.943/0.943, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 99.86 kB / 0.6815 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1667, allocations: 86.97 MB / 0.7664 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001633/0.1684, allocations: 0.5878 MB / 0.767 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1697, allocations: 1.1 MB / 0.7681 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.423e-05/0.1697, allocations: 0 / 0.7681 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.1697, allocations: 0 / 0.7681 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.17, allocations: 23.91 kB / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 3.036e-06/0.17, allocations: 0 / 0.7681 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.717e-05/0.17, allocations: 3.938 kB / 0.7681 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.027e-05/0.1701, allocations: 7.938 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.242e-05/0.1701, allocations: 0 / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.117e-05/0.1701, allocations: 3.984 kB / 0.7681 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.1701, allocations: 4 kB / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.1703, allocations: 23.97 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.953e-06/0.1703, allocations: 4 kB / 0.7682 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.629e-05/0.1703, allocations: 7.875 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 6.999e-05/0.1704, allocations: 11.98 kB / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1704, allocations: 0 / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1704, allocations: 0 / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.1704, allocations: 0 / 0.7682 GB, free: 6.586 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.0002487/0.1706, allocations: 319.6 kB / 0.7685 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.1707, allocations: 12.03 kB / 0.7685 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.1707, allocations: 16.83 kB / 0.7685 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.719e-05/0.1708, allocations: 164.3 kB / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1708, allocations: 384 / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.1709, allocations: 4.375 kB / 0.7687 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.063e-05/0.171, allocations: 45.94 kB / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.171, allocations: 0 / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.171, allocations: 0 / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.171, allocations: 0 / 0.7687 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.27e-05/0.171, allocations: 7.938 kB / 0.7687 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.1712, allocations: 161.7 kB / 0.7689 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.1713, allocations: 34.61 kB / 0.7689 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.75e-05/0.1714, allocations: 4.859 kB / 0.7689 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.1715, allocations: 81.11 kB / 0.769 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1716, allocations: 46.52 kB / 0.769 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1716, allocations: 0 / 0.769 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5): time 0.004273/0.1758, allocations: 0.5638 MB / 0.7696 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.1759, allocations: 59.33 kB / 0.7696 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.329e-05/0.1759, allocations: 89.86 kB / 0.7697 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.176, allocations: 29.7 kB / 0.7697 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.861e-05/0.176, allocations: 80.14 kB / 0.7698 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/0.176, allocations: 11.81 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.1761, allocations: 21.7 kB / 0.7699 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.1762, allocations: 314.8 kB / 0.7702 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.1768, allocations: 83.95 kB / 0.7702 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006134/0.1775, allocations: 98.53 kB / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.1787, allocations: 198.4 kB / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.1787, allocations: 0 / 0.7705 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001302/0.18, allocations: 217.4 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.18, allocations: 4 kB / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.18, allocations: 0 / 0.7707 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1801, allocations: 8.031 kB / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.1805, allocations: 43.97 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1805, allocations: 4 kB / 0.7708 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.1808, allocations: 39.98 kB / 0.7708 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.1809, allocations: 11.98 kB / 0.7708 GB, free: 3.598 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 9.126e-05/0.181, allocations: 110.4 kB / 0.7709 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/0.181, allocations: 7.938 kB / 0.7709 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.1824, allocations: 237 kB / 0.7712 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1824, allocations: 0 / 0.7712 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1824, allocations: 4.422 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-06/0.1824, allocations: 0 / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.1839, allocations: 458.6 kB / 0.7716 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1839, allocations: 4 kB / 0.7716 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.1843, allocations: 47.97 kB / 0.7717 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1844, allocations: 0 / 0.7717 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.1844, allocations: 3.984 kB / 0.7717 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.1844, allocations: 7.922 kB / 0.7717 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1844, allocations: 4 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.1857, allocations: 299.4 kB / 0.772 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.1857, allocations: 88.94 kB / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.538e-05/0.1857, allocations: 8 kB / 0.7721 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000379/0.1861, allocations: 35.98 kB / 0.7721 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.1862, allocations: 4 kB / 0.7721 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.1862, allocations: 3.984 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.526e-05/0.1862, allocations: 79.22 kB / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1862, allocations: 0 / 0.7722 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002489/0.1865, 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.0001485/0.1866, allocations: 108.8 kB / 0.7723 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001276/0.1879, allocations: 183.9 kB / 0.7725 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1879, allocations: 0 / 0.7725 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006039/0.1885, allocations: 92.02 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.0002123/0.1887, allocations: 4 kB / 0.7726 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.1899, allocations: 213.5 kB / 0.7728 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.1901, allocations: 0.6768 MB / 0.7734 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001748/0.1903, allocations: 24 kB / 0.7734 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.525e-05/0.1904, allocations: 15.44 kB / 0.7735 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.1904, allocations: 0 / 0.7735 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of Templates: time 0.2995/0.4899, allocations: 0.8126 MB / 0.7743 GB, free: 14.79 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)