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.001465/0.001465, allocations: 101.5 kB / 15.98 MB, free: 6.359 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.00144/0.00144, allocations: 197.3 kB / 16.91 MB, free: 6.191 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.301/1.301, allocations: 222.9 MB / 240.6 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002404/0.002404, allocations: 299.8 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.139/1.139, allocations: 178.5 MB / 0.5076 GB, free: 12.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 95.84 kB / 0.6066 GB, free: 9.688 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1639, allocations: 89.13 MB / 0.6936 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002603/0.1665, allocations: 1.51 MB / 0.6951 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007053/0.1672, allocations: 455.8 kB / 0.6955 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.1673, allocations: 3.938 kB / 0.6955 GB, free: 14.47 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.392e-05/0.1673, allocations: 0 / 0.6955 GB, free: 14.47 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.413e-05/0.1674, allocations: 0 / 0.6955 GB, free: 14.47 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.1675, allocations: 23.92 kB / 0.6956 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.592e-05/0.1676, allocations: 31.92 kB / 0.6956 GB, free: 14.42 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 7.222e-05/0.1677, allocations: 7.984 kB / 0.6956 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 5.615e-05/0.1678, allocations: 15.92 kB / 0.6956 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.312e-05/0.1678, allocations: 7.984 kB / 0.6956 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.1678, allocations: 4 kB / 0.6956 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.266e-05/0.1679, allocations: 15.98 kB / 0.6956 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.1679, allocations: 11.94 kB / 0.6957 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.784e-05/0.1679, allocations: 3.938 kB / 0.6957 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.294e-05/0.168, allocations: 23.95 kB / 0.6957 GB, free: 14.33 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.168, allocations: 0 / 0.6957 GB, free: 14.33 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.553e-06/0.168, allocations: 4 kB / 0.6957 GB, free: 14.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.168, allocations: 0 / 0.6957 GB, free: 14.32 MB / 0.545 GB 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.0004688/0.1685, allocations: 351.6 kB / 0.696 GB, free: 13.93 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1685, allocations: 8.031 kB / 0.696 GB, free: 13.93 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.1686, allocations: 0.9375 kB / 0.696 GB, free: 13.93 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.1687, allocations: 168.4 kB / 0.6962 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/0.1687, allocations: 4.375 kB / 0.6962 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-06/0.1687, allocations: 384 / 0.6962 GB, free: 13.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.1689, allocations: 57.98 kB / 0.6962 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.092e-06/0.1689, allocations: 0 / 0.6962 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-06/0.1689, allocations: 0 / 0.6962 GB, free: 13.66 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1689, allocations: 4 kB / 0.6963 GB, free: 13.65 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.1691, allocations: 27.97 kB / 0.6963 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003653/0.1694, allocations: 256.8 kB / 0.6965 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.1696, allocations: 42.56 kB / 0.6966 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.04e-05/0.1697, allocations: 20.91 kB / 0.6966 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.1698, allocations: 85.09 kB / 0.6967 GB, free: 13.15 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.1698, allocations: 30.56 kB / 0.6967 GB, free: 13.11 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1698, allocations: 0 / 0.6967 GB, free: 13.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003273/0.1702, allocations: 89.58 kB / 0.6968 GB, free: 13.02 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.1702, allocations: 51.41 kB / 0.6968 GB, free: 12.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.068e-05/0.1703, allocations: 105.8 kB / 0.6969 GB, free: 12.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1703, allocations: 25.7 kB / 0.697 GB, free: 12.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.1704, allocations: 80.14 kB / 0.697 GB, free: 12.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1704, allocations: 15.84 kB / 0.697 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.1704, allocations: 17.78 kB / 0.6971 GB, free: 12.69 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.1706, allocations: 310.8 kB / 0.6974 GB, free: 12.38 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.217e-05/0.1707, allocations: 23.97 kB / 0.6974 GB, free: 12.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.606e-05/0.1707, allocations: 15.92 kB / 0.6974 GB, free: 12.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.1709, allocations: 44.77 kB / 0.6974 GB, free: 12.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1709, allocations: 4.062 kB / 0.6974 GB, free: 12.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001858/0.1711, allocations: 73.59 kB / 0.6975 GB, free: 12.21 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.1711, allocations: 6.188 kB / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.496e-06/0.1711, allocations: 0 / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.397e-06/0.1711, allocations: 0 / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.272e-05/0.1712, allocations: 11.98 kB / 0.6975 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1712, allocations: 256 / 0.6975 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.1713, allocations: 7.984 kB / 0.6975 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.1713, allocations: 12.02 kB / 0.6975 GB, free: 12.17 MB / 0.545 GB 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.75e-05/0.1714, allocations: 113.1 kB / 0.6977 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.1714, allocations: 7.906 kB / 0.6977 GB, free: 12.05 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.1716, allocations: 72.72 kB / 0.6977 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1716, allocations: 4 kB / 0.6977 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1716, allocations: 0 / 0.6977 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1716, allocations: 4.031 kB / 0.6977 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001641/0.1718, allocations: 161.6 kB / 0.6979 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1718, allocations: 0 / 0.6979 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.496e-05/0.1719, allocations: 11.98 kB / 0.6979 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1719, allocations: 0 / 0.6979 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.1719, allocations: 0 / 0.6979 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1719, allocations: 0 / 0.6979 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1719, allocations: 0 / 0.6979 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.1721, allocations: 167.5 kB / 0.6981 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.457e-05/0.1722, allocations: 77.11 kB / 0.6981 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.1722, allocations: 4 kB / 0.6981 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.833e-05/0.1723, allocations: 3.984 kB / 0.6981 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.1723, allocations: 11.94 kB / 0.6982 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.1723, allocations: 0 / 0.6982 GB, free: 11.45 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.453e-05/0.1724, allocations: 79.28 kB / 0.6982 GB, free: 11.38 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1724, allocations: 32 / 0.6982 GB, free: 11.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002119/0.1726, allocations: 12 kB / 0.6982 GB, free: 11.36 MB / 0.545 GB 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.0001415/0.1728, allocations: 103.2 kB / 0.6983 GB, free: 11.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002043/0.173, allocations: 39.97 kB / 0.6984 GB, free: 11.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.173, allocations: 0 / 0.6984 GB, free: 11.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.963e-05/0.1731, allocations: 19.97 kB / 0.6984 GB, free: 11.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.1734, allocations: 14.59 kB / 0.6984 GB, free: 11.18 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.1737, allocations: 158.9 kB / 0.6986 GB, free: 10.99 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.174, allocations: 0.6768 MB / 0.6992 GB, free: 10.29 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.251e-05/0.1741, allocations: 7.438 kB / 0.6992 GB, free: 10.28 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.1741, allocations: 0 / 0.6992 GB, free: 10.28 MB / 0.545 GB Notification: Performance of Templates: time 0.00209/0.1762, allocations: 0.6568 MB / 0.6999 GB, free: 9.629 MB / 0.545 GB 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)