Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothMin,fileNamePrefix="BuildingSystems_BuildingSystems_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.005825/0.005825, 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.00132/0.00132, allocations: 194.3 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002641/0.002641, allocations: 275.2 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00288/0.002881, allocations: 104.1 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1913, allocations: 86.97 MB / 0.7659 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothMin): time 0.002639/0.1939, allocations: 1.466 MB / 0.7673 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004437/0.1944, allocations: 132.4 kB / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.882e-05/0.1944, allocations: 0 / 0.7675 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.854e-05/0.1945, allocations: 7.938 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.021e-05/0.1946, allocations: 7.938 kB / 0.7675 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.1948, allocations: 27.91 kB / 0.7675 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.195, allocations: 47.83 kB / 0.7676 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.1951, allocations: 20 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.712e-05/0.1951, allocations: 19.92 kB / 0.7676 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.784e-05/0.1952, allocations: 19.92 kB / 0.7676 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.1952, allocations: 4 kB / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.377e-05/0.1953, allocations: 31.97 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.1953, allocations: 11.94 kB / 0.7677 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.1954, allocations: 23.91 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001488/0.1955, allocations: 60.03 kB / 0.7677 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1955, allocations: 0 / 0.7677 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1955, allocations: 0 / 0.7677 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.368e-06/0.1956, allocations: 0 / 0.7677 GB, free: 7.008 MB / 0.5606 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.0005447/0.1961, allocations: 367.2 kB / 0.7681 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1962, allocations: 12.03 kB / 0.7681 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.779e-05/0.1962, allocations: 38.69 kB / 0.7681 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.1973, allocations: 212.5 kB / 0.7683 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.1975, allocations: 172.3 kB / 0.7685 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.1975, allocations: 4.375 kB / 0.7685 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.1976, allocations: 384 / 0.7685 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006015/0.1982, allocations: 198 kB / 0.7687 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1982, allocations: 7.922 kB / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.1982, allocations: 0 / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1982, allocations: 0 / 0.7687 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008624/0.1991, allocations: 279.6 kB / 0.769 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009859/0.2001, allocations: 456.9 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.2013, allocations: 282.2 kB / 0.7697 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.2016, allocations: 104.8 kB / 0.7698 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.2017, allocations: 4 kB / 0.7698 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.2017, allocations: 34.5 kB / 0.7698 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.2017, allocations: 0 / 0.7698 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.001206/0.203, allocations: 309.3 kB / 0.7701 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.203, allocations: 55.39 kB / 0.7702 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.2031, allocations: 117.8 kB / 0.7703 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.2032, allocations: 25.7 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.814e-05/0.2032, allocations: 92.14 kB / 0.7704 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.061e-05/0.2033, allocations: 12 kB / 0.7704 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.2033, allocations: 17.72 kB / 0.7704 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.2035, allocations: 326.8 kB / 0.7707 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003594/0.2039, allocations: 95.88 kB / 0.7708 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.2042, allocations: 99.81 kB / 0.7709 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.2049, allocations: 164.6 kB / 0.7711 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2049, allocations: 0 / 0.7711 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000765/0.2057, allocations: 221.4 kB / 0.7713 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2057, allocations: 4 kB / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2057, allocations: 0 / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.2057, allocations: 4 kB / 0.7713 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002463/0.206, allocations: 35.94 kB / 0.7713 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.206, allocations: 3.984 kB / 0.7713 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.2062, allocations: 31.89 kB / 0.7714 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.2062, allocations: 0 / 0.7714 GB, free: 3.062 MB / 0.5606 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 0.0001077/0.2063, allocations: 130.4 kB / 0.7715 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.2064, allocations: 3.953 kB / 0.7715 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.084e-05/0.2064, allocations: 11.91 kB / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2064, allocations: 336 / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2064, allocations: 0 / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2064, allocations: 0 / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.2067, allocations: 217.8 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2067, allocations: 4 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002249/0.207, allocations: 39.94 kB / 0.7718 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.207, allocations: 0 / 0.7718 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.207, allocations: 3.938 kB / 0.7718 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.207, allocations: 0 / 0.7718 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.207, allocations: 4 kB / 0.7718 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008153/0.2078, allocations: 315.2 kB / 0.7721 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.2079, allocations: 85.11 kB / 0.7721 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.2079, allocations: 0 / 0.7721 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.2081, allocations: 27.89 kB / 0.7722 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.2082, allocations: 4 kB / 0.7722 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.2082, allocations: 3.984 kB / 0.7722 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.706e-05/0.2083, allocations: 99.27 kB / 0.7723 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2083, allocations: 0 / 0.7723 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002405/0.2085, allocations: 15.94 kB / 0.7723 GB, free: 2.02 MB / 0.5606 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.001205/0.2097, allocations: 0.8333 MB / 0.7731 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007777/0.2105, allocations: 203.7 kB / 0.7733 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2105, allocations: 0 / 0.7733 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.2109, allocations: 99.88 kB / 0.7734 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.2112, allocations: 4 kB / 0.7734 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.313/0.5242, allocations: 1.83 MB / 0.7752 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.5243, allocations: 0.6909 MB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.621e-05/0.5244, allocations: 19.59 kB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.5245, allocations: 15.31 kB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/0.5245, allocations: 0.6875 kB / 0.7759 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02329/0.5478, allocations: 1.963 MB / 0.7778 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/8.313, allocations: 10.11 kB / 0.7778 GB, free: 13.13 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)