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.005509/0.005509, allocations: 99.86 kB / 15.73 MB, free: 6.004 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.001404/0.001404, allocations: 192.8 kB / 16.67 MB, free: 5.934 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8222/0.8222, allocations: 132.2 MB / 422.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 68.67 kB / 0.5809 GB, free: 1.102 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1805, allocations: 80.2 MB / 0.6592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.00273/0.1833, allocations: 1.427 MB / 0.6606 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008234/0.1842, allocations: 483.6 kB / 0.6611 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.806e-05/0.1842, allocations: 7.938 kB / 0.6611 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.3e-05/0.1843, allocations: 0 / 0.6611 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.351e-05/0.1843, allocations: 7.938 kB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.1845, allocations: 23.92 kB / 0.6611 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.694e-05/0.1846, allocations: 23.92 kB / 0.6611 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.888e-05/0.1847, allocations: 7.984 kB / 0.6611 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.078e-05/0.1848, allocations: 11.98 kB / 0.6611 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.1848, allocations: 15.92 kB / 0.6611 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1849, allocations: 0 / 0.6611 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.734e-05/0.1849, allocations: 19.98 kB / 0.6612 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.185, allocations: 4 kB / 0.6612 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.454e-05/0.185, allocations: 3.938 kB / 0.6612 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.1851, allocations: 52.03 kB / 0.6612 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1851, allocations: 0 / 0.6612 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.994e-06/0.1851, allocations: 0 / 0.6612 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.1851, allocations: 0 / 0.6612 GB, free: 11.86 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.0004901/0.1856, allocations: 343.4 kB / 0.6616 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1857, allocations: 8.031 kB / 0.6616 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.394e-05/0.1857, allocations: 30.75 kB / 0.6616 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.1858, allocations: 4.938 kB / 0.6616 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.1859, allocations: 168.3 kB / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.186, allocations: 4.375 kB / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-06/0.186, allocations: 384 / 0.6618 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.1862, allocations: 53.8 kB / 0.6618 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1862, allocations: 0 / 0.6618 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.1862, allocations: 11.88 kB / 0.6618 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1862, allocations: 0 / 0.6618 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.1864, allocations: 31.95 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004055/0.1868, allocations: 260.9 kB / 0.6621 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.1869, allocations: 34.56 kB / 0.6621 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.822e-05/0.187, allocations: 20.91 kB / 0.6622 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001302/0.1872, allocations: 85.09 kB / 0.6622 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.1872, allocations: 38.5 kB / 0.6623 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.1872, allocations: 0 / 0.6623 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003626/0.1876, allocations: 81.64 kB / 0.6623 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.1876, allocations: 51.41 kB / 0.6624 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.558e-05/0.1877, allocations: 101.9 kB / 0.6625 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1878, allocations: 25.7 kB / 0.6625 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.037e-05/0.1878, allocations: 88.25 kB / 0.6626 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.1878, allocations: 11.95 kB / 0.6626 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.1879, allocations: 9.719 kB / 0.6626 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.188, allocations: 318.8 kB / 0.6629 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-05/0.1881, allocations: 19.92 kB / 0.6629 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.991e-05/0.1882, allocations: 15.97 kB / 0.663 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.1884, allocations: 44.83 kB / 0.663 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1884, allocations: 0 / 0.663 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002048/0.1886, allocations: 73.61 kB / 0.6631 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1886, allocations: 4 kB / 0.6631 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.1886, allocations: 0 / 0.6631 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1886, allocations: 0 / 0.6631 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.586e-05/0.1887, allocations: 16.02 kB / 0.6631 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1887, allocations: 0 / 0.6631 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.72e-05/0.1888, allocations: 7.938 kB / 0.6631 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1888, allocations: 3.984 kB / 0.6631 GB, free: 9.68 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 8.559e-05/0.1889, allocations: 118.4 kB / 0.6632 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.1889, allocations: 0 / 0.6632 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.1892, allocations: 80.72 kB / 0.6633 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1892, allocations: 0 / 0.6633 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1892, allocations: 0 / 0.6633 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.1892, allocations: 0 / 0.6633 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.1894, allocations: 169.5 kB / 0.6635 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1894, allocations: 0 / 0.6635 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.638e-05/0.1894, allocations: 8 kB / 0.6635 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1894, allocations: 0 / 0.6635 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.1894, allocations: 0 / 0.6635 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1895, allocations: 256 / 0.6635 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1895, allocations: 4 kB / 0.6635 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.1897, allocations: 171.4 kB / 0.6636 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.1898, allocations: 89.05 kB / 0.6637 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.1898, allocations: 0 / 0.6637 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.322e-05/0.1899, allocations: 4 kB / 0.6637 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.1899, allocations: 7.984 kB / 0.6637 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.1899, allocations: 4.031 kB / 0.6637 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.236e-05/0.19, allocations: 79.28 kB / 0.6638 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.19, allocations: 0 / 0.6638 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002333/0.1902, allocations: 8 kB / 0.6638 GB, free: 8.848 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.0007161/0.191, allocations: 0.6968 MB / 0.6645 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.1912, allocations: 39.95 kB / 0.6645 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1912, allocations: 4 kB / 0.6645 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.086e-05/0.1913, allocations: 15.98 kB / 0.6646 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.1917, allocations: 9.797 kB / 0.6646 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004708/0.1922, allocations: 147.2 kB / 0.6647 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.1925, allocations: 0.6768 MB / 0.6654 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.657e-05/0.1925, allocations: 0 / 0.6654 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.998e-05/0.1926, allocations: 11.44 kB / 0.6654 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1926, allocations: 3.938 kB / 0.6654 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.2159, allocations: 1.41 MB / 0.6668 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.939/8.155, allocations: 4.656 kB / 0.6668 GB, free: 5.84 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)