Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothBlocks",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.007325/0.007325, allocations: 99.75 kB / 15.73 MB, free: 6.441 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.001629/0.00163, allocations: 199.7 kB / 16.67 MB, free: 6.352 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8892/0.8892, allocations: 132.2 MB / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 64.19 kB / 0.5809 GB, free: 1.078 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1704, allocations: 80.2 MB / 0.6592 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothBlocks): time 0.003531/0.174, allocations: 1.779 MB / 0.6609 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.1755, allocations: 0.6631 MB / 0.6616 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1756, allocations: 0 / 0.6616 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.532e-05/0.1757, allocations: 15.86 kB / 0.6616 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.1758, allocations: 19.8 kB / 0.6616 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006865/0.1765, allocations: 175.8 kB / 0.6618 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.1768, allocations: 131.7 kB / 0.6619 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.1769, allocations: 37.11 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000163/0.1771, allocations: 67.77 kB / 0.662 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.1772, allocations: 47.77 kB / 0.6621 GB, free: 11 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.1772, allocations: 8 kB / 0.6621 GB, free: 11 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.1774, allocations: 47.97 kB / 0.6621 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.892e-05/0.1774, allocations: 31.89 kB / 0.6621 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.357e-05/0.1775, allocations: 59.7 kB / 0.6622 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002532/0.1778, allocations: 147.7 kB / 0.6623 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1778, allocations: 0 / 0.6623 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1778, allocations: 0 / 0.6623 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.1778, allocations: 0 / 0.6623 GB, free: 10.71 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006605/0.1785, allocations: 442.8 kB / 0.6628 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1785, allocations: 8.031 kB / 0.6628 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.1786, allocations: 42.73 kB / 0.6628 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.1794, allocations: 112.7 kB / 0.6629 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.1796, allocations: 182.5 kB / 0.6631 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/0.1797, allocations: 71.89 kB / 0.6632 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.1797, allocations: 4.375 kB / 0.6632 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005124/0.1802, allocations: 169.5 kB / 0.6633 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1802, allocations: 0 / 0.6633 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.1803, allocations: 7.984 kB / 0.6633 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1803, allocations: 8 kB / 0.6633 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006026/0.1809, allocations: 151.8 kB / 0.6635 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.1821, allocations: 493.6 kB / 0.6639 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.1831, allocations: 222.3 kB / 0.6642 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.1834, allocations: 76.91 kB / 0.6642 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1835, allocations: 4 kB / 0.6642 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.1835, allocations: 34.56 kB / 0.6643 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.1835, allocations: 3.938 kB / 0.6643 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.001057/0.1846, allocations: 269.3 kB / 0.6645 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.1846, allocations: 51.41 kB / 0.6646 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1847, allocations: 137.8 kB / 0.6647 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.1848, allocations: 29.7 kB / 0.6647 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.1848, allocations: 112.2 kB / 0.6648 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.1848, allocations: 11.91 kB / 0.6649 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.1849, allocations: 25.7 kB / 0.6649 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.185, allocations: 318.8 kB / 0.6652 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003007/0.1853, allocations: 79.92 kB / 0.6653 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.1856, allocations: 90.5 kB / 0.6654 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005902/0.1862, allocations: 170.6 kB / 0.6655 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1862, allocations: 0 / 0.6655 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006719/0.1869, allocations: 205.4 kB / 0.6657 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.187, allocations: 8 kB / 0.6657 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.187, allocations: 3.938 kB / 0.6657 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.187, allocations: 0 / 0.6657 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.1873, allocations: 35.95 kB / 0.6658 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.1873, allocations: 8 kB / 0.6658 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.1875, allocations: 27.91 kB / 0.6658 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1875, allocations: 7.984 kB / 0.6658 GB, free: 6.906 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 (8): * Single equations (assignments): 8 * 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 0.0001108/0.1876, allocations: 118.4 kB / 0.6659 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/0.1877, allocations: 7.953 kB / 0.6659 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007606/0.1884, allocations: 210.2 kB / 0.6661 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1885, allocations: 0 / 0.6661 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1885, allocations: 0 / 0.6661 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1885, allocations: 0 / 0.6661 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002751/0.1888, allocations: 242.1 kB / 0.6663 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1888, allocations: 0 / 0.6663 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.189, allocations: 39.89 kB / 0.6664 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.189, allocations: 3.984 kB / 0.6664 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.189, allocations: 3.938 kB / 0.6664 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.189, allocations: 4 kB / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1891, allocations: 0 / 0.6664 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007153/0.1898, allocations: 287.5 kB / 0.6667 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.1898, allocations: 81.06 kB / 0.6667 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.1899, allocations: 11.92 kB / 0.6668 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.1902, allocations: 31.95 kB / 0.6668 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.1902, allocations: 4 kB / 0.6668 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.1903, allocations: 7.984 kB / 0.6668 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.798e-05/0.1903, allocations: 109.7 kB / 0.6669 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.41e-07/0.1903, allocations: 0 / 0.6669 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002779/0.1906, allocations: 31.88 kB / 0.6669 GB, free: 5.629 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 (6): * Single equations (assignments): 6 * 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.001207/0.1918, allocations: 0.8215 MB / 0.6677 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006806/0.1925, allocations: 163.8 kB / 0.6679 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1925, allocations: 0 / 0.6679 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000308/0.1929, allocations: 79.92 kB / 0.668 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.1932, allocations: 14.81 kB / 0.668 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.1964, allocations: 1.825 MB / 0.6698 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1967, allocations: 0.7041 MB / 0.6705 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.916e-05/0.1968, allocations: 16 kB / 0.6705 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.453e-05/0.1969, allocations: 35.36 kB / 0.6705 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1969, allocations: 0 / 0.6705 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.2175, allocations: 2.747 MB / 0.6732 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.489/7.706, allocations: 0 / 0.6732 GB, free: 15.19 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks_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_SmoothBlocks.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)