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.007648/0.007648, allocations: 94.98 kB / 15.73 MB, free: 6.039 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.001155/0.001155, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7619/0.7619, allocations: 132.2 MB / 422.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 71.95 kB / 0.5809 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1725, allocations: 80.21 MB / 0.6592 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002478/0.1751, allocations: 1.428 MB / 0.6606 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007649/0.1758, allocations: 479.6 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.076e-05/0.1759, allocations: 0 / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.308e-05/0.176, allocations: 0 / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.313e-05/0.176, allocations: 3.938 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.1762, allocations: 31.91 kB / 0.6611 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.981e-05/0.1763, allocations: 27.92 kB / 0.6611 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.094e-05/0.1764, allocations: 0 / 0.6611 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.173e-05/0.1765, allocations: 11.98 kB / 0.6611 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.837e-05/0.1765, allocations: 11.94 kB / 0.6611 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.1765, allocations: 8 kB / 0.6611 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.1766, allocations: 19.97 kB / 0.6612 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.1766, allocations: 3.984 kB / 0.6612 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.1766, allocations: 11.94 kB / 0.6612 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.1768, allocations: 40.05 kB / 0.6612 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1768, allocations: 3.938 kB / 0.6612 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1768, allocations: 0 / 0.6612 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.1768, allocations: 0 / 0.6612 GB, free: 11.84 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.0004141/0.1772, allocations: 343.4 kB / 0.6616 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1773, allocations: 12.03 kB / 0.6616 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.434e-05/0.1773, allocations: 38.75 kB / 0.6616 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.349e-05/0.1773, allocations: 0.9375 kB / 0.6616 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1774, allocations: 164.3 kB / 0.6618 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1775, allocations: 4.375 kB / 0.6618 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.1775, allocations: 384 / 0.6618 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001731/0.1776, allocations: 57.78 kB / 0.6618 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1777, allocations: 3.938 kB / 0.6618 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.1777, allocations: 3.938 kB / 0.6618 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.1777, allocations: 4 kB / 0.6618 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.1779, allocations: 35.95 kB / 0.6619 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000313/0.1782, allocations: 252.9 kB / 0.6621 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.1783, allocations: 38.59 kB / 0.6621 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.809e-05/0.1784, allocations: 24.91 kB / 0.6622 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.1785, allocations: 89.09 kB / 0.6622 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.1786, allocations: 34.5 kB / 0.6623 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1786, allocations: 0 / 0.6623 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003468/0.1789, allocations: 77.64 kB / 0.6624 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.179, allocations: 59.53 kB / 0.6624 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.036e-05/0.1791, allocations: 93.86 kB / 0.6625 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.1791, allocations: 33.7 kB / 0.6625 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.1791, allocations: 80.14 kB / 0.6626 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.1792, allocations: 7.938 kB / 0.6626 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/0.1792, allocations: 17.72 kB / 0.6626 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1793, allocations: 314.8 kB / 0.6629 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.038e-05/0.1794, allocations: 15.98 kB / 0.663 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.58e-05/0.1795, allocations: 23.97 kB / 0.663 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.1797, allocations: 36.77 kB / 0.663 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1797, allocations: 4 kB / 0.663 GB, free: 9.762 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001867/0.1799, allocations: 65.67 kB / 0.6631 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1799, allocations: 12.03 kB / 0.6631 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1799, allocations: 0 / 0.6631 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1799, allocations: 0 / 0.6631 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.24e-05/0.18, allocations: 7.984 kB / 0.6631 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.18, allocations: 0 / 0.6631 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.583e-05/0.1801, allocations: 11.94 kB / 0.6631 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-06/0.1801, allocations: 4 kB / 0.6631 GB, free: 9.656 MB / 0.4981 GB 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 6.411e-05/0.1801, allocations: 110.4 kB / 0.6632 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.1802, allocations: 11.92 kB / 0.6632 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.1804, allocations: 76.97 kB / 0.6633 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1804, allocations: 0 / 0.6633 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1804, allocations: 4 kB / 0.6633 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1804, allocations: 3.938 kB / 0.6633 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.1806, allocations: 161.6 kB / 0.6635 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1806, allocations: 0 / 0.6635 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-05/0.1807, allocations: 7.984 kB / 0.6635 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1807, allocations: 4.031 kB / 0.6635 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.1807, allocations: 0 / 0.6635 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1807, allocations: 4 kB / 0.6635 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1807, allocations: 0 / 0.6635 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/0.1809, allocations: 167.4 kB / 0.6636 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.181, allocations: 81.06 kB / 0.6637 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.181, allocations: 8.016 kB / 0.6637 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.215e-05/0.1811, allocations: 4 kB / 0.6637 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.1811, allocations: 0 / 0.6637 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1811, allocations: 7.984 kB / 0.6637 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.49e-05/0.1811, allocations: 83.28 kB / 0.6638 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1811, allocations: 0 / 0.6638 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002187/0.1814, allocations: 4 kB / 0.6638 GB, free: 8.828 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.0005051/0.1819, allocations: 0.7007 MB / 0.6645 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002057/0.1821, allocations: 35.95 kB / 0.6645 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1821, allocations: 0 / 0.6645 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/0.1822, allocations: 24.08 kB / 0.6646 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1825, allocations: 4 kB / 0.6646 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003801/0.1829, allocations: 139 kB / 0.6647 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002198/0.1831, allocations: 0.6768 MB / 0.6654 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.535e-05/0.1831, allocations: 3.984 kB / 0.6654 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.156e-05/0.1832, allocations: 11.44 kB / 0.6654 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1832, allocations: 8 kB / 0.6654 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.1994, allocations: 1.413 MB / 0.6668 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.485/7.685, allocations: 17.47 kB / 0.6668 GB, free: 5.809 MB / 0.4981 GB (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)