Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_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.001128/0.001128, 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.001446/0.001447, allocations: 197.6 kB / 16.54 MB, free: 6.672 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8377/0.8377, allocations: 132.2 MB / 422.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 56.56 kB / 0.5019 GB, free: 8.621 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1575, allocations: 80.21 MB / 0.5802 GB, free: 8.641 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002642/0.1602, allocations: 1.43 MB / 0.5816 GB, free: 7.191 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007095/0.1609, allocations: 473.5 kB / 0.582 GB, free: 6.723 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.437e-05/0.1609, allocations: 0 / 0.582 GB, free: 6.723 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.485e-05/0.161, allocations: 3.938 kB / 0.582 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.556e-05/0.161, allocations: 0 / 0.582 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.1612, allocations: 27.92 kB / 0.5821 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.726e-05/0.1613, allocations: 27.86 kB / 0.5821 GB, free: 6.664 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.1614, allocations: 8 kB / 0.5821 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.998e-05/0.1615, allocations: 11.98 kB / 0.5821 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.72e-05/0.1615, allocations: 7.938 kB / 0.5821 GB, free: 6.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1615, allocations: 3.984 kB / 0.5821 GB, free: 6.633 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.751e-05/0.1616, allocations: 31.86 kB / 0.5822 GB, free: 6.602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.334e-05/0.1616, allocations: 3.984 kB / 0.5822 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.1617, allocations: 11.94 kB / 0.5822 GB, free: 6.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.1618, allocations: 31.89 kB / 0.5822 GB, free: 6.555 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1618, allocations: 0 / 0.5822 GB, free: 6.555 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1618, allocations: 0 / 0.5822 GB, free: 6.555 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.1618, allocations: 0 / 0.5822 GB, free: 6.555 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.0004709/0.1623, allocations: 355.7 kB / 0.5825 GB, free: 6.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1623, allocations: 8.031 kB / 0.5825 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.351e-05/0.1624, allocations: 30.75 kB / 0.5826 GB, free: 6.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.573e-05/0.1624, allocations: 4.938 kB / 0.5826 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.1625, allocations: 164.3 kB / 0.5827 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1626, allocations: 384 / 0.5827 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.1626, allocations: 4.375 kB / 0.5827 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.1628, allocations: 57.73 kB / 0.5828 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1628, allocations: 0 / 0.5828 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.1628, allocations: 4 kB / 0.5828 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.1628, allocations: 3.984 kB / 0.5828 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.163, allocations: 31.95 kB / 0.5828 GB, free: 5.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003228/0.1633, allocations: 252.9 kB / 0.5831 GB, free: 5.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.1635, allocations: 46.48 kB / 0.5831 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.583e-05/0.1636, allocations: 16.91 kB / 0.5831 GB, free: 5.434 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001459/0.1637, allocations: 85.11 kB / 0.5832 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.1637, allocations: 34.55 kB / 0.5833 GB, free: 5.289 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.1638, allocations: 0 / 0.5833 GB, free: 5.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003651/0.1641, allocations: 77.66 kB / 0.5833 GB, free: 5.207 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.1642, allocations: 59.41 kB / 0.5834 GB, free: 5.137 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.493e-05/0.1643, allocations: 97.84 kB / 0.5835 GB, free: 5.031 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.1643, allocations: 25.7 kB / 0.5835 GB, free: 5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.1643, allocations: 84.14 kB / 0.5836 GB, free: 4.914 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.1644, allocations: 11.84 kB / 0.5836 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.1644, allocations: 21.64 kB / 0.5836 GB, free: 4.875 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1645, allocations: 326.8 kB / 0.5839 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.173e-05/0.1646, allocations: 11.98 kB / 0.5839 GB, free: 4.535 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.253e-05/0.1647, allocations: 15.98 kB / 0.584 GB, free: 4.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.1648, allocations: 40.81 kB / 0.584 GB, free: 4.477 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1649, allocations: 0 / 0.584 GB, free: 4.477 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001946/0.1651, allocations: 69.64 kB / 0.5841 GB, free: 4.402 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1651, allocations: 10.48 kB / 0.5841 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1651, allocations: 256 / 0.5841 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.1651, allocations: 0 / 0.5841 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.068e-05/0.1652, allocations: 12 kB / 0.5841 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.1652, allocations: 7.875 kB / 0.5841 GB, free: 4.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.894e-05/0.1653, allocations: 11.98 kB / 0.5841 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.1653, allocations: 4.031 kB / 0.5841 GB, free: 4.359 MB / 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 7.371e-05/0.1654, allocations: 114.4 kB / 0.5842 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.1654, allocations: 0 / 0.5842 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.1656, allocations: 76.77 kB / 0.5843 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1657, allocations: 0 / 0.5843 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1657, allocations: 0 / 0.5843 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1657, allocations: 0 / 0.5843 GB, free: 4.152 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.1658, allocations: 161.6 kB / 0.5844 GB, free: 3.945 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1658, allocations: 0 / 0.5844 GB, free: 3.945 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.794e-05/0.1659, allocations: 11.98 kB / 0.5844 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1659, allocations: 0 / 0.5844 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1659, allocations: 0 / 0.5844 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1659, allocations: 0 / 0.5844 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1659, allocations: 3.938 kB / 0.5845 GB, free: 3.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.1662, allocations: 167.5 kB / 0.5846 GB, free: 3.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.1662, allocations: 85.02 kB / 0.5847 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.1662, allocations: 0 / 0.5847 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-05/0.1663, allocations: 7.984 kB / 0.5847 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.1663, allocations: 0 / 0.5847 GB, free: 3.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.1663, allocations: 0 / 0.5847 GB, free: 3.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.6e-05/0.1664, allocations: 87.27 kB / 0.5848 GB, free: 3.555 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1664, allocations: 0 / 0.5848 GB, free: 3.555 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.1666, allocations: 12.03 kB / 0.5848 GB, free: 3.543 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 (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.0004897/0.1671, allocations: 0.6967 MB / 0.5855 GB, free: 2.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.1673, allocations: 43.98 kB / 0.5855 GB, free: 2.777 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1673, allocations: 0 / 0.5855 GB, free: 2.777 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.31e-05/0.1674, allocations: 19.98 kB / 0.5855 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.1677, allocations: 2.812 kB / 0.5855 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004122/0.1681, allocations: 147.1 kB / 0.5857 GB, free: 2.574 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1684, allocations: 0.6769 MB / 0.5863 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.417e-05/0.1684, allocations: 4.188 kB / 0.5863 GB, free: 1.867 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.1685, allocations: 19.42 kB / 0.5864 GB, free: 1.848 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1685, allocations: 3.938 kB / 0.5864 GB, free: 1.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.1853, allocations: 1.381 MB / 0.5877 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.583, allocations: 12.66 kB / 0.5877 GB, free: 0.5352 MB / 494.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)