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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8809/0.8809, allocations: 143.3 MB / 158.3 MB, free: 5.812 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001578/0.001579, allocations: 173 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.711/1.711, allocations: 223.2 MB / 447.7 MB, free: 4.883 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001219, allocations: 95.77 kB / 0.5187 GB, free: 1.238 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001903/0.001903, allocations: 272.3 kB / 0.6005 GB, free: 48.79 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004484/0.0004487, allocations: 14.91 kB / 0.6929 GB, free: 59.54 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1965, allocations: 82.8 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1724/0.3689, allocations: 108.8 MB / 0.8801 GB, free: 0.7969 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.3692, allocations: 71.95 kB / 0.8801 GB, free: 0.7266 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.4315/0.8007, allocations: 1.147 MB / 0.8813 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.395e-06/0.8008, allocations: 0.6562 kB / 0.8813 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.8008, allocations: 0.875 kB / 0.8813 GB, free: 109.2 MB / 0.5417 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.0004473/0.8013, allocations: 362.3 kB / 0.8816 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.8013, allocations: 11.84 kB / 0.8816 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.8014, allocations: 37.94 kB / 0.8817 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008338/0.8022, allocations: 186 kB / 0.8818 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.903e-05/0.8023, allocations: 171.6 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.8023, allocations: 5.391 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.8024, allocations: 6.469 kB / 0.882 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.8029, allocations: 212.5 kB / 0.8822 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.8029, allocations: 0 / 0.8822 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.803, allocations: 5.969 kB / 0.8822 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.803, allocations: 0.625 kB / 0.8822 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007586/0.8037, allocations: 315.2 kB / 0.8825 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009274/0.8047, allocations: 469.7 kB / 0.883 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009986/0.8057, allocations: 333 kB / 0.8833 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.8057, allocations: 1.781 kB / 0.8833 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.74e-05/0.8057, allocations: 40.34 kB / 0.8833 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.8058, allocations: 0 / 0.8833 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.001054/0.8068, allocations: 359.6 kB / 0.8837 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.8069, allocations: 58.05 kB / 0.8837 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.542e-05/0.8069, allocations: 114.1 kB / 0.8838 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.807, allocations: 28.58 kB / 0.8839 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.807, allocations: 94.05 kB / 0.8839 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.807, allocations: 6.906 kB / 0.8839 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.807, allocations: 0 / 0.8839 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.888e-05/0.8071, allocations: 319.9 kB / 0.8843 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.8074, allocations: 119.4 kB / 0.8844 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.8078, allocations: 114.5 kB / 0.8845 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.8081, allocations: 101.3 kB / 0.8846 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.8081, allocations: 1.438 kB / 0.8846 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006611/0.8088, allocations: 246.1 kB / 0.8848 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.8088, allocations: 9.906 kB / 0.8848 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.8088, allocations: 3.828 kB / 0.8848 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.8088, allocations: 0 / 0.8848 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.8091, allocations: 44.92 kB / 0.8849 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.8091, allocations: 0 / 0.8849 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.8093, allocations: 51.75 kB / 0.8849 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.8093, allocations: 0.5156 kB / 0.8849 GB, free: 107.5 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.055e-05/0.8094, allocations: 124.9 kB / 0.885 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/0.8095, allocations: 5.5 kB / 0.885 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.712e-05/0.8095, allocations: 9.75 kB / 0.885 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.8095, allocations: 4 kB / 0.8851 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.8095, allocations: 0 / 0.8851 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.8095, allocations: 0 / 0.8851 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.8097, allocations: 208.8 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.8097, allocations: 0 / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.81, allocations: 43.5 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.81, allocations: 4 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.81, allocations: 2.812 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.81, allocations: 2.594 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.81, allocations: 1.781 kB / 0.8853 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006907/0.8107, allocations: 357 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.8108, allocations: 77.66 kB / 0.8857 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.8108, allocations: 0 / 0.8857 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.811, allocations: 33 kB / 0.8858 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/0.811, allocations: 12.75 kB / 0.8858 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.8111, allocations: 0.5625 kB / 0.8858 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.234e-05/0.8111, allocations: 105 kB / 0.8859 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8111, allocations: 0 / 0.8859 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000216/0.8113, allocations: 17.16 kB / 0.8859 GB, free: 106.9 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000956/0.8123, allocations: 0.8723 MB / 0.8867 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007523/0.8131, allocations: 239.6 kB / 0.887 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.8131, allocations: 0 / 0.887 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.8135, allocations: 118.1 kB / 0.8871 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.8136, allocations: 7.188 kB / 0.8871 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.816, allocations: 0.9069 MB / 0.888 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.8161, allocations: 0.6946 MB / 0.8886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.953e-05/0.8162, allocations: 22.05 kB / 0.8887 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.42e-05/0.8163, allocations: 12.61 kB / 0.8887 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of SimCode: time 1.112e-06/0.8163, allocations: 3.219 kB / 0.8887 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01412/0.8304, allocations: 1.651 MB / 0.8903 GB, free: 105 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/0.8306, allocations: 184.5 kB / 0.8905 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/2.411, allocations: 4 kB / 0.8905 GB, free: 104.7 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothMin.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothMin.pipe 2>&1)