Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.721/1.721, allocations: 287.4 MB / 302.6 MB, free: 8.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 169.6 kB / 371.1 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.632/1.632, allocations: 205.4 MB / 0.6298 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006966/0.0006967, allocations: 96.17 kB / 0.7431 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004066, allocations: 16.92 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1827, allocations: 115.3 MB / 0.9787 GB, free: 28.09 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001985/0.1848, allocations: 1.152 MB / 0.9799 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1858, allocations: 485 kB / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.033e-05/0.186, allocations: 0 / 0.9803 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.186, allocations: 3.938 kB / 0.9803 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.518e-05/0.1861, allocations: 3.938 kB / 0.9803 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.1863, allocations: 19.98 kB / 0.9803 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.46e-05/0.1864, allocations: 19.92 kB / 0.9804 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.1865, allocations: 8 kB / 0.9804 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.801e-05/0.1866, allocations: 11.92 kB / 0.9804 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.1867, allocations: 11.92 kB / 0.9804 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.1867, allocations: 4 kB / 0.9804 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.747e-05/0.1868, allocations: 15.98 kB / 0.9804 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.1868, allocations: 0 / 0.9804 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.1869, allocations: 25.7 kB / 0.9804 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.648e-05/0.187, allocations: 31.95 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.187, allocations: 3.938 kB / 0.9805 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.613e-06/0.187, allocations: 0 / 0.9805 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.187, allocations: 0 / 0.9805 GB, free: 26.28 MB / 0.6198 GB 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.0004851/0.1875, allocations: 343.7 kB / 0.9808 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.1876, allocations: 11.97 kB / 0.9808 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.1876, allocations: 34.75 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1877, allocations: 8.938 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.569e-05/0.1878, allocations: 172.3 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.1878, allocations: 384 / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.1878, allocations: 384 / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.1881, allocations: 57.8 kB / 0.9811 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1881, allocations: 4 kB / 0.9811 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1881, allocations: 0 / 0.9811 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1882, allocations: 0 / 0.9811 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.1885, allocations: 47.95 kB / 0.9811 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003367/0.1888, allocations: 248.9 kB / 0.9814 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.189, allocations: 50.55 kB / 0.9814 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.1892, allocations: 24.91 kB / 0.9814 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001585/0.1894, allocations: 81.11 kB / 0.9815 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.1894, allocations: 34.55 kB / 0.9815 GB, free: 25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.883e-06/0.1894, allocations: 4 kB / 0.9815 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0006046/0.19, allocations: 97.59 kB / 0.9816 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.1901, allocations: 59.52 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.37e-05/0.1902, allocations: 101.9 kB / 0.9818 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.065e-05/0.1902, allocations: 25.7 kB / 0.9818 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.1903, allocations: 84.14 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.1903, allocations: 7.844 kB / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.1903, allocations: 0 / 0.9819 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.1904, allocations: 322.8 kB / 0.9822 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.1905, allocations: 23.98 kB / 0.9822 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1907, allocations: 23.92 kB / 0.9823 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.1909, allocations: 52.88 kB / 0.9823 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1909, allocations: 0 / 0.9823 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002757/0.1912, allocations: 77.61 kB / 0.9824 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1913, allocations: 9.5 kB / 0.9824 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1913, allocations: 4.031 kB / 0.9824 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1913, allocations: 11.97 kB / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.1914, allocations: 8 kB / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1914, allocations: 0 / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.072e-05/0.1915, allocations: 7.984 kB / 0.9824 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1915, allocations: 4 kB / 0.9824 GB, free: 24.04 MB / 0.6198 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 (2): * Single equations (assignments): 2 * 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 5.794e-05/0.1916, allocations: 119.1 kB / 0.9825 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.929e-05/0.1916, allocations: 3.906 kB / 0.9825 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.192, allocations: 88.7 kB / 0.9826 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.192, allocations: 4 kB / 0.9826 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.192, allocations: 3.984 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.192, allocations: 4.031 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001753/0.1922, allocations: 157.6 kB / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1922, allocations: 0 / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.322e-05/0.1923, allocations: 11.98 kB / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1923, allocations: 0 / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1923, allocations: 256 / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1923, allocations: 8 kB / 0.9828 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1923, allocations: 0 / 0.9828 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1927, allocations: 175.5 kB / 0.983 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.049e-05/0.1927, allocations: 77.11 kB / 0.983 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.1927, allocations: 4 kB / 0.9831 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.1929, allocations: 15.95 kB / 0.9831 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.1929, allocations: 0 / 0.9831 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1929, allocations: 4 kB / 0.9831 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.363e-05/0.193, allocations: 87.27 kB / 0.9832 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.61e-07/0.193, allocations: 0 / 0.9832 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003875/0.1934, allocations: 4 kB / 0.9832 GB, free: 23.18 MB / 0.6198 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 (2): * Single equations (assignments): 2 * 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.0005286/0.1939, allocations: 0.7084 MB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002941/0.1942, allocations: 55.92 kB / 0.9839 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1943, allocations: 0 / 0.9839 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.1944, allocations: 23.98 kB / 0.9839 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.1948, allocations: 8.062 kB / 0.9839 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005604/0.1954, allocations: 151.2 kB / 0.9841 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.1956, allocations: 0.677 MB / 0.9847 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.97e-05/0.1956, allocations: 4 kB / 0.9847 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.1957, allocations: 7.438 kB / 0.9847 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of SimCode: time 3.51e-07/0.1957, allocations: 0 / 0.9847 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01473/0.2104, allocations: 1.148 MB / 0.9859 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.2107, allocations: 189.9 kB / 0.9861 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/1.741, allocations: 0 / 0.9861 GB, free: 20.2 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)