Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.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.SmoothMin,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothMin,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothMin",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.004972/0.004972, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001118/0.001118, allocations: 191.9 kB / 16.67 MB, free: 5.973 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.369/1.369, 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.8247/0.8247, allocations: 135.1 MB / 425.7 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.08 kB / 0.5851 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1739, allocations: 80.93 MB / 0.6642 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothMin): time 0.002522/0.1764, allocations: 1.454 MB / 0.6656 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00039/0.1768, allocations: 144.4 kB / 0.6657 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.139e-05/0.1769, allocations: 0 / 0.6657 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.096e-05/0.177, allocations: 3.938 kB / 0.6657 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.053e-05/0.177, allocations: 3.938 kB / 0.6657 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.1773, allocations: 35.89 kB / 0.6658 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.1774, allocations: 43.84 kB / 0.6658 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.1775, allocations: 27.98 kB / 0.6658 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.682e-05/0.1775, allocations: 11.94 kB / 0.6658 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.999e-05/0.1776, allocations: 23.91 kB / 0.6659 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.1776, allocations: 7.938 kB / 0.6659 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.894e-05/0.1777, allocations: 31.97 kB / 0.6659 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.88e-05/0.1778, allocations: 7.984 kB / 0.6659 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.143e-05/0.1778, allocations: 23.88 kB / 0.6659 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.178, allocations: 72 kB / 0.666 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.178, allocations: 4 kB / 0.666 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.178, allocations: 0 / 0.666 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.178, allocations: 0 / 0.666 GB, free: 4.348 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005047/0.1785, allocations: 359.2 kB / 0.6664 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1786, allocations: 9.109 kB / 0.6664 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.676e-05/0.1786, allocations: 42.73 kB / 0.6664 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.1798, allocations: 212.5 kB / 0.6666 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000182/0.18, allocations: 172.3 kB / 0.6668 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.18, allocations: 384 / 0.6668 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.18, allocations: 4.375 kB / 0.6668 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/0.1806, allocations: 194 kB / 0.667 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1806, allocations: 3.938 kB / 0.667 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.1807, allocations: 0 / 0.667 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1807, allocations: 4 kB / 0.667 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000912/0.1816, allocations: 279.5 kB / 0.6672 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009069/0.1825, allocations: 448.9 kB / 0.6677 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.1836, allocations: 286.2 kB / 0.6679 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003689/0.184, allocations: 100.7 kB / 0.668 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.184, allocations: 7.984 kB / 0.668 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.1841, allocations: 34.56 kB / 0.6681 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1841, allocations: 4 kB / 0.6681 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.001223/0.1853, allocations: 305.3 kB / 0.6684 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.1854, allocations: 51.41 kB / 0.6684 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.644e-05/0.1855, allocations: 121.8 kB / 0.6685 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.1855, allocations: 25.7 kB / 0.6686 GB, free: 1.531 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.1855, allocations: 96.08 kB / 0.6686 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.1856, allocations: 3.953 kB / 0.6687 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/0.1856, allocations: 22.03 kB / 0.6687 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.1857, allocations: 322.8 kB / 0.669 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.1861, allocations: 99.88 kB / 0.6691 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003444/0.1864, allocations: 91.88 kB / 0.6692 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.1871, allocations: 176.6 kB / 0.6693 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1871, allocations: 0 / 0.6693 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007483/0.1879, allocations: 221.7 kB / 0.6695 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.1879, allocations: 7.984 kB / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1879, allocations: 0 / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1879, allocations: 0 / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002742/0.1882, allocations: 39.89 kB / 0.6696 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.1882, allocations: 0 / 0.6696 GB, free: 456 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.1884, allocations: 31.95 kB / 0.6696 GB, free: 424 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.1884, allocations: 3.984 kB / 0.6696 GB, free: 420 kB / 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 (3): * Single equations (assignments): 3 * 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.805e-05/0.1885, allocations: 117.8 kB / 0.6697 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.498e-05/0.1886, allocations: 7.953 kB / 0.6697 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.245e-05/0.1886, allocations: 3.906 kB / 0.6697 GB, free: 276 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1886, allocations: 7.984 kB / 0.6698 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1886, allocations: 0 / 0.6698 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1887, allocations: 0 / 0.6698 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.1889, allocations: 217.5 kB / 0.67 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1889, allocations: 0 / 0.67 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.1891, allocations: 27.95 kB / 0.67 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1891, allocations: 0 / 0.67 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1892, allocations: 7.984 kB / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1892, allocations: 0 / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1892, allocations: 0 / 0.67 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008165/0.19, allocations: 319.2 kB / 0.6703 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.19, allocations: 81.06 kB / 0.6704 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.1901, allocations: 3.938 kB / 0.6704 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.1903, allocations: 31.95 kB / 0.6704 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.612e-05/0.1904, allocations: 3.984 kB / 0.6704 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.1904, allocations: 4 kB / 0.6704 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.019e-05/0.1904, allocations: 95.27 kB / 0.6705 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1904, allocations: 0 / 0.6705 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002445/0.1907, allocations: 15.94 kB / 0.6705 GB, free: 15.39 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 (3): * Single equations (assignments): 3 * 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.001076/0.1918, allocations: 0.8349 MB / 0.6713 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008032/0.1926, allocations: 203.7 kB / 0.6715 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1926, allocations: 3.938 kB / 0.6715 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003674/0.193, allocations: 99.88 kB / 0.6716 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.1932, allocations: 5.547 kB / 0.6716 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/0.1971, allocations: 1.85 MB / 0.6734 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.1977, allocations: 0.6884 MB / 0.6741 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000112/0.1978, allocations: 23.98 kB / 0.6741 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/0.1979, allocations: 11.44 kB / 0.6742 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.1979, allocations: 0 / 0.6742 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.2185, allocations: 1.942 MB / 0.676 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/7.737, allocations: 6.75 kB / 0.6761 GB, free: 9.656 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin_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_SmoothMin.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothMin.pipe 2>&1)