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.001587/0.001587, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7412/0.7412, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001256, allocations: 68.86 kB / 0.5019 GB, free: 8.664 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1351, allocations: 80.19 MB / 0.5802 GB, free: 8.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001695/0.1368, allocations: 0.597 MB / 0.5808 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.138, allocations: 1.11 MB / 0.5819 GB, free: 6.973 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.182e-05/0.138, allocations: 4 kB / 0.5819 GB, free: 6.969 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.1381, allocations: 0 / 0.5819 GB, free: 6.969 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.1383, allocations: 15.86 kB / 0.5819 GB, free: 6.953 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.226e-06/0.1383, allocations: 4 kB / 0.5819 GB, free: 6.949 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.078e-05/0.1383, allocations: 3.984 kB / 0.5819 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.1383, allocations: 0 / 0.5819 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.1384, allocations: 4 kB / 0.5819 GB, free: 6.941 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.799e-05/0.1384, allocations: 7.938 kB / 0.5819 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-06/0.1384, allocations: 0 / 0.5819 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.345e-05/0.1385, allocations: 23.91 kB / 0.5819 GB, free: 6.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.24e-06/0.1385, allocations: 4 kB / 0.5819 GB, free: 6.906 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.256e-05/0.1385, allocations: 3.984 kB / 0.5819 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.076e-05/0.1386, allocations: 19.92 kB / 0.582 GB, free: 6.883 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1386, allocations: 4 kB / 0.582 GB, free: 6.879 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1386, allocations: 0 / 0.582 GB, free: 6.879 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1386, allocations: 0 / 0.582 GB, free: 6.879 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.0002276/0.1389, allocations: 311.6 kB / 0.5823 GB, free: 6.527 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.1389, allocations: 12.03 kB / 0.5823 GB, free: 6.516 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.791e-05/0.1389, allocations: 34.73 kB / 0.5823 GB, free: 6.473 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.996e-05/0.139, allocations: 0.9375 kB / 0.5823 GB, free: 6.473 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.554e-05/0.139, allocations: 164.4 kB / 0.5825 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1391, allocations: 8.312 kB / 0.5825 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.1391, allocations: 4.375 kB / 0.5825 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.95e-05/0.1392, allocations: 37.81 kB / 0.5825 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.1392, allocations: 3.906 kB / 0.5825 GB, free: 6.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.1392, allocations: 0 / 0.5825 GB, free: 6.215 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1392, allocations: 3.984 kB / 0.5825 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.407e-05/0.1392, allocations: 8 kB / 0.5825 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001279/0.1394, allocations: 149.7 kB / 0.5827 GB, free: 6.008 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.1396, allocations: 42.55 kB / 0.5827 GB, free: 5.957 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.1396, allocations: 4.859 kB / 0.5827 GB, free: 5.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001355/0.1397, allocations: 85.11 kB / 0.5828 GB, free: 5.848 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.1397, allocations: 34.5 kB / 0.5828 GB, free: 5.805 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.1398, allocations: 4 kB / 0.5828 GB, free: 5.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004544/0.1443, allocations: 0.568 MB / 0.5834 GB, free: 5.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.1444, allocations: 55.41 kB / 0.5834 GB, free: 5.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.958e-05/0.1444, allocations: 89.86 kB / 0.5835 GB, free: 5.062 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1444, allocations: 29.69 kB / 0.5835 GB, free: 5.027 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1444, allocations: 80.14 kB / 0.5836 GB, free: 4.945 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.1445, allocations: 19.8 kB / 0.5836 GB, free: 4.926 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.072e-05/0.1445, allocations: 13.72 kB / 0.5837 GB, free: 4.906 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.357e-05/0.1446, allocations: 322.8 kB / 0.584 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006526/0.1453, allocations: 83.95 kB / 0.584 GB, free: 4.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006629/0.146, allocations: 102.5 kB / 0.5841 GB, free: 4.391 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1473, allocations: 190.4 kB / 0.5843 GB, free: 4.195 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1473, allocations: 0 / 0.5843 GB, free: 4.195 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00137/0.1487, allocations: 225.4 kB / 0.5845 GB, free: 3.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1487, allocations: 8 kB / 0.5845 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1487, allocations: 0 / 0.5845 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.1487, allocations: 0 / 0.5845 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.1491, allocations: 52 kB / 0.5846 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.1491, allocations: 3.938 kB / 0.5846 GB, free: 3.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.1495, allocations: 39.98 kB / 0.5846 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.1495, allocations: 4.172 kB / 0.5846 GB, free: 3.863 MB / 494.1 MB 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 7.641e-05/0.1496, allocations: 114.5 kB / 0.5847 GB, free: 3.742 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.1497, allocations: 3.938 kB / 0.5848 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.1511, allocations: 237.1 kB / 0.585 GB, free: 3.496 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1512, allocations: 4 kB / 0.585 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1512, allocations: 0 / 0.585 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.1512, allocations: 0 / 0.585 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.1527, allocations: 454.4 kB / 0.5854 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1528, allocations: 4 kB / 0.5854 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004056/0.1532, allocations: 43.97 kB / 0.5855 GB, free: 2.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1532, allocations: 0 / 0.5855 GB, free: 2.945 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1532, allocations: 8 kB / 0.5855 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1532, allocations: 0 / 0.5855 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1532, allocations: 0 / 0.5855 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1546, allocations: 307.3 kB / 0.5858 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-05/0.1546, allocations: 85.02 kB / 0.5858 GB, free: 2.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.445e-05/0.1547, allocations: 3.984 kB / 0.5858 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.1551, allocations: 39.98 kB / 0.5859 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.645e-05/0.1551, allocations: 0 / 0.5859 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.1551, allocations: 3.984 kB / 0.5859 GB, free: 2.473 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.603e-05/0.1551, allocations: 79.28 kB / 0.586 GB, free: 2.395 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1551, allocations: 0 / 0.586 GB, free: 2.395 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000256/0.1554, allocations: 20 kB / 0.586 GB, free: 2.375 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 (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.001713/0.1571, allocations: 0.8457 MB / 0.5868 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1585, allocations: 176 kB / 0.587 GB, free: 1.332 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1585, allocations: 0 / 0.587 GB, free: 1.332 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.1592, allocations: 99.94 kB / 0.5871 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.1594, allocations: 7.938 kB / 0.5871 GB, free: 1.227 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.1608, allocations: 246.5 kB / 0.5873 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.161, allocations: 0.6768 MB / 0.588 GB, free: 248 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002205/0.1612, allocations: 28 kB / 0.588 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.998e-05/0.1613, allocations: 11.44 kB / 0.588 GB, free: 208 kB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1613, allocations: 4 kB / 0.588 GB, free: 204 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01642/0.1778, allocations: 1.602 MB / 0.5896 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.212/7.39, allocations: 8.547 kB / 0.5896 GB, free: 14.72 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)