Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_dev_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.007114/0.007114, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001539/0.001539, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8269/0.8269, allocations: 135.1 MB / 425.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 63.59 kB / 0.5852 GB, free: 21.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1704, allocations: 80.92 MB / 0.6642 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001663/0.1721, allocations: 0.5759 MB / 0.6648 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1734, allocations: 1.115 MB / 0.6659 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.159e-05/0.1735, allocations: 0 / 0.6659 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.1735, allocations: 0 / 0.6659 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.1737, allocations: 19.86 kB / 0.6659 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 2.424e-06/0.1737, allocations: 0 / 0.6659 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.653e-05/0.1737, allocations: 3.938 kB / 0.6659 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.1738, allocations: 4 kB / 0.6659 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.292e-05/0.1738, allocations: 4 kB / 0.6659 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.983e-05/0.1738, allocations: 3.984 kB / 0.6659 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.013e-06/0.1738, allocations: 4 kB / 0.6659 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.491e-05/0.1739, allocations: 23.91 kB / 0.6659 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.651e-06/0.174, allocations: 0 / 0.6659 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.732e-05/0.174, allocations: 3.938 kB / 0.6659 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.959e-05/0.1741, allocations: 23.91 kB / 0.6659 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1741, allocations: 0 / 0.6659 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1741, allocations: 0 / 0.6659 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.1741, allocations: 0 / 0.6659 GB, free: 4.465 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.0002808/0.1744, allocations: 315.8 kB / 0.6662 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1744, allocations: 13.11 kB / 0.6663 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.36e-05/0.1745, allocations: 42.75 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.449e-05/0.1745, allocations: 0.9375 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.706e-05/0.1746, allocations: 160.4 kB / 0.6664 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.1746, allocations: 384 / 0.6664 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.1746, allocations: 4.375 kB / 0.6665 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.241e-05/0.1747, allocations: 41.75 kB / 0.6665 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1747, allocations: 0 / 0.6665 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.1748, allocations: 4 kB / 0.6665 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1748, allocations: 0 / 0.6665 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.508e-05/0.1748, allocations: 7.938 kB / 0.6665 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001396/0.175, allocations: 161.6 kB / 0.6667 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.1751, allocations: 30.61 kB / 0.6667 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.634e-05/0.1751, allocations: 8.859 kB / 0.6667 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.1753, allocations: 89.03 kB / 0.6668 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.1753, allocations: 42.58 kB / 0.6668 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1753, allocations: 0 / 0.6668 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.004259/0.1796, allocations: 0.5715 MB / 0.6674 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1796, allocations: 51.41 kB / 0.6674 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.848e-05/0.1797, allocations: 89.86 kB / 0.6675 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1797, allocations: 25.7 kB / 0.6675 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.32e-05/0.1797, allocations: 80.14 kB / 0.6676 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.1798, allocations: 15.91 kB / 0.6676 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.1798, allocations: 21.7 kB / 0.6677 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.1799, allocations: 314.8 kB / 0.668 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/0.1805, allocations: 79.95 kB / 0.668 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006087/0.1812, allocations: 106.5 kB / 0.6681 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.1823, allocations: 194.4 kB / 0.6683 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1824, allocations: 0 / 0.6683 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001307/0.1837, allocations: 221.5 kB / 0.6685 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1837, allocations: 4 kB / 0.6685 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1837, allocations: 4.062 kB / 0.6685 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1837, allocations: 4 kB / 0.6685 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.1841, allocations: 47.97 kB / 0.6686 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1841, allocations: 0 / 0.6686 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.1845, allocations: 43.97 kB / 0.6686 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.1845, allocations: 7.938 kB / 0.6686 GB, free: 1.441 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 8.42e-05/0.1846, allocations: 117.7 kB / 0.6687 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.1846, allocations: 7.938 kB / 0.6688 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/0.186, allocations: 229.4 kB / 0.669 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.186, allocations: 4 kB / 0.669 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.186, allocations: 4 kB / 0.669 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.186, allocations: 0 / 0.669 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1875, allocations: 454.4 kB / 0.6694 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.1875, allocations: 4 kB / 0.6694 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.1879, allocations: 47.97 kB / 0.6695 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1879, allocations: 3.938 kB / 0.6695 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.188, allocations: 7.984 kB / 0.6695 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.188, allocations: 0 / 0.6695 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.188, allocations: 4 kB / 0.6695 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.1892, allocations: 303.3 kB / 0.6698 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.1893, allocations: 85.05 kB / 0.6698 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.1893, allocations: 4 kB / 0.6699 GB, free: 84 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.1897, allocations: 35.98 kB / 0.6699 GB, free: 48 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.1897, allocations: 4 kB / 0.6699 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.1897, allocations: 7.984 kB / 0.6699 GB, free: 36 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.926e-05/0.1898, allocations: 75.28 kB / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1898, allocations: 0 / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002558/0.19, allocations: 16 kB / 0.67 GB, free: 15.95 MB / 0.5137 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.001598/0.1916, allocations: 0.8387 MB / 0.6708 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.1929, allocations: 183.9 kB / 0.671 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.193, allocations: 0 / 0.671 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005958/0.1936, allocations: 88.08 kB / 0.6711 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.1938, allocations: 11.88 kB / 0.6711 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.1951, allocations: 246.4 kB / 0.6713 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1954, allocations: 0.6768 MB / 0.672 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001931/0.1956, allocations: 32.31 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.301e-05/0.1957, allocations: 19.42 kB / 0.672 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.1957, allocations: 0 / 0.672 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.2167, allocations: 1.616 MB / 0.6736 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.375/7.592, allocations: 10.39 kB / 0.6736 GB, free: 12.25 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)