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.001562/0.001562, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001201/0.001201, allocations: 189.6 kB / 16.25 MB, free: 6.629 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.331/1.331, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002018/0.002018, allocations: 282.6 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9661/0.9661, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001604, allocations: 94.83 kB / 0.5947 GB, free: 28.45 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1574, allocations: 86.98 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002591/0.16, allocations: 1.496 MB / 0.6811 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006603/0.1607, allocations: 462.9 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.676e-05/0.1608, allocations: 0 / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.1608, allocations: 0 / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.546e-05/0.1609, allocations: 4.688 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.161, allocations: 19.98 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.754e-05/0.1611, allocations: 30.39 kB / 0.6816 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.662e-05/0.1612, allocations: 4 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.856e-05/0.1612, allocations: 11.92 kB / 0.6816 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.273e-05/0.1613, allocations: 8 kB / 0.6816 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.1613, allocations: 7.984 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.271e-05/0.1614, allocations: 23.91 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.156e-05/0.1614, allocations: 10 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.038e-05/0.1614, allocations: 11.94 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.739e-05/0.1615, allocations: 28.22 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1615, allocations: 3.938 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1615, allocations: 0 / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1615, allocations: 0.625 kB / 0.6817 GB, free: 14.95 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.000395/0.1619, allocations: 349.1 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.162, allocations: 8.031 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.162, allocations: 4.938 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1621, allocations: 165 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.1621, allocations: 4.375 kB / 0.6822 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-06/0.1621, allocations: 9.031 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.1623, allocations: 54.86 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1623, allocations: 7.922 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.015e-06/0.1623, allocations: 0.75 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1624, allocations: 0 / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.1625, allocations: 37.89 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003052/0.1628, allocations: 252.8 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001164/0.163, allocations: 38.55 kB / 0.6826 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.159e-05/0.163, allocations: 24.91 kB / 0.6826 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.1632, allocations: 77.11 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1632, allocations: 42.48 kB / 0.6827 GB, free: 13.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.915e-06/0.1632, allocations: 4 kB / 0.6827 GB, free: 13.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003224/0.1636, allocations: 77.66 kB / 0.6828 GB, free: 13.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1636, allocations: 55.39 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.002e-05/0.1637, allocations: 97.86 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.1637, allocations: 25.7 kB / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.909e-05/0.1637, allocations: 88.08 kB / 0.683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.1638, allocations: 12.02 kB / 0.6831 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.1638, allocations: 17.72 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1639, allocations: 310.8 kB / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.558e-05/0.164, allocations: 15.98 kB / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.774e-05/0.1641, allocations: 19.92 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.1642, allocations: 44.81 kB / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1642, allocations: 0 / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001709/0.1644, allocations: 69.66 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1644, allocations: 6.344 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1644, allocations: 4 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.318e-06/0.1644, allocations: 0 / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-05/0.1645, allocations: 4 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.1645, allocations: 0 / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.505e-05/0.1646, allocations: 12.02 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.1646, allocations: 0 / 0.6835 GB, free: 12.82 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 7.094e-05/0.1647, allocations: 119 kB / 0.6836 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.1647, allocations: 3.906 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002064/0.1649, allocations: 80.7 kB / 0.6837 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1649, allocations: 3.938 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1649, allocations: 4.031 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.1649, allocations: 0 / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.1651, allocations: 157.6 kB / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1651, allocations: 256 / 0.6839 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.343e-05/0.1651, allocations: 11.98 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1652, allocations: 4 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.1652, allocations: 0 / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1652, allocations: 0 / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1652, allocations: 0 / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.1654, allocations: 175.4 kB / 0.6841 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.1654, allocations: 77.11 kB / 0.6841 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.1655, allocations: 0 / 0.6841 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.393e-05/0.1655, allocations: 7.984 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.943e-05/0.1656, allocations: 4 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.1656, allocations: 0 / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.1656, allocations: 87.3 kB / 0.6842 GB, free: 12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1656, allocations: 0 / 0.6842 GB, free: 12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002128/0.1658, allocations: 8 kB / 0.6842 GB, free: 11.99 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.0001202/0.166, allocations: 99.25 kB / 0.6843 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.1662, allocations: 43.89 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1662, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.741e-05/0.1663, allocations: 20.05 kB / 0.6844 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002689/0.1665, allocations: 11.94 kB / 0.6844 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002343/0.1668, allocations: 117.5 kB / 0.6845 GB, free: 11.67 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.167, allocations: 0.6768 MB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.337e-05/0.1671, allocations: 4 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.759e-05/0.1671, allocations: 11.5 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1671, allocations: 0 / 0.6852 GB, free: 10.95 MB / 494.1 MB Notification: Performance of Templates: time 0.002271/0.1694, allocations: 0.5066 MB / 0.6857 GB, free: 10.45 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)