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.004805/0.004805, allocations: 104.3 kB / 15.74 MB, free: 6.441 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.001096/0.001096, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002147/0.002147, allocations: 278.7 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9726/0.9726, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 99.84 kB / 0.6815 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1577, allocations: 86.97 MB / 0.7664 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002233/0.1599, allocations: 1.443 MB / 0.7678 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006962/0.1606, allocations: 467.7 kB / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.1607, allocations: 0 / 0.7682 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.301e-05/0.1607, allocations: 3.984 kB / 0.7682 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.1608, allocations: 3.938 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.161, allocations: 23.91 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.101e-05/0.161, allocations: 27.92 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.827e-05/0.1611, allocations: 8 kB / 0.7683 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.211e-05/0.1612, allocations: 4 kB / 0.7683 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.972e-05/0.1612, allocations: 15.92 kB / 0.7683 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.1613, allocations: 0 / 0.7683 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.142e-05/0.1613, allocations: 27.91 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.1614, allocations: 7.984 kB / 0.7684 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.394e-05/0.1614, allocations: 11.94 kB / 0.7684 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 9.208e-05/0.1615, allocations: 31.89 kB / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1615, allocations: 0 / 0.7684 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1615, allocations: 4 kB / 0.7684 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.1615, allocations: 0 / 0.7684 GB, free: 6.309 MB / 0.5606 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.0003942/0.1619, allocations: 347.4 kB / 0.7687 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.834e-05/0.1619, allocations: 8.031 kB / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.746e-05/0.162, allocations: 8.844 kB / 0.7688 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.42e-05/0.1621, allocations: 164.4 kB / 0.7689 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1621, allocations: 384 / 0.7689 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.1621, allocations: 384 / 0.7689 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.1623, allocations: 61.92 kB / 0.769 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.1623, allocations: 3.938 kB / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1623, allocations: 4 kB / 0.769 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1623, allocations: 3.938 kB / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.1625, allocations: 31.95 kB / 0.769 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002716/0.1628, allocations: 252.9 kB / 0.7693 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.1629, allocations: 38.56 kB / 0.7693 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.352e-05/0.163, allocations: 25.41 kB / 0.7693 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.1631, allocations: 85.05 kB / 0.7694 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.1631, allocations: 30.56 kB / 0.7694 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1631, allocations: 0 / 0.7694 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003384/0.1635, allocations: 85.64 kB / 0.7695 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.1635, allocations: 51.41 kB / 0.7696 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.861e-05/0.1636, allocations: 105.8 kB / 0.7697 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1636, allocations: 25.7 kB / 0.7697 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.1637, allocations: 87.98 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.1637, allocations: 8 kB / 0.7698 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.1637, allocations: 13.84 kB / 0.7698 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.535e-05/0.1638, allocations: 314.8 kB / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.393e-05/0.1639, allocations: 19.98 kB / 0.7701 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.223e-05/0.164, allocations: 15.92 kB / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.1642, allocations: 48.75 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1642, allocations: 4.062 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001902/0.1644, allocations: 65.58 kB / 0.7702 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.1644, allocations: 4 kB / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.1644, allocations: 0 / 0.7702 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1644, allocations: 3.984 kB / 0.7702 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.505e-05/0.1645, allocations: 8 kB / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1645, allocations: 0 / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.804e-05/0.1646, allocations: 8.016 kB / 0.7703 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.1646, allocations: 4.25 kB / 0.7703 GB, free: 4.164 MB / 0.5606 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.125e-05/0.1647, allocations: 118.4 kB / 0.7704 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.1647, allocations: 7.984 kB / 0.7704 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.1649, allocations: 68.78 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1649, allocations: 4 kB / 0.7705 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1649, allocations: 3.984 kB / 0.7705 GB, free: 3.953 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.1649, allocations: 4.031 kB / 0.7705 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.1651, allocations: 157.6 kB / 0.7706 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1651, allocations: 3.938 kB / 0.7706 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-05/0.1651, allocations: 11.98 kB / 0.7706 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1652, allocations: 0 / 0.7706 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-06/0.1652, allocations: 0 / 0.7706 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1652, allocations: 0 / 0.7706 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1652, allocations: 3.938 kB / 0.7706 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.1654, allocations: 171.4 kB / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.618e-05/0.1654, allocations: 81.02 kB / 0.7709 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.1654, allocations: 4 kB / 0.7709 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.508e-05/0.1655, allocations: 7.984 kB / 0.7709 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.123e-05/0.1656, allocations: 4 kB / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1656, allocations: 0 / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.264e-05/0.1656, allocations: 83.27 kB / 0.771 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1656, allocations: 4.031 kB / 0.771 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002216/0.1659, allocations: 8 kB / 0.771 GB, free: 3.336 MB / 0.5606 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.000114/0.166, allocations: 95.25 kB / 0.7711 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000211/0.1662, allocations: 47.89 kB / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.1662, allocations: 0 / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.466e-05/0.1663, allocations: 16.05 kB / 0.7711 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.1666, allocations: 16 kB / 0.7711 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000229/0.1668, allocations: 101.6 kB / 0.7712 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.167, allocations: 0.6807 MB / 0.7719 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.31e-05/0.1671, allocations: 0 / 0.7719 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.1671, allocations: 7.438 kB / 0.7719 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of SimCode: time 4.81e-07/0.1671, allocations: 0 / 0.7719 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of Templates: time 0.002389/0.1695, allocations: 0.5666 MB / 0.7725 GB, free: 1.75 MB / 0.5606 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)