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.005927/0.005927, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001356/0.001356, allocations: 198.6 kB / 16.68 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.587/1.587, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.017/1.017, allocations: 135.5 MB / 426.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 63.89 kB / 0.5858 GB, free: 3.184 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.429/0.4312, allocations: 81.02 MB / 0.6649 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothMin): time 0.002181/0.4334, allocations: 1.46 MB / 0.6663 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003612/0.4338, allocations: 143.4 kB / 0.6664 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.4339, allocations: 2.125 kB / 0.6664 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.869e-05/0.4339, allocations: 3.984 kB / 0.6664 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.272e-05/0.434, allocations: 7.922 kB / 0.6665 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.4342, allocations: 32.5 kB / 0.6665 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.801e-05/0.4343, allocations: 41.02 kB / 0.6665 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.4344, allocations: 22.89 kB / 0.6665 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.837e-05/0.4345, allocations: 22.44 kB / 0.6666 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.067e-05/0.4345, allocations: 21.8 kB / 0.6666 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.4345, allocations: 3.219 kB / 0.6666 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.309e-05/0.4346, allocations: 29.91 kB / 0.6666 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.006e-05/0.4347, allocations: 6.344 kB / 0.6666 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.4347, allocations: 19.62 kB / 0.6666 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.4348, allocations: 76.3 kB / 0.6667 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.4348, allocations: 0 / 0.6667 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4348, allocations: 0 / 0.6667 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.4348, allocations: 1.531 kB / 0.6667 GB, free: 5.395 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.0003492/0.4352, allocations: 363.7 kB / 0.6671 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.4352, allocations: 9.344 kB / 0.6671 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.55e-05/0.4353, allocations: 33.47 kB / 0.6671 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/0.4363, allocations: 217.2 kB / 0.6673 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.368e-05/0.4364, allocations: 166.9 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.4364, allocations: 1.625 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.4364, allocations: 2.938 kB / 0.6675 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000541/0.437, allocations: 195.9 kB / 0.6677 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.437, allocations: 7.875 kB / 0.6677 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.437, allocations: 5.438 kB / 0.6677 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.437, allocations: 0 / 0.6677 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008151/0.4378, allocations: 283.8 kB / 0.6679 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008098/0.4386, allocations: 447.3 kB / 0.6684 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/0.4397, allocations: 289.3 kB / 0.6686 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003392/0.4401, allocations: 104.6 kB / 0.6687 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.4401, allocations: 5.438 kB / 0.6688 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.566e-05/0.4401, allocations: 31.94 kB / 0.6688 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.4401, allocations: 0 / 0.6688 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.001113/0.4412, allocations: 306.5 kB / 0.6691 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.4413, allocations: 55.34 kB / 0.6691 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.934e-05/0.4414, allocations: 129.5 kB / 0.6693 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.4414, allocations: 25.7 kB / 0.6693 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.778e-05/0.4414, allocations: 94.81 kB / 0.6694 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.4414, allocations: 5.266 kB / 0.6694 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-05/0.4415, allocations: 25.58 kB / 0.6694 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.4415, allocations: 317.1 kB / 0.6697 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.4419, allocations: 95.53 kB / 0.6698 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003431/0.4422, allocations: 91.12 kB / 0.6699 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000668/0.4429, allocations: 175.8 kB / 0.67 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4429, allocations: 0 / 0.67 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007233/0.4437, allocations: 221 kB / 0.6703 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.4437, allocations: 8.031 kB / 0.6703 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.4437, allocations: 1.156 kB / 0.6703 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.4437, allocations: 0 / 0.6703 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.444, allocations: 34.62 kB / 0.6703 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.444, allocations: 1.312 kB / 0.6703 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.4442, allocations: 29.73 kB / 0.6703 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.4442, allocations: 1.438 kB / 0.6703 GB, free: 2.551 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 (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 6.206e-05/0.4443, allocations: 122.8 kB / 0.6704 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/0.4443, allocations: 6.641 kB / 0.6704 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.948e-05/0.4443, allocations: 6.344 kB / 0.6705 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.4443, allocations: 1.406 kB / 0.6705 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.4444, allocations: 4 kB / 0.6705 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.4444, allocations: 0 / 0.6705 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.4445, allocations: 209.4 kB / 0.6707 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4445, allocations: 0 / 0.6707 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002237/0.4448, allocations: 38.78 kB / 0.6707 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4448, allocations: 1.344 kB / 0.6707 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.4448, allocations: 0 / 0.6707 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.4448, allocations: 1.469 kB / 0.6707 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4448, allocations: 0 / 0.6707 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007322/0.4455, allocations: 314 kB / 0.671 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.4456, allocations: 87.06 kB / 0.6711 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.4456, allocations: 5.047 kB / 0.6711 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.4458, allocations: 34.3 kB / 0.6711 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.4459, allocations: 1.438 kB / 0.6711 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.4459, allocations: 1.469 kB / 0.6711 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.615e-05/0.4459, allocations: 101.8 kB / 0.6712 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4459, allocations: 0 / 0.6712 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002334/0.4462, allocations: 16.88 kB / 0.6712 GB, free: 1.711 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 (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.0009512/0.4471, allocations: 0.8476 MB / 0.6721 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007458/0.4479, allocations: 194.7 kB / 0.6722 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4479, allocations: 0 / 0.6722 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003612/0.4482, allocations: 102.7 kB / 0.6723 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.4485, allocations: 6.375 kB / 0.6724 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.4519, allocations: 1.842 MB / 0.6742 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.4523, allocations: 0.6872 MB / 0.6748 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.112e-05/0.4524, allocations: 17.08 kB / 0.6748 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.453e-05/0.4525, allocations: 18.45 kB / 0.6749 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.4525, allocations: 4 kB / 0.6749 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.4746, allocations: 1.951 MB / 0.6768 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.906/8.381, allocations: 6.719 kB / 0.6768 GB, free: 13.46 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)