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.0007924/0.0007923, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00484/0.00484, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.325/1.325, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001679/0.001679, allocations: 270.5 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.921/0.921, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000518/0.0005179, allocations: 16.91 kB / 0.5987 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1722, allocations: 88.55 MB / 0.6851 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0006205/0.1728, allocations: 315.3 kB / 0.6854 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.174, allocations: 1.103 MB / 0.6865 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.204e-05/0.174, allocations: 0 / 0.6865 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.174, allocations: 0 / 0.6865 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.1742, allocations: 15.92 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.815e-06/0.1742, allocations: 0 / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.863e-05/0.1743, allocations: 0.625 kB / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.362e-05/0.1743, allocations: 0 / 0.6865 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.296e-05/0.1743, allocations: 4.719 kB / 0.6865 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.414e-05/0.1744, allocations: 7.922 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.103e-06/0.1744, allocations: 0.9375 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.1745, allocations: 19.98 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-06/0.1745, allocations: 0.5625 kB / 0.6866 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.1745, allocations: 29.64 kB / 0.6866 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.628e-05/0.1746, allocations: 18.22 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1746, allocations: 0 / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.015e-06/0.1746, allocations: 0 / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.1746, allocations: 3.938 kB / 0.6866 GB, free: 13.52 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.0002269/0.1749, allocations: 321.5 kB / 0.6869 GB, free: 13.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1749, allocations: 11.47 kB / 0.6869 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.513e-05/0.1749, allocations: 0.9375 kB / 0.6869 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.038e-05/0.175, allocations: 160.7 kB / 0.6871 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.175, allocations: 4.375 kB / 0.6871 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.1751, allocations: 384 / 0.6871 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.337e-05/0.1752, allocations: 42 kB / 0.6871 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1752, allocations: 0 / 0.6871 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.1752, allocations: 3.938 kB / 0.6871 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.1752, allocations: 0.6562 kB / 0.6871 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.1752, allocations: 11.92 kB / 0.6872 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/0.1754, allocations: 154.1 kB / 0.6873 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.1755, allocations: 39.73 kB / 0.6873 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.1756, allocations: 11.27 kB / 0.6873 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.1757, allocations: 85.19 kB / 0.6874 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.1757, allocations: 34.5 kB / 0.6875 GB, free: 12.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1757, allocations: 0 / 0.6875 GB, free: 12.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.00416/0.1799, allocations: 0.5715 MB / 0.688 GB, free: 11.92 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.974e-05/0.18, allocations: 51.41 kB / 0.6881 GB, free: 11.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.999e-05/0.18, allocations: 89.86 kB / 0.6882 GB, free: 11.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.18, allocations: 25.7 kB / 0.6882 GB, free: 11.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.536e-05/0.18, allocations: 80.14 kB / 0.6883 GB, free: 11.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.1801, allocations: 19.81 kB / 0.6883 GB, free: 11.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1801, allocations: 9.719 kB / 0.6883 GB, free: 11.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.1802, allocations: 318.8 kB / 0.6886 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.1808, allocations: 87.89 kB / 0.6887 GB, free: 11.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005953/0.1814, allocations: 102.5 kB / 0.6888 GB, free: 11.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.1826, allocations: 186.5 kB / 0.6889 GB, free: 10.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1826, allocations: 4 kB / 0.689 GB, free: 10.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001272/0.1839, allocations: 217.5 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1839, allocations: 4 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1839, allocations: 0 / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.184, allocations: 4 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.1844, allocations: 51.94 kB / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1844, allocations: 3.984 kB / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.1847, allocations: 39.98 kB / 0.6893 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1847, allocations: 7.984 kB / 0.6893 GB, free: 10.57 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.881e-05/0.1848, allocations: 111.2 kB / 0.6894 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.1849, allocations: 7.938 kB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.1862, allocations: 245.6 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1862, allocations: 0 / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.1862, allocations: 0 / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1862, allocations: 0 / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.1877, allocations: 462.3 kB / 0.6901 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.1877, allocations: 3.938 kB / 0.6901 GB, free: 9.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.1881, allocations: 51.91 kB / 0.6901 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1881, allocations: 4 kB / 0.6901 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1881, allocations: 0 / 0.6901 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1881, allocations: 0 / 0.6901 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1881, allocations: 0 / 0.6901 GB, free: 9.637 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.1894, allocations: 307.4 kB / 0.6904 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.912e-05/0.1894, allocations: 77.11 kB / 0.6905 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1895, allocations: 7.922 kB / 0.6905 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.1898, allocations: 39.98 kB / 0.6905 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1899, allocations: 0 / 0.6905 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.1899, allocations: 11.98 kB / 0.6905 GB, free: 9.168 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.911e-05/0.1899, allocations: 75.28 kB / 0.6906 GB, free: 9.094 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1899, allocations: 0 / 0.6906 GB, free: 9.094 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.1902, allocations: 12 kB / 0.6906 GB, free: 9.082 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.0001447/0.1903, allocations: 115.2 kB / 0.6907 GB, free: 8.957 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.1916, allocations: 175.8 kB / 0.6909 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1916, allocations: 4.188 kB / 0.6909 GB, free: 8.781 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005975/0.1922, allocations: 95.88 kB / 0.691 GB, free: 8.688 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.1925, allocations: 4.75 kB / 0.691 GB, free: 8.684 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.1936, allocations: 214.7 kB / 0.6912 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.1938, allocations: 0.677 MB / 0.6919 GB, free: 7.746 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002487/0.1941, allocations: 31.91 kB / 0.6919 GB, free: 7.715 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.929e-05/0.1942, allocations: 11.44 kB / 0.6919 GB, free: 7.703 MB / 494.1 MB Notification: Performance of SimCode: time 1.894e-06/0.1942, allocations: 0 / 0.6919 GB, free: 7.703 MB / 494.1 MB Notification: Performance of Templates: time 0.002565/0.1967, allocations: 0.8019 MB / 0.6927 GB, free: 6.914 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)