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.001241/0.001241, allocations: 112.6 kB / 16.37 MB, free: 5.949 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.001358/0.001358, allocations: 199 kB / 17.31 MB, free: 5.574 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.257/1.257, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002016/0.002016, allocations: 280.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8987/0.8987, allocations: 169.3 MB / 0.4989 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 94.61 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1538, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002444/0.1562, allocations: 1.431 MB / 0.683 GB, free: 6.02 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007246/0.157, allocations: 475.7 kB / 0.6835 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.225e-05/0.157, allocations: 0 / 0.6835 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.051e-05/0.1571, allocations: 3.938 kB / 0.6835 GB, free: 5.543 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.337e-05/0.1571, allocations: 3.984 kB / 0.6835 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.1573, allocations: 19.92 kB / 0.6835 GB, free: 5.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.848e-05/0.1574, allocations: 27.92 kB / 0.6835 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.94e-05/0.1575, allocations: 4 kB / 0.6835 GB, free: 5.488 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.179e-05/0.1576, allocations: 15.92 kB / 0.6835 GB, free: 5.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.312e-05/0.1576, allocations: 19.92 kB / 0.6835 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.1576, allocations: 0 / 0.6835 GB, free: 5.453 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-05/0.1577, allocations: 27.91 kB / 0.6836 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.1578, allocations: 4 kB / 0.6836 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/0.1578, allocations: 11.94 kB / 0.6836 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.1579, allocations: 31.83 kB / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1579, allocations: 0 / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1579, allocations: 0 / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1579, allocations: 0 / 0.6836 GB, free: 5.379 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.0004806/0.1584, allocations: 347.4 kB / 0.6839 GB, free: 4.992 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1585, allocations: 8.031 kB / 0.684 GB, free: 4.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.1585, allocations: 0.9375 kB / 0.684 GB, free: 4.984 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.1586, allocations: 168.4 kB / 0.6841 GB, free: 4.781 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.1587, allocations: 4.375 kB / 0.6841 GB, free: 4.777 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.1587, allocations: 4.312 kB / 0.6841 GB, free: 4.773 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.1589, allocations: 53.98 kB / 0.6842 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1589, allocations: 0 / 0.6842 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-06/0.1589, allocations: 0 / 0.6842 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1589, allocations: 8 kB / 0.6842 GB, free: 4.707 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.1591, allocations: 31.95 kB / 0.6842 GB, free: 4.676 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003508/0.1594, allocations: 252.8 kB / 0.6845 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.1596, allocations: 42.5 kB / 0.6845 GB, free: 4.328 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.209e-05/0.1596, allocations: 24.91 kB / 0.6845 GB, free: 4.301 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001509/0.1598, allocations: 85.09 kB / 0.6846 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.1598, allocations: 30.56 kB / 0.6846 GB, free: 4.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.1598, allocations: 0 / 0.6846 GB, free: 4.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003314/0.1602, allocations: 81.64 kB / 0.6847 GB, free: 4.074 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.1602, allocations: 55.53 kB / 0.6848 GB, free: 4.008 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.483e-05/0.1603, allocations: 105.8 kB / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.1603, allocations: 25.7 kB / 0.6849 GB, free: 3.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.545e-05/0.1604, allocations: 88.06 kB / 0.685 GB, free: 3.773 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.1604, allocations: 3.906 kB / 0.685 GB, free: 3.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.1605, allocations: 17.72 kB / 0.685 GB, free: 3.746 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1606, allocations: 310.8 kB / 0.6853 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.716e-05/0.1606, allocations: 19.98 kB / 0.6853 GB, free: 3.414 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.629e-05/0.1607, allocations: 23.91 kB / 0.6853 GB, free: 3.391 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.1609, allocations: 40.77 kB / 0.6854 GB, free: 3.348 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1609, allocations: 0 / 0.6854 GB, free: 3.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001876/0.1611, allocations: 73.64 kB / 0.6854 GB, free: 3.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1611, allocations: 8.094 kB / 0.6854 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1611, allocations: 0 / 0.6854 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1611, allocations: 0 / 0.6854 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.235e-05/0.1612, allocations: 15.92 kB / 0.6855 GB, free: 3.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1612, allocations: 0 / 0.6855 GB, free: 3.246 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.168e-05/0.1613, allocations: 4 kB / 0.6855 GB, free: 3.242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.1613, allocations: 0 / 0.6855 GB, free: 3.242 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.937e-05/0.1613, allocations: 113.8 kB / 0.6856 GB, free: 3.121 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.173e-05/0.1614, allocations: 7.938 kB / 0.6856 GB, free: 3.113 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.1616, allocations: 73.03 kB / 0.6857 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1616, allocations: 4 kB / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1616, allocations: 4 kB / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.1616, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000159/0.1618, allocations: 165.5 kB / 0.6858 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1618, allocations: 0 / 0.6858 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.572e-05/0.1619, allocations: 8 kB / 0.6858 GB, free: 2.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1619, allocations: 7.969 kB / 0.6858 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.1619, allocations: 0 / 0.6858 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1619, allocations: 0 / 0.6858 GB, free: 2.801 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1619, allocations: 3.984 kB / 0.6858 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.1621, allocations: 159.5 kB / 0.686 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.1622, allocations: 81.09 kB / 0.6861 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.1622, allocations: 8.031 kB / 0.6861 GB, free: 2.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.947e-05/0.1623, allocations: 0 / 0.6861 GB, free: 2.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.1623, allocations: 7.984 kB / 0.6861 GB, free: 2.512 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.1623, allocations: 0 / 0.6861 GB, free: 2.512 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.467e-05/0.1624, allocations: 83.28 kB / 0.6862 GB, free: 2.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1624, allocations: 0 / 0.6862 GB, free: 2.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1626, allocations: 12 kB / 0.6862 GB, free: 2.418 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 (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.0001536/0.1627, allocations: 95.25 kB / 0.6863 GB, free: 2.312 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.1629, allocations: 47.89 kB / 0.6863 GB, free: 2.266 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.163, allocations: 3.938 kB / 0.6863 GB, free: 2.262 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.636e-05/0.163, allocations: 19.98 kB / 0.6863 GB, free: 2.242 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.1633, allocations: 7.922 kB / 0.6863 GB, free: 2.234 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002699/0.1636, allocations: 114.3 kB / 0.6864 GB, free: 2.098 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.1638, allocations: 0.6769 MB / 0.6871 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.322e-05/0.1638, allocations: 4 kB / 0.6871 GB, free: 1.391 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.1639, allocations: 7.438 kB / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1639, allocations: 0 / 0.6871 GB, free: 1.383 MB / 494.1 MB Notification: Performance of Templates: time 0.002392/0.1663, allocations: 0.5649 MB / 0.6877 GB, free: 0.8242 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)