Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SmoothBlocks,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_dev_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.005775/0.005775, allocations: 102.8 kB / 15.74 MB, free: 5.551 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.001384/0.001384, allocations: 195.6 kB / 16.67 MB, free: 5.48 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9073/0.9073, allocations: 135.1 MB / 425.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.41 kB / 0.5851 GB, free: 21.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1746, allocations: 80.93 MB / 0.6642 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothBlocks): time 0.003204/0.1778, allocations: 1.767 MB / 0.6659 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.1791, allocations: 0.6593 MB / 0.6665 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.719e-05/0.1792, allocations: 4 kB / 0.6665 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.895e-05/0.1793, allocations: 15.8 kB / 0.6666 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.692e-05/0.1794, allocations: 19.8 kB / 0.6666 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.18, allocations: 174.9 kB / 0.6667 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00017/0.1802, allocations: 127.6 kB / 0.6669 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1803, allocations: 48.84 kB / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.1805, allocations: 59.83 kB / 0.667 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.373e-05/0.1806, allocations: 51.7 kB / 0.667 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.1806, allocations: 8 kB / 0.667 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.1807, allocations: 43.97 kB / 0.6671 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.911e-05/0.1808, allocations: 35.89 kB / 0.6671 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.905e-05/0.1809, allocations: 55.7 kB / 0.6671 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.1811, allocations: 151.6 kB / 0.6673 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1811, allocations: 0 / 0.6673 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.422e-06/0.1811, allocations: 0 / 0.6673 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.1811, allocations: 0 / 0.6673 GB, free: 3.051 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.0006414/0.1818, allocations: 446.8 kB / 0.6677 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1818, allocations: 9.109 kB / 0.6677 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.1819, allocations: 42.73 kB / 0.6678 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009226/0.1828, allocations: 116.7 kB / 0.6679 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.183, allocations: 176.2 kB / 0.668 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.63e-05/0.1831, allocations: 63.95 kB / 0.6681 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1831, allocations: 8.375 kB / 0.6681 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005409/0.1836, allocations: 169.5 kB / 0.6683 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1837, allocations: 11.92 kB / 0.6683 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.1837, allocations: 4 kB / 0.6683 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.1837, allocations: 4 kB / 0.6683 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006306/0.1843, allocations: 155.8 kB / 0.6684 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.1856, allocations: 489.6 kB / 0.6689 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1867, allocations: 218.3 kB / 0.6691 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.187, allocations: 80.91 kB / 0.6692 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.187, allocations: 7.984 kB / 0.6692 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1871, allocations: 38.56 kB / 0.6692 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.1871, allocations: 0 / 0.6692 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.001201/0.1883, allocations: 265.3 kB / 0.6695 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.1883, allocations: 51.41 kB / 0.6695 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.1885, allocations: 144.2 kB / 0.6697 GB, free: 400 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.1885, allocations: 25.7 kB / 0.6697 GB, free: 368 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.341e-05/0.1886, allocations: 112.2 kB / 0.6698 GB, free: 252 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.1886, allocations: 15.86 kB / 0.6698 GB, free: 236 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.1887, allocations: 25.7 kB / 0.6699 GB, free: 204 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1888, allocations: 322.8 kB / 0.6702 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.1892, allocations: 71.92 kB / 0.6702 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.1895, allocations: 94.48 kB / 0.6703 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.1901, allocations: 162.4 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1901, allocations: 0 / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007958/0.1909, allocations: 205.4 kB / 0.6707 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.191, allocations: 8 kB / 0.6707 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.191, allocations: 3.938 kB / 0.6707 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.191, allocations: 3.938 kB / 0.6707 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.1913, allocations: 40.02 kB / 0.6707 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1913, allocations: 0 / 0.6707 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.1915, allocations: 31.84 kB / 0.6708 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1915, allocations: 4 kB / 0.6708 GB, free: 15.24 MB / 0.5137 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 9.873e-05/0.1916, allocations: 121.8 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/0.1917, allocations: 7.953 kB / 0.6709 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007521/0.1924, allocations: 214.1 kB / 0.6711 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1924, allocations: 0 / 0.6711 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1925, allocations: 0 / 0.6711 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1925, allocations: 384 / 0.6711 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002952/0.1928, allocations: 234.4 kB / 0.6713 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1928, allocations: 4 kB / 0.6713 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.193, allocations: 31.95 kB / 0.6713 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.193, allocations: 0 / 0.6713 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.193, allocations: 11.92 kB / 0.6714 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1931, allocations: 4 kB / 0.6714 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1931, allocations: 0 / 0.6714 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.1939, allocations: 291.2 kB / 0.6716 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.1939, allocations: 81.06 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.194, allocations: 3.938 kB / 0.6717 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003147/0.1943, allocations: 35.95 kB / 0.6718 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.1943, allocations: 4 kB / 0.6718 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.1944, allocations: 7.984 kB / 0.6718 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001201/0.1945, allocations: 109.7 kB / 0.6719 GB, free: 14 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1945, allocations: 0 / 0.6719 GB, free: 14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002772/0.1948, allocations: 23.94 kB / 0.6719 GB, free: 13.98 MB / 0.5137 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.001172/0.196, allocations: 0.819 MB / 0.6727 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006994/0.1967, allocations: 163.8 kB / 0.6728 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1967, allocations: 0 / 0.6728 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.197, allocations: 83.86 kB / 0.6729 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.1975, allocations: 17.7 kB / 0.6729 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003414/0.2009, allocations: 1.825 MB / 0.6747 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.2014, allocations: 0.7002 MB / 0.6754 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001039/0.2015, allocations: 19.98 kB / 0.6754 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2016, allocations: 35.36 kB / 0.6755 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of SimCode: time 6.62e-07/0.2016, allocations: 0 / 0.6755 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.2231, allocations: 2.736 MB / 0.6781 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/7.834, allocations: 7.938 kB / 0.6781 GB, free: 7.508 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)