Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",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.000683/0.000683, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.003996/0.003996, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.339/1.339, allocations: 223.2 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001666/0.001666, allocations: 278.7 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8862/0.8862, allocations: 169.5 MB / 0.5004 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.000437, allocations: 15.88 kB / 0.5988 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1877, allocations: 88.55 MB / 0.6852 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.001937/0.1897, allocations: 1.173 MB / 0.6864 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1908, allocations: 0.5562 MB / 0.6869 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.032e-05/0.1908, allocations: 0 / 0.6869 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.029e-05/0.1909, allocations: 0 / 0.6869 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.586e-05/0.191, allocations: 7.938 kB / 0.6869 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.1913, allocations: 44.39 kB / 0.687 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.784e-05/0.1914, allocations: 28.52 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.533e-05/0.1915, allocations: 7.188 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.1916, allocations: 11.98 kB / 0.687 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.773e-05/0.1917, allocations: 11.94 kB / 0.687 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1917, allocations: 0 / 0.687 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.1918, allocations: 51.94 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.1919, allocations: 3.938 kB / 0.6871 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.1919, allocations: 42.75 kB / 0.6871 GB, free: 12.99 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.1921, allocations: 59.8 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1921, allocations: 4 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1921, allocations: 0.5312 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1921, allocations: 0 / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004579/0.1926, allocations: 345.2 kB / 0.6875 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1926, allocations: 8.031 kB / 0.6875 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.1927, allocations: 35.25 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.561e-05/0.1927, allocations: 0.9375 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001356/0.1929, allocations: 178.5 kB / 0.6877 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1929, allocations: 384 / 0.6877 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1929, allocations: 8.312 kB / 0.6877 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.1931, allocations: 49.8 kB / 0.6878 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1931, allocations: 0.5 kB / 0.6878 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.1931, allocations: 0.6562 kB / 0.6878 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1931, allocations: 0 / 0.6878 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001155/0.1932, allocations: 27.58 kB / 0.6878 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.1936, allocations: 252.9 kB / 0.6881 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.778e-05/0.1937, allocations: 42.5 kB / 0.6881 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.646e-05/0.1938, allocations: 22.19 kB / 0.6881 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008633/0.1947, allocations: 0.4934 MB / 0.6886 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1947, allocations: 30.56 kB / 0.6886 GB, free: 11.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1947, allocations: 0 / 0.6886 GB, free: 11.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002709/0.195, allocations: 77.61 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1951, allocations: 55.44 kB / 0.6888 GB, free: 11.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.037e-05/0.1951, allocations: 105.8 kB / 0.6889 GB, free: 10.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.1952, allocations: 25.7 kB / 0.6889 GB, free: 10.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.107e-05/0.1952, allocations: 92.12 kB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.1953, allocations: 3.906 kB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.46e-05/0.1953, allocations: 9.719 kB / 0.689 GB, free: 10.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1954, allocations: 318.8 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.407e-05/0.1955, allocations: 15.98 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.1955, allocations: 12 kB / 0.6893 GB, free: 10.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.271e-05/0.1956, allocations: 28.84 kB / 0.6893 GB, free: 10.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1956, allocations: 0 / 0.6893 GB, free: 10.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001435/0.1958, allocations: 65.69 kB / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1958, allocations: 4 kB / 0.6894 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1958, allocations: 3.984 kB / 0.6894 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1958, allocations: 0 / 0.6894 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.646e-05/0.1959, allocations: 4 kB / 0.6894 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1959, allocations: 4 kB / 0.6894 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.083e-05/0.196, allocations: 0 / 0.6894 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.196, allocations: 0 / 0.6894 GB, free: 10.34 MB / 494.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 (2): * Single equations (assignments): 2 * 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.235e-05/0.1961, allocations: 126.5 kB / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.1961, allocations: 3.906 kB / 0.6895 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001839/0.1963, allocations: 65.19 kB / 0.6896 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1963, allocations: 7.938 kB / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/0.1963, allocations: 3.938 kB / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1963, allocations: 0 / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.1965, allocations: 161.6 kB / 0.6898 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1965, allocations: 4.031 kB / 0.6898 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.1965, allocations: 11.98 kB / 0.6898 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1966, allocations: 0 / 0.6898 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1966, allocations: 0 / 0.6898 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.1966, allocations: 4 kB / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1966, allocations: 0 / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.1968, allocations: 163.5 kB / 0.6899 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.535e-05/0.1968, allocations: 77.11 kB / 0.69 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.1968, allocations: 0 / 0.69 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.759e-05/0.1969, allocations: 7.938 kB / 0.69 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.1969, allocations: 0 / 0.69 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.1969, allocations: 0 / 0.69 GB, free: 9.613 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.105e-05/0.197, allocations: 91.27 kB / 0.6901 GB, free: 9.523 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.197, allocations: 3.938 kB / 0.6901 GB, free: 9.52 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.1973, allocations: 19.94 kB / 0.6901 GB, free: 9.5 MB / 494.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 (2): * Single equations (assignments): 2 * 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.0005557/0.1978, allocations: 0.7085 MB / 0.6908 GB, free: 8.766 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.198, allocations: 28.02 kB / 0.6909 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.198, allocations: 0 / 0.6909 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.23e-05/0.198, allocations: 19.94 kB / 0.6909 GB, free: 8.719 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.1983, allocations: 0 / 0.6909 GB, free: 8.719 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004617/0.1987, allocations: 174.3 kB / 0.691 GB, free: 8.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.199, allocations: 0.6809 MB / 0.6917 GB, free: 7.805 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.424e-05/0.1991, allocations: 0.5469 kB / 0.6917 GB, free: 7.805 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.653e-05/0.1991, allocations: 19.42 kB / 0.6917 GB, free: 7.785 MB / 494.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1991, allocations: 0 / 0.6917 GB, free: 7.785 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2006/0.3997, allocations: 1.41 MB / 0.6931 GB, free: 6.508 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/0.3999, allocations: 206 kB / 0.6933 GB, free: 6.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.54/1.94, allocations: 3.938 kB / 0.6933 GB, free: 6.25 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)