Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.SmoothMin,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothMin,fileNamePrefix="IDEAS_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.001574/0.001574, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001884/0.001884, allocations: 196.7 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.769/0.769, allocations: 132.2 MB / 422.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 65.56 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4683/0.4696, allocations: 80.2 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothMin): time 0.002623/0.4723, allocations: 1.442 MB / 0.5816 GB, free: 3.574 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003963/0.4727, allocations: 153.9 kB / 0.5817 GB, free: 3.465 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.54e-05/0.4727, allocations: 5.312 kB / 0.5818 GB, free: 3.461 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 4.52e-05/0.4728, allocations: 5.109 kB / 0.5818 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.368e-05/0.4729, allocations: 6.156 kB / 0.5818 GB, free: 3.453 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.4731, allocations: 28.25 kB / 0.5818 GB, free: 3.441 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.4732, allocations: 38.44 kB / 0.5818 GB, free: 3.426 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.4733, allocations: 25.22 kB / 0.5819 GB, free: 3.414 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.576e-05/0.4734, allocations: 17.33 kB / 0.5819 GB, free: 3.406 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.744e-05/0.4734, allocations: 21.95 kB / 0.5819 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.728e-05/0.4735, allocations: 4.125 kB / 0.5819 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.667e-05/0.4736, allocations: 28.84 kB / 0.5819 GB, free: 3.391 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.4736, allocations: 11.69 kB / 0.5819 GB, free: 3.383 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.336e-05/0.4736, allocations: 21.83 kB / 0.582 GB, free: 3.367 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.4738, allocations: 62.08 kB / 0.582 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4738, allocations: 0 / 0.582 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4738, allocations: 4 kB / 0.582 GB, free: 3.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.4738, allocations: 1.094 kB / 0.582 GB, free: 3.34 MB / 430.1 MB 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.0004024/0.4742, allocations: 367.6 kB / 0.5824 GB, free: 2.961 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4743, allocations: 10.09 kB / 0.5824 GB, free: 2.961 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.258e-05/0.4743, allocations: 33.31 kB / 0.5824 GB, free: 2.922 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.4755, allocations: 212.7 kB / 0.5826 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.028e-05/0.4756, allocations: 168.8 kB / 0.5828 GB, free: 2.715 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.4756, allocations: 1.781 kB / 0.5828 GB, free: 2.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.4756, allocations: 6.406 kB / 0.5828 GB, free: 2.711 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006456/0.4763, allocations: 200.6 kB / 0.583 GB, free: 2.648 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.4763, allocations: 7.938 kB / 0.583 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.4763, allocations: 8.734 kB / 0.583 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.4763, allocations: 1.531 kB / 0.583 GB, free: 2.633 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009999/0.4773, allocations: 277.8 kB / 0.5833 GB, free: 2.598 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009769/0.4783, allocations: 440.8 kB / 0.5837 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.4795, allocations: 288.3 kB / 0.584 GB, free: 2.207 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003906/0.4799, allocations: 108.9 kB / 0.5841 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.48, allocations: 0 / 0.5841 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.48, allocations: 40.14 kB / 0.5841 GB, free: 2.133 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.48, allocations: 1.25 kB / 0.5841 GB, free: 2.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.001257/0.4813, allocations: 309.6 kB / 0.5844 GB, free: 2.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.4813, allocations: 52.19 kB / 0.5844 GB, free: 1.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.333e-05/0.4814, allocations: 122.9 kB / 0.5846 GB, free: 1.883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.4814, allocations: 26.52 kB / 0.5846 GB, free: 1.852 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.4815, allocations: 92.23 kB / 0.5847 GB, free: 1.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.4815, allocations: 9.531 kB / 0.5847 GB, free: 1.754 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/0.4815, allocations: 16.58 kB / 0.5847 GB, free: 1.738 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.4816, allocations: 325.3 kB / 0.585 GB, free: 1.414 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003792/0.482, allocations: 91.56 kB / 0.5851 GB, free: 1.402 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.4824, allocations: 91.7 kB / 0.5852 GB, free: 1.391 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006967/0.4831, allocations: 173.7 kB / 0.5853 GB, free: 1.355 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4831, allocations: 1.531 kB / 0.5853 GB, free: 1.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008034/0.4839, allocations: 222.8 kB / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4839, allocations: 5.406 kB / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.4839, allocations: 0 / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.484, allocations: 1.719 kB / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.4842, allocations: 33.33 kB / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.4842, allocations: 0 / 0.5856 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.4845, allocations: 31.11 kB / 0.5856 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.4845, allocations: 3.078 kB / 0.5856 GB, free: 1.281 MB / 430.1 MB 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 7.033e-05/0.4846, allocations: 121.2 kB / 0.5857 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.4846, allocations: 2.5 kB / 0.5857 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.4846, allocations: 11.72 kB / 0.5858 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4846, allocations: 1.125 kB / 0.5858 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4847, allocations: 0 / 0.5858 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4847, allocations: 1.844 kB / 0.5858 GB, free: 1.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.4849, allocations: 215.8 kB / 0.586 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4849, allocations: 0.5 kB / 0.586 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.4851, allocations: 33.52 kB / 0.586 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4851, allocations: 5.094 kB / 0.586 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.4851, allocations: 0.75 kB / 0.586 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.4852, allocations: 1.156 kB / 0.586 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4852, allocations: 0 / 0.586 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008155/0.486, allocations: 324.3 kB / 0.5863 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.347e-05/0.486, allocations: 83.94 kB / 0.5864 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.486, allocations: 0.6562 kB / 0.5864 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.4863, allocations: 31.61 kB / 0.5864 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.4863, allocations: 6.734 kB / 0.5864 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-06/0.4863, allocations: 2.234 kB / 0.5864 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.523e-05/0.4864, allocations: 97.56 kB / 0.5865 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4864, allocations: 1.188 kB / 0.5865 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.4866, allocations: 15.75 kB / 0.5865 GB, free: 0.5625 MB / 430.1 MB 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.001034/0.4877, allocations: 0.8372 MB / 0.5874 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008231/0.4885, allocations: 201.3 kB / 0.5876 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4885, allocations: 0.6875 kB / 0.5876 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003933/0.4889, allocations: 99.23 kB / 0.5876 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.4892, allocations: 11.58 kB / 0.5877 GB, free: 15.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003705/0.4929, allocations: 1.837 MB / 0.5895 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.4932, allocations: 0.6909 MB / 0.5901 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.529e-05/0.4933, allocations: 24.34 kB / 0.5902 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.337e-05/0.4934, allocations: 16.22 kB / 0.5902 GB, free: 13.8 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4934, allocations: 1.156 kB / 0.5902 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.512, allocations: 1.889 MB / 0.592 GB, free: 13.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.332/7.844, allocations: 21.55 kB / 0.592 GB, free: 13.22 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothMin.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Examples_SmoothMin.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothMin.pipe 2>&1)