Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008995/0.0008995, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009501/0.0009502, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 223.3 MB / 240 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001731/0.001731, allocations: 275.1 kB / 291.4 MB, free: 1.812 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9311/0.9311, allocations: 169.5 MB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.000393, allocations: 14.56 kB / 0.598 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1758, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.001583/0.1774, allocations: 1.145 MB / 0.6856 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000672/0.1781, allocations: 437.2 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.932e-05/0.1781, allocations: 5.406 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.1782, allocations: 0 / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.056e-05/0.1782, allocations: 3.938 kB / 0.686 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001795/0.1784, allocations: 17.3 kB / 0.686 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.917e-05/0.1785, allocations: 23.92 kB / 0.6861 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.902e-05/0.1786, allocations: 4 kB / 0.6861 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.258e-05/0.1787, allocations: 13.52 kB / 0.6861 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.545e-05/0.1787, allocations: 11.98 kB / 0.6861 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1787, allocations: 0 / 0.6861 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.1788, allocations: 19.92 kB / 0.6861 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.1788, allocations: 10.83 kB / 0.6861 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.1789, allocations: 25.7 kB / 0.6861 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.826e-05/0.1789, allocations: 24.19 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.179, allocations: 0 / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.179, allocations: 0 / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.179, allocations: 0 / 0.6862 GB, free: 13.7 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.000396/0.1794, allocations: 340.3 kB / 0.6865 GB, free: 13.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.1794, allocations: 8.531 kB / 0.6865 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.1794, allocations: 8.781 kB / 0.6865 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.1796, allocations: 167 kB / 0.6867 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1796, allocations: 5.781 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.827e-06/0.1796, allocations: 4 kB / 0.6867 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.1798, allocations: 54.42 kB / 0.6867 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.1798, allocations: 4 kB / 0.6867 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.1798, allocations: 1.719 kB / 0.6867 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1798, allocations: 3.984 kB / 0.6867 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.18, allocations: 47.08 kB / 0.6868 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003064/0.1803, allocations: 252.9 kB / 0.687 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.1804, allocations: 48.59 kB / 0.6871 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.959e-05/0.1805, allocations: 29.53 kB / 0.6871 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.1806, allocations: 81.81 kB / 0.6872 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1807, allocations: 35.44 kB / 0.6872 GB, free: 12.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1807, allocations: 0.625 kB / 0.6872 GB, free: 12.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003258/0.181, allocations: 99.8 kB / 0.6873 GB, free: 12.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.1811, allocations: 59.3 kB / 0.6874 GB, free: 12.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.1811, allocations: 101.9 kB / 0.6875 GB, free: 12.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.1811, allocations: 25.7 kB / 0.6875 GB, free: 12.15 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.185e-05/0.1812, allocations: 91.97 kB / 0.6876 GB, free: 12.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.359e-05/0.1812, allocations: 4 kB / 0.6876 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.1812, allocations: 4 kB / 0.6876 GB, free: 12.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.929e-05/0.1813, allocations: 314.9 kB / 0.6879 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.118e-05/0.1814, allocations: 15.98 kB / 0.6879 GB, free: 11.72 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.433e-05/0.1815, allocations: 23.98 kB / 0.6879 GB, free: 11.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.162e-05/0.1816, allocations: 28.03 kB / 0.6879 GB, free: 11.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1816, allocations: 0 / 0.6879 GB, free: 11.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001726/0.1818, allocations: 77.58 kB / 0.688 GB, free: 11.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1818, allocations: 4 kB / 0.688 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1818, allocations: 4.031 kB / 0.688 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1818, allocations: 0 / 0.688 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.588e-05/0.1819, allocations: 19.92 kB / 0.688 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1819, allocations: 3.938 kB / 0.6881 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.397e-05/0.182, allocations: 11.94 kB / 0.6881 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.182, allocations: 0 / 0.6881 GB, free: 11.54 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.141e-05/0.1821, allocations: 114.5 kB / 0.6882 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/0.1821, allocations: 3.938 kB / 0.6882 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.1823, allocations: 80.78 kB / 0.6883 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1823, allocations: 0 / 0.6883 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1823, allocations: 0 / 0.6883 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1823, allocations: 12.02 kB / 0.6883 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.1825, allocations: 157.6 kB / 0.6884 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1825, allocations: 0 / 0.6884 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.211e-05/0.1825, allocations: 11.98 kB / 0.6884 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1825, allocations: 0 / 0.6884 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.1826, allocations: 0 / 0.6884 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1826, allocations: 3.938 kB / 0.6884 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1826, allocations: 0 / 0.6884 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.1828, allocations: 183.4 kB / 0.6886 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.1828, allocations: 77.11 kB / 0.6887 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.1829, allocations: 0 / 0.6887 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.1829, allocations: 16.27 kB / 0.6887 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.183, allocations: 0 / 0.6887 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.183, allocations: 4 kB / 0.6887 GB, free: 10.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.579e-05/0.183, allocations: 87.27 kB / 0.6888 GB, free: 10.71 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.183, allocations: 0 / 0.6888 GB, free: 10.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002136/0.1832, allocations: 12 kB / 0.6888 GB, free: 10.7 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001521/0.1834, allocations: 99.25 kB / 0.6889 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001966/0.1836, allocations: 51.89 kB / 0.6889 GB, free: 10.54 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1836, allocations: 0 / 0.6889 GB, free: 10.54 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.915e-05/0.1837, allocations: 27.98 kB / 0.689 GB, free: 10.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.184, allocations: 8.078 kB / 0.689 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000264/0.1842, allocations: 112.6 kB / 0.6891 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.1847, allocations: 0.677 MB / 0.6897 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.474e-05/0.1848, allocations: 4 kB / 0.6897 GB, free: 9.66 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.791e-05/0.1848, allocations: 7.438 kB / 0.6898 GB, free: 9.652 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1848, allocations: 0 / 0.6898 GB, free: 9.652 MB / 494.1 MB Notification: Performance of Templates: time 0.002686/0.1875, allocations: 498.7 kB / 0.6902 GB, free: 9.176 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)