Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009618/0.009619, allocations: 98.31 kB / 15.73 MB, free: 6.492 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.001664/0.001664, allocations: 200.8 kB / 16.68 MB, free: 6.375 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7616/0.7616, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001219, allocations: 64.62 kB / 0.5809 GB, free: 1.094 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1554, allocations: 80.2 MB / 0.6592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00177/0.1572, allocations: 0.5875 MB / 0.6598 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1586, allocations: 1.107 MB / 0.6609 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.413e-05/0.1586, allocations: 0 / 0.6609 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.416e-05/0.1586, allocations: 0 / 0.6609 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.1589, allocations: 31.78 kB / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 3.086e-06/0.1589, allocations: 0 / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.828e-05/0.159, allocations: 0 / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.159, allocations: 4 kB / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.257e-05/0.159, allocations: 0 / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.903e-05/0.159, allocations: 0 / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.473e-06/0.1591, allocations: 0 / 0.6609 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.1592, allocations: 27.91 kB / 0.661 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.444e-06/0.1592, allocations: 7.984 kB / 0.661 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.784e-05/0.1592, allocations: 3.938 kB / 0.661 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.071e-05/0.1593, allocations: 13.39 kB / 0.661 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1593, allocations: 0 / 0.661 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1593, allocations: 0 / 0.661 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.1593, allocations: 0 / 0.661 GB, free: 12.18 MB / 0.4981 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.0002768/0.1596, allocations: 319.8 kB / 0.6613 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1597, allocations: 12.02 kB / 0.6613 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.119e-05/0.1597, allocations: 30.75 kB / 0.6613 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.841e-05/0.1597, allocations: 4.938 kB / 0.6613 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.619e-05/0.1598, allocations: 164.4 kB / 0.6615 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1598, allocations: 4.312 kB / 0.6615 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.1599, allocations: 384 / 0.6615 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.16, allocations: 41.81 kB / 0.6615 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.16, allocations: 0 / 0.6615 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.16, allocations: 0 / 0.6615 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/0.16, allocations: 4 kB / 0.6615 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.866e-05/0.1601, allocations: 7.938 kB / 0.6615 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.1602, allocations: 161.6 kB / 0.6617 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.1604, allocations: 42.55 kB / 0.6617 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.387e-05/0.1605, allocations: 8.859 kB / 0.6617 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.1606, allocations: 85.09 kB / 0.6618 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.1606, allocations: 38.58 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1606, allocations: 3.938 kB / 0.6619 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.00426/0.1649, allocations: 0.5677 MB / 0.6624 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.165, allocations: 59.39 kB / 0.6625 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.924e-05/0.165, allocations: 89.86 kB / 0.6626 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.165, allocations: 25.7 kB / 0.6626 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/0.1651, allocations: 84.14 kB / 0.6627 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.1651, allocations: 11.86 kB / 0.6627 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.594e-05/0.1652, allocations: 21.7 kB / 0.6627 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.1653, allocations: 318.8 kB / 0.663 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006017/0.1659, allocations: 79.95 kB / 0.6631 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006125/0.1665, allocations: 106.5 kB / 0.6632 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.1677, allocations: 194.4 kB / 0.6634 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1677, allocations: 0 / 0.6634 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001298/0.169, allocations: 213.5 kB / 0.6636 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1691, allocations: 8 kB / 0.6636 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1691, allocations: 0 / 0.6636 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1691, allocations: 4.031 kB / 0.6636 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004186/0.1695, allocations: 47.97 kB / 0.6636 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.1695, allocations: 3.938 kB / 0.6636 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003592/0.1699, allocations: 43.98 kB / 0.6637 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.1699, allocations: 3.984 kB / 0.6637 GB, free: 9.148 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 0.0001012/0.17, allocations: 118.4 kB / 0.6638 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.1701, allocations: 3.938 kB / 0.6638 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.1715, allocations: 233.1 kB / 0.664 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1715, allocations: 4 kB / 0.664 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1715, allocations: 0 / 0.664 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1715, allocations: 4 kB / 0.664 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.173, allocations: 454.6 kB / 0.6645 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.173, allocations: 4.062 kB / 0.6645 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003952/0.1734, allocations: 47.97 kB / 0.6645 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1735, allocations: 3.938 kB / 0.6645 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1735, allocations: 4 kB / 0.6645 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.1735, allocations: 3.984 kB / 0.6645 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1735, allocations: 0 / 0.6645 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.1748, allocations: 311.3 kB / 0.6648 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.1748, allocations: 81.09 kB / 0.6649 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.1749, allocations: 0 / 0.6649 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003821/0.1753, allocations: 43.98 kB / 0.6649 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.257e-05/0.1753, allocations: 0 / 0.6649 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.1753, allocations: 3.984 kB / 0.6649 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.581e-05/0.1753, allocations: 79.28 kB / 0.665 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1753, allocations: 0 / 0.665 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002548/0.1756, allocations: 11.94 kB / 0.665 GB, free: 7.652 MB / 0.4981 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 (5): * Single equations (assignments): 5 * 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.001579/0.1772, allocations: 0.8412 MB / 0.6658 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001267/0.1785, allocations: 180 kB / 0.666 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1785, allocations: 0 / 0.666 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006038/0.1791, allocations: 92.02 kB / 0.6661 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.1793, allocations: 4 kB / 0.6661 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.1806, allocations: 246.4 kB / 0.6663 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1808, allocations: 0.6791 MB / 0.667 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001799/0.181, allocations: 28 kB / 0.667 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.1811, allocations: 15.42 kB / 0.667 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.1811, allocations: 0 / 0.667 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.1994, allocations: 1.626 MB / 0.6686 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.403/7.603, allocations: 11.31 kB / 0.6686 GB, free: 4.004 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)