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.001114/0.001114, 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.001173/0.001173, allocations: 193.7 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9429/0.9429, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 68.28 kB / 0.5055 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1438, allocations: 80.93 MB / 0.5845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001645/0.1454, allocations: 0.5687 MB / 0.585 GB, free: 3.879 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1467, allocations: 1.113 MB / 0.5861 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.205e-05/0.1467, allocations: 0 / 0.5861 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.037e-05/0.1468, allocations: 0 / 0.5861 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.147, allocations: 11.94 kB / 0.5861 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.076e-06/0.147, allocations: 0 / 0.5861 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.301e-05/0.147, allocations: 4 kB / 0.5861 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.249e-05/0.1471, allocations: 3.984 kB / 0.5862 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.436e-05/0.1471, allocations: 3.938 kB / 0.5862 GB, free: 2.727 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.839e-05/0.1471, allocations: 3.984 kB / 0.5862 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.752e-06/0.1471, allocations: 4 kB / 0.5862 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.472e-05/0.1472, allocations: 23.92 kB / 0.5862 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.16e-06/0.1472, allocations: 4 kB / 0.5862 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.099e-05/0.1472, allocations: 0 / 0.5862 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.92e-05/0.1473, allocations: 19.91 kB / 0.5862 GB, free: 2.672 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1473, allocations: 0 / 0.5862 GB, free: 2.672 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1473, allocations: 0 / 0.5862 GB, free: 2.672 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.1473, allocations: 0 / 0.5862 GB, free: 2.672 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.000265/0.1476, allocations: 327.6 kB / 0.5865 GB, free: 2.305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.1477, allocations: 8.031 kB / 0.5865 GB, free: 2.297 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.1477, allocations: 34.69 kB / 0.5866 GB, free: 2.254 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.989e-05/0.1477, allocations: 0.9375 kB / 0.5866 GB, free: 2.254 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.997e-05/0.1478, allocations: 168.4 kB / 0.5867 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-06/0.1478, allocations: 384 / 0.5867 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.252e-05/0.1478, allocations: 8.281 kB / 0.5867 GB, free: 2.043 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.64e-05/0.1479, allocations: 37.81 kB / 0.5868 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.148, allocations: 3.984 kB / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.148, allocations: 0 / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.148, allocations: 0 / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.104e-05/0.148, allocations: 7.984 kB / 0.5868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001307/0.1481, allocations: 149.7 kB / 0.5869 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.1483, allocations: 42.55 kB / 0.587 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.989e-05/0.1483, allocations: 12.86 kB / 0.587 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.1485, allocations: 85.19 kB / 0.5871 GB, free: 1.625 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.1485, allocations: 38.5 kB / 0.5871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1485, allocations: 0 / 0.5871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=5): time 0.004591/0.1531, allocations: 0.5717 MB / 0.5876 GB, free: 1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1532, allocations: 55.41 kB / 0.5877 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.209e-05/0.1532, allocations: 89.86 kB / 0.5878 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1532, allocations: 25.7 kB / 0.5878 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.269e-05/0.1533, allocations: 84.14 kB / 0.5879 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.1533, allocations: 7.812 kB / 0.5879 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.827e-05/0.1534, allocations: 21.7 kB / 0.5879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.1535, allocations: 318.8 kB / 0.5882 GB, free: 372 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006482/0.1541, allocations: 87.89 kB / 0.5883 GB, free: 284 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006354/0.1548, allocations: 102.5 kB / 0.5884 GB, free: 172 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.156, allocations: 186.5 kB / 0.5886 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.156, allocations: 0 / 0.5886 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001355/0.1574, allocations: 225.4 kB / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1574, allocations: 4 kB / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1574, allocations: 0 / 0.5888 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.1575, allocations: 4 kB / 0.5888 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.1579, allocations: 51.94 kB / 0.5889 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1579, allocations: 0 / 0.5889 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/0.1583, allocations: 43.97 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.1584, allocations: 4 kB / 0.5889 GB, free: 15.64 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.214e-05/0.1585, allocations: 109.8 kB / 0.589 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.1585, allocations: 3.938 kB / 0.589 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001446/0.1599, allocations: 241 kB / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.16, allocations: 0 / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.16, allocations: 0 / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.16, allocations: 0 / 0.5892 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.1616, allocations: 450.5 kB / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1616, allocations: 8.297 kB / 0.5897 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004148/0.162, allocations: 47.92 kB / 0.5897 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.162, allocations: 7.984 kB / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.162, allocations: 4 kB / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1621, allocations: 0 / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1621, allocations: 0 / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.1634, allocations: 307.4 kB / 0.59 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-05/0.1635, allocations: 81.02 kB / 0.5901 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.1635, allocations: 0 / 0.5901 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.1639, allocations: 39.98 kB / 0.5901 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.741e-05/0.164, allocations: 4.406 kB / 0.5901 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.164, allocations: 8 kB / 0.5902 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.644e-05/0.164, allocations: 75.28 kB / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.164, allocations: 0 / 0.5902 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002551/0.1643, allocations: 12 kB / 0.5902 GB, free: 14.17 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.001707/0.166, allocations: 0.8527 MB / 0.5911 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001374/0.1674, allocations: 187.9 kB / 0.5913 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1674, allocations: 0 / 0.5913 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006424/0.168, allocations: 88.08 kB / 0.5913 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.1683, allocations: 2.406 kB / 0.5913 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.1696, allocations: 250.5 kB / 0.5916 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.1698, allocations: 0.6729 MB / 0.5922 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002378/0.1701, allocations: 28 kB / 0.5923 GB, free: 12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.143e-05/0.1702, allocations: 19.42 kB / 0.5923 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1702, allocations: 0 / 0.5923 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1866, allocations: 1.611 MB / 0.5939 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.134/7.321, allocations: 5.188 kB / 0.5939 GB, free: 10.5 MB / 0.4981 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)