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.001304/0.001304, allocations: 106.1 kB / 15.98 MB, free: 6.332 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.001238/0.001239, allocations: 198.6 kB / 16.91 MB, free: 6.18 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.24/1.24, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 288 kB / 291 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8687/0.8687, allocations: 169.2 MB / 0.4985 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 93.72 kB / 0.5953 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1539, allocations: 86.99 MB / 0.6803 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002787/0.1567, allocations: 1.492 MB / 0.6817 GB, free: 7.055 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007347/0.1575, allocations: 460.5 kB / 0.6822 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.067e-05/0.1575, allocations: 0 / 0.6822 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.195e-05/0.1576, allocations: 0 / 0.6822 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.721e-05/0.1576, allocations: 3.938 kB / 0.6822 GB, free: 6.594 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.1578, allocations: 19.98 kB / 0.6822 GB, free: 6.574 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.179e-05/0.1579, allocations: 31.91 kB / 0.6822 GB, free: 6.543 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.158, allocations: 7.984 kB / 0.6822 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.658e-05/0.1581, allocations: 11.94 kB / 0.6822 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.298e-05/0.1581, allocations: 11.98 kB / 0.6823 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.1581, allocations: 4 kB / 0.6823 GB, free: 6.508 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.787e-05/0.1582, allocations: 19.92 kB / 0.6823 GB, free: 6.488 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.461e-05/0.1582, allocations: 11.92 kB / 0.6823 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.135e-05/0.1582, allocations: 7.984 kB / 0.6823 GB, free: 6.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.575e-05/0.1583, allocations: 24.19 kB / 0.6823 GB, free: 6.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1583, allocations: 0 / 0.6823 GB, free: 6.445 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1583, allocations: 0 / 0.6823 GB, free: 6.445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1584, allocations: 0 / 0.6823 GB, free: 6.445 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.0004233/0.1588, allocations: 355.3 kB / 0.6827 GB, free: 6.051 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1588, allocations: 8.031 kB / 0.6827 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.1589, allocations: 4.938 kB / 0.6827 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.159, allocations: 164.4 kB / 0.6828 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.159, allocations: 4.375 kB / 0.6828 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.159, allocations: 384 / 0.6828 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.1592, allocations: 57.92 kB / 0.6829 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1592, allocations: 0 / 0.6829 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1592, allocations: 0 / 0.6829 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.1592, allocations: 4 kB / 0.6829 GB, free: 5.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.1594, allocations: 35.95 kB / 0.6829 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003259/0.1598, allocations: 248.8 kB / 0.6832 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.1599, allocations: 42.59 kB / 0.6832 GB, free: 5.391 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.057e-05/0.16, allocations: 28.84 kB / 0.6832 GB, free: 5.359 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.1601, allocations: 85.09 kB / 0.6833 GB, free: 5.258 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.1601, allocations: 30.56 kB / 0.6833 GB, free: 5.219 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.113e-06/0.1602, allocations: 0 / 0.6833 GB, free: 5.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003163/0.1605, allocations: 81.64 kB / 0.6834 GB, free: 5.133 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.1605, allocations: 55.53 kB / 0.6835 GB, free: 5.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.758e-05/0.1606, allocations: 101.9 kB / 0.6836 GB, free: 4.957 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.1606, allocations: 25.7 kB / 0.6836 GB, free: 4.926 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.043e-05/0.1607, allocations: 88.06 kB / 0.6837 GB, free: 4.836 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.1607, allocations: 7.906 kB / 0.6837 GB, free: 4.828 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.1607, allocations: 13.72 kB / 0.6837 GB, free: 4.809 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1608, allocations: 310.8 kB / 0.684 GB, free: 4.496 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.032e-05/0.1609, allocations: 23.92 kB / 0.684 GB, free: 4.473 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.563e-05/0.161, allocations: 19.97 kB / 0.684 GB, free: 4.453 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.1611, allocations: 40.77 kB / 0.6841 GB, free: 4.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.1611, allocations: 0 / 0.6841 GB, free: 4.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001775/0.1613, allocations: 73.59 kB / 0.6842 GB, free: 4.332 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1614, allocations: 9.969 kB / 0.6842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1614, allocations: 0 / 0.6842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1614, allocations: 0 / 0.6842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.463e-05/0.1615, allocations: 11.98 kB / 0.6842 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1615, allocations: 0 / 0.6842 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.628e-05/0.1615, allocations: 4 kB / 0.6842 GB, free: 4.309 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-06/0.1616, allocations: 3.938 kB / 0.6842 GB, free: 4.305 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.628e-05/0.1616, allocations: 109.8 kB / 0.6843 GB, free: 4.188 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.346e-05/0.1617, allocations: 7.984 kB / 0.6843 GB, free: 4.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002138/0.1619, allocations: 72.78 kB / 0.6844 GB, free: 4.102 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1619, allocations: 4 kB / 0.6844 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1619, allocations: 0 / 0.6844 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1619, allocations: 3.938 kB / 0.6844 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.1621, allocations: 161.5 kB / 0.6845 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1621, allocations: 4.234 kB / 0.6845 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.1621, allocations: 12 kB / 0.6845 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1621, allocations: 4.031 kB / 0.6845 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1621, allocations: 0 / 0.6845 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1622, allocations: 0 / 0.6845 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1622, allocations: 0 / 0.6845 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.1624, allocations: 171.4 kB / 0.6847 GB, free: 3.684 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.1624, allocations: 81.09 kB / 0.6848 GB, free: 3.586 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1625, allocations: 8.031 kB / 0.6848 GB, free: 3.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.1625, allocations: 0 / 0.6848 GB, free: 3.578 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.1626, allocations: 11.97 kB / 0.6848 GB, free: 3.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.1626, allocations: 0 / 0.6848 GB, free: 3.566 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.66e-05/0.1626, allocations: 83.28 kB / 0.6849 GB, free: 3.484 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1626, allocations: 0 / 0.6849 GB, free: 3.484 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.1629, allocations: 8 kB / 0.6849 GB, free: 3.477 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.000148/0.163, allocations: 99.23 kB / 0.685 GB, free: 3.367 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.1632, allocations: 51.89 kB / 0.685 GB, free: 3.316 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1632, allocations: 0 / 0.685 GB, free: 3.316 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.615e-05/0.1633, allocations: 15.98 kB / 0.685 GB, free: 3.301 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.1636, allocations: 7.922 kB / 0.6851 GB, free: 3.293 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002853/0.1639, allocations: 151.3 kB / 0.6852 GB, free: 3.113 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.1641, allocations: 0.6768 MB / 0.6859 GB, free: 2.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.153e-05/0.1642, allocations: 7.438 kB / 0.6859 GB, free: 2.402 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1642, allocations: 0 / 0.6859 GB, free: 2.402 MB / 494.1 MB Notification: Performance of Templates: time 0.00189/0.1661, allocations: 0.6558 MB / 0.6865 GB, free: 1.75 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)