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.001075/0.001075, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001166/0.001166, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.348/1.348, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 283 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9335/0.9335, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 95.67 kB / 0.5945 GB, free: 28.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1633, allocations: 86.98 MB / 0.6794 GB, free: 1.211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002593/0.1659, allocations: 1.502 MB / 0.6809 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007216/0.1666, allocations: 468.3 kB / 0.6813 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.1667, allocations: 0 / 0.6813 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.648e-05/0.1667, allocations: 0 / 0.6813 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.675e-05/0.1668, allocations: 3.938 kB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.1669, allocations: 19.98 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.686e-05/0.167, allocations: 23.94 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.308e-05/0.1671, allocations: 7.984 kB / 0.6814 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.069e-05/0.1671, allocations: 11.94 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.628e-05/0.1671, allocations: 11.92 kB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.1672, allocations: 0 / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.366e-05/0.1672, allocations: 27.91 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.328e-06/0.1672, allocations: 0 / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.494e-05/0.1673, allocations: 15.92 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.838e-05/0.1674, allocations: 24.19 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1674, allocations: 0 / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1674, allocations: 4 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.1674, allocations: 0 / 0.6815 GB, free: 15.09 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.0003736/0.1678, allocations: 347.4 kB / 0.6818 GB, free: 14.71 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.1678, allocations: 8.031 kB / 0.6818 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.547e-05/0.1678, allocations: 4.938 kB / 0.6818 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.1679, allocations: 168.4 kB / 0.682 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-06/0.168, allocations: 384 / 0.682 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.168, allocations: 8.375 kB / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.1681, allocations: 57.97 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1682, allocations: 0 / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.1682, allocations: 7.938 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1682, allocations: 0 / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.1683, allocations: 31.97 kB / 0.6821 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002871/0.1686, allocations: 252.8 kB / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.1688, allocations: 38.56 kB / 0.6824 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.486e-05/0.1689, allocations: 24.91 kB / 0.6824 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.169, allocations: 81.09 kB / 0.6825 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.169, allocations: 38.5 kB / 0.6825 GB, free: 13.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.169, allocations: 0 / 0.6825 GB, free: 13.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003355/0.1694, allocations: 85.64 kB / 0.6826 GB, free: 13.78 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.1694, allocations: 51.41 kB / 0.6826 GB, free: 13.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.758e-05/0.1695, allocations: 101.8 kB / 0.6827 GB, free: 13.61 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.1695, allocations: 25.7 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.1696, allocations: 88.08 kB / 0.6829 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.1696, allocations: 7.844 kB / 0.6829 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.1696, allocations: 21.84 kB / 0.6829 GB, free: 13.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.1697, allocations: 310.8 kB / 0.6832 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.358e-05/0.1698, allocations: 19.97 kB / 0.6832 GB, free: 13.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.379e-05/0.1699, allocations: 11.98 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.17, allocations: 44.7 kB / 0.6832 GB, free: 13.06 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.17, allocations: 8 kB / 0.6833 GB, free: 13.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001915/0.1702, allocations: 69.66 kB / 0.6833 GB, free: 12.98 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.1703, allocations: 4 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.1703, allocations: 0 / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.1703, allocations: 4 kB / 0.6833 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.036e-05/0.1704, allocations: 7.984 kB / 0.6833 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1704, allocations: 0 / 0.6833 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.852e-05/0.1704, allocations: 12.02 kB / 0.6834 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.1704, allocations: 256 / 0.6834 GB, free: 12.95 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.246e-05/0.1705, allocations: 115.1 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.1705, allocations: 3.906 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.1708, allocations: 76.72 kB / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1708, allocations: 4 kB / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1708, allocations: 0 / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1708, allocations: 4.031 kB / 0.6835 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.1709, allocations: 161.6 kB / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1709, allocations: 0 / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.171, allocations: 8 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.171, allocations: 3.984 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.453e-06/0.171, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.171, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.171, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002234/0.1713, allocations: 171.4 kB / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.273e-05/0.1713, allocations: 81.11 kB / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.068e-05/0.1713, allocations: 0 / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.1714, allocations: 4 kB / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.355e-05/0.1714, allocations: 3.984 kB / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.1714, allocations: 0 / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.365e-05/0.1715, allocations: 83.28 kB / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1715, allocations: 4.031 kB / 0.684 GB, free: 12.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1717, allocations: 8 kB / 0.684 GB, free: 12.13 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.0001326/0.1719, allocations: 103.2 kB / 0.6841 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001905/0.172, allocations: 31.97 kB / 0.6842 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1721, allocations: 4 kB / 0.6842 GB, free: 11.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.843e-05/0.1722, allocations: 31.97 kB / 0.6842 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.1724, allocations: 17.7 kB / 0.6842 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002355/0.1727, allocations: 111.5 kB / 0.6843 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1729, allocations: 0.677 MB / 0.685 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.497e-05/0.1729, allocations: 3.984 kB / 0.685 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.822e-05/0.1729, allocations: 11.44 kB / 0.685 GB, free: 11.09 MB / 494.1 MB Notification: Performance of SimCode: time 3.5e-07/0.173, allocations: 4.062 kB / 0.685 GB, free: 11.08 MB / 494.1 MB Notification: Performance of Templates: time 0.002287/0.1752, allocations: 493.6 kB / 0.6855 GB, free: 10.61 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)