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.007909/0.007909, allocations: 98.03 kB / 15.73 MB, free: 6.012 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.001964/0.001964, allocations: 195.2 kB / 16.67 MB, free: 5.926 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8414/0.8414, allocations: 135.6 MB / 426.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 74.33 kB / 0.5858 GB, free: 21.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1666, allocations: 81.02 MB / 0.6649 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.002175/0.1688, allocations: 0.5682 MB / 0.6655 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1707, allocations: 1.111 MB / 0.6665 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.692e-05/0.1707, allocations: 0 / 0.6665 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.309e-05/0.1708, allocations: 0 / 0.6665 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.171, allocations: 19.88 kB / 0.6666 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 3.377e-06/0.171, allocations: 4 kB / 0.6666 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.928e-05/0.171, allocations: 7.938 kB / 0.6666 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.1711, allocations: 3.984 kB / 0.6666 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.1711, allocations: 0 / 0.6666 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.892e-05/0.1711, allocations: 15.92 kB / 0.6666 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.856e-06/0.1712, allocations: 0 / 0.6666 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.1713, allocations: 15.98 kB / 0.6666 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.1713, allocations: 0 / 0.6666 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.1713, allocations: 3.938 kB / 0.6666 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.726e-05/0.1714, allocations: 15.91 kB / 0.6666 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1714, allocations: 4 kB / 0.6666 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1714, allocations: 4 kB / 0.6666 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.1714, allocations: 0 / 0.6666 GB, free: 3.797 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.0003107/0.1717, allocations: 319.8 kB / 0.6669 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1718, allocations: 9.109 kB / 0.667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.039e-05/0.1718, allocations: 30.75 kB / 0.667 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.1718, allocations: 4.938 kB / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.172, allocations: 160.4 kB / 0.6671 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.172, allocations: 4.375 kB / 0.6671 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.172, allocations: 384 / 0.6671 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.811e-05/0.1721, allocations: 41.81 kB / 0.6672 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.1721, allocations: 0 / 0.6672 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.1721, allocations: 4 kB / 0.6672 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1722, allocations: 0 / 0.6672 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.412e-05/0.1722, allocations: 19.86 kB / 0.6672 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1724, allocations: 145.6 kB / 0.6673 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.1726, allocations: 34.61 kB / 0.6674 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.7e-05/0.1726, allocations: 12.86 kB / 0.6674 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001629/0.1728, allocations: 93.17 kB / 0.6675 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.1728, allocations: 34.5 kB / 0.6675 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.133e-06/0.1728, allocations: 0 / 0.6675 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.004314/0.1772, allocations: 0.5715 MB / 0.6681 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1772, allocations: 51.41 kB / 0.6681 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.406e-05/0.1773, allocations: 97.8 kB / 0.6682 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1774, allocations: 25.7 kB / 0.6682 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.1774, allocations: 80.14 kB / 0.6683 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.726e-05/0.1775, allocations: 15.91 kB / 0.6683 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.898e-05/0.1775, allocations: 17.7 kB / 0.6683 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1777, allocations: 314.8 kB / 0.6686 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006016/0.1783, allocations: 83.95 kB / 0.6687 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/0.179, allocations: 106.5 kB / 0.6688 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.1801, allocations: 186.4 kB / 0.669 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.1802, allocations: 3.938 kB / 0.669 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001307/0.1815, allocations: 225.5 kB / 0.6692 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1815, allocations: 8 kB / 0.6692 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1815, allocations: 0 / 0.6692 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.1815, allocations: 0 / 0.6692 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.182, allocations: 52.19 kB / 0.6693 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.182, allocations: 0 / 0.6693 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003494/0.1823, allocations: 47.97 kB / 0.6693 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.1824, allocations: 0 / 0.6693 GB, free: 0.7773 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.0001099/0.1825, allocations: 117.8 kB / 0.6694 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.1825, allocations: 3.938 kB / 0.6694 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.1839, allocations: 241 kB / 0.6697 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.1839, allocations: 0 / 0.6697 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1839, allocations: 0 / 0.6697 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.1839, allocations: 3.984 kB / 0.6697 GB, free: 408 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.1855, allocations: 462.4 kB / 0.6701 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1855, allocations: 0 / 0.6701 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/0.1859, allocations: 47.97 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1859, allocations: 7.938 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.1859, allocations: 0 / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1859, allocations: 0 / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1859, allocations: 0 / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.1872, allocations: 307.4 kB / 0.6705 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.1873, allocations: 81.06 kB / 0.6705 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.1873, allocations: 4 kB / 0.6705 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003732/0.1877, allocations: 35.98 kB / 0.6706 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.1877, allocations: 7.984 kB / 0.6706 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.1877, allocations: 4.188 kB / 0.6706 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.714e-05/0.1878, allocations: 75.28 kB / 0.6707 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1878, allocations: 3.938 kB / 0.6707 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002527/0.188, allocations: 12 kB / 0.6707 GB, free: 15.28 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.001752/0.1898, allocations: 0.8374 MB / 0.6715 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.1911, allocations: 187.9 kB / 0.6717 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1911, allocations: 0 / 0.6717 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005988/0.1917, allocations: 88.08 kB / 0.6718 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.1919, allocations: 0 / 0.6718 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.1932, allocations: 254.4 kB / 0.672 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.1936, allocations: 0.6768 MB / 0.6727 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001807/0.1938, allocations: 28.25 kB / 0.6727 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.073e-05/0.1938, allocations: 19.36 kB / 0.6727 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.1939, allocations: 3.938 kB / 0.6727 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02214/0.216, allocations: 1.629 MB / 0.6743 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/8.037, allocations: 7.062 kB / 0.6743 GB, free: 11.59 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)