Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.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.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",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.001127/0.001127, allocations: 108 kB / 15.61 MB, free: 152 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.001344/0.001344, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9629/0.9629, allocations: 135.1 MB / 425.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 68.48 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.15, allocations: 80.93 MB / 0.5845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.003256/0.1533, allocations: 1.437 MB / 0.5859 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.1541, allocations: 461.5 kB / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.458e-05/0.1541, allocations: 0 / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.591e-05/0.1542, allocations: 7.875 kB / 0.5863 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.176e-05/0.1543, allocations: 7.938 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.1545, allocations: 19.97 kB / 0.5863 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.46e-05/0.1546, allocations: 31.86 kB / 0.5864 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.1547, allocations: 4 kB / 0.5864 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.673e-05/0.1548, allocations: 15.92 kB / 0.5864 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.261e-05/0.1549, allocations: 7.938 kB / 0.5864 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.1549, allocations: 4 kB / 0.5864 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.986e-05/0.155, allocations: 15.98 kB / 0.5864 GB, free: 2.457 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.155, allocations: 11.97 kB / 0.5864 GB, free: 2.445 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.875e-05/0.155, allocations: 11.94 kB / 0.5864 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.1552, allocations: 31.91 kB / 0.5865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1552, allocations: 0 / 0.5865 GB, free: 2.402 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1552, allocations: 4 kB / 0.5865 GB, free: 2.398 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1552, allocations: 0 / 0.5865 GB, free: 2.398 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.000574/0.1558, allocations: 343.7 kB / 0.5868 GB, free: 2.016 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.1558, allocations: 12.03 kB / 0.5868 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.1559, allocations: 30.75 kB / 0.5868 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.955e-05/0.1559, allocations: 0.9375 kB / 0.5868 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.1561, allocations: 176.2 kB / 0.587 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1561, allocations: 384 / 0.587 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.1561, allocations: 384 / 0.587 GB, free: 1.754 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.1563, allocations: 53.8 kB / 0.5871 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1564, allocations: 0 / 0.5871 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.1564, allocations: 4 kB / 0.5871 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1564, allocations: 0 / 0.5871 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.1566, allocations: 39.95 kB / 0.5871 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004176/0.157, allocations: 252.8 kB / 0.5874 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.1571, allocations: 38.55 kB / 0.5874 GB, free: 1.309 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.1572, allocations: 24.91 kB / 0.5874 GB, free: 1.281 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001348/0.1574, allocations: 81.11 kB / 0.5875 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.1574, allocations: 38.55 kB / 0.5875 GB, free: 1.137 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1574, allocations: 0 / 0.5875 GB, free: 1.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003928/0.1578, allocations: 81.59 kB / 0.5876 GB, free: 1.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.1579, allocations: 51.41 kB / 0.5877 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.284e-05/0.158, allocations: 113.8 kB / 0.5878 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.158, allocations: 29.83 kB / 0.5878 GB, free: 0.832 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.158, allocations: 80.14 kB / 0.5879 GB, free: 0.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.1581, allocations: 7.844 kB / 0.5879 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.1581, allocations: 21.7 kB / 0.5879 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1583, allocations: 314.8 kB / 0.5882 GB, free: 408 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.468e-05/0.1583, allocations: 15.98 kB / 0.5882 GB, free: 392 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.499e-05/0.1584, allocations: 19.92 kB / 0.5882 GB, free: 372 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.1586, allocations: 44.88 kB / 0.5883 GB, free: 324 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1586, allocations: 0 / 0.5883 GB, free: 324 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001899/0.1588, allocations: 73.5 kB / 0.5883 GB, free: 244 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1588, allocations: 11.98 kB / 0.5884 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1588, allocations: 0 / 0.5884 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.1589, allocations: 0 / 0.5884 GB, free: 232 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.199e-05/0.159, allocations: 12.03 kB / 0.5884 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.159, allocations: 0 / 0.5884 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.713e-05/0.159, allocations: 7.984 kB / 0.5884 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.159, allocations: 0 / 0.5884 GB, free: 212 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 9.559e-05/0.1591, allocations: 109.8 kB / 0.5885 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.1592, allocations: 4 kB / 0.5885 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.1594, allocations: 80.7 kB / 0.5886 GB, free: 0 / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1594, allocations: 0 / 0.5886 GB, free: 0 / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1594, allocations: 0 / 0.5886 GB, free: 0 / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/0.1595, allocations: 48 / 0.5886 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.1596, allocations: 161.6 kB / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1596, allocations: 0 / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.729e-05/0.1597, allocations: 7.984 kB / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1597, allocations: 0 / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.1597, allocations: 4 kB / 0.5887 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1597, allocations: 0 / 0.5887 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1597, allocations: 4.031 kB / 0.5887 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.16, allocations: 163.5 kB / 0.5889 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.277e-05/0.16, allocations: 81.02 kB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1601, allocations: 0 / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.576e-05/0.1601, allocations: 7.984 kB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.1602, allocations: 11.97 kB / 0.589 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-06/0.1602, allocations: 256 / 0.589 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.449e-05/0.1602, allocations: 95.2 kB / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1603, allocations: 0 / 0.5891 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002177/0.1605, allocations: 4 kB / 0.5891 GB, free: 15.39 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 (2): * Single equations (assignments): 2 * 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.0005716/0.1611, allocations: 0.6968 MB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002167/0.1613, allocations: 35.95 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1613, allocations: 0 / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.877e-05/0.1614, allocations: 23.92 kB / 0.5898 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.1617, allocations: 8.094 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004404/0.1622, allocations: 151.1 kB / 0.59 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.1625, allocations: 0.6768 MB / 0.5906 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.173e-05/0.1625, allocations: 0 / 0.5906 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.143e-05/0.1625, allocations: 11.42 kB / 0.5906 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of SimCode: time 1.91e-07/0.1625, allocations: 0 / 0.5906 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.1808, allocations: 1.385 MB / 0.592 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.585, allocations: 2.531 kB / 0.592 GB, free: 12.38 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)