Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",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.001611/0.001611, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002665/0.002665, allocations: 286.6 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.088/1.088, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002764/0.002764, allocations: 99.81 kB / 0.6065 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1808, allocations: 89.14 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002779/0.1836, allocations: 1.443 MB / 0.695 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008296/0.1845, allocations: 467.5 kB / 0.6955 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.174e-05/0.1845, allocations: 0 / 0.6955 GB, free: 2.305 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.702e-05/0.1846, allocations: 4.469 kB / 0.6955 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.504e-05/0.1846, allocations: 11.88 kB / 0.6955 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.1849, allocations: 19.98 kB / 0.6955 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.764e-05/0.1849, allocations: 23.92 kB / 0.6955 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.663e-05/0.185, allocations: 7.984 kB / 0.6955 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.325e-05/0.1851, allocations: 15.86 kB / 0.6955 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.682e-05/0.1852, allocations: 8 kB / 0.6955 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.1852, allocations: 4 kB / 0.6955 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.1853, allocations: 23.97 kB / 0.6956 GB, free: 2.188 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.562e-05/0.1853, allocations: 7.938 kB / 0.6956 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.1853, allocations: 12 kB / 0.6956 GB, free: 2.168 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1854, allocations: 35.88 kB / 0.6956 GB, free: 2.133 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1854, allocations: 0 / 0.6956 GB, free: 2.133 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1854, allocations: 0 / 0.6956 GB, free: 2.133 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1854, allocations: 0 / 0.6956 GB, free: 2.133 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.0004576/0.1859, allocations: 343.7 kB / 0.6959 GB, free: 1.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.186, allocations: 8.031 kB / 0.696 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.186, allocations: 38.69 kB / 0.696 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.186, allocations: 0.9375 kB / 0.696 GB, free: 1.695 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.1862, allocations: 168.3 kB / 0.6962 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.1862, allocations: 4.375 kB / 0.6962 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.669e-06/0.1862, allocations: 4.312 kB / 0.6962 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.1864, allocations: 53.8 kB / 0.6962 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1864, allocations: 0 / 0.6962 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.1864, allocations: 0 / 0.6962 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1864, allocations: 0 / 0.6962 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.1866, allocations: 35.95 kB / 0.6962 GB, free: 1.391 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.1869, allocations: 256.8 kB / 0.6965 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000125/0.1871, allocations: 38.59 kB / 0.6965 GB, free: 1.043 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.914e-05/0.1872, allocations: 20.91 kB / 0.6965 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.1873, allocations: 85.09 kB / 0.6966 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.1873, allocations: 34.56 kB / 0.6967 GB, free: 0.875 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1873, allocations: 0 / 0.6967 GB, free: 0.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003599/0.1877, allocations: 85.58 kB / 0.6967 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.1878, allocations: 51.41 kB / 0.6968 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.777e-05/0.1878, allocations: 101.9 kB / 0.6969 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1879, allocations: 29.83 kB / 0.6969 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.1879, allocations: 88.14 kB / 0.697 GB, free: 500 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.188, allocations: 11.83 kB / 0.697 GB, free: 488 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/0.188, allocations: 13.72 kB / 0.697 GB, free: 468 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1881, allocations: 318.8 kB / 0.6973 GB, free: 140 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.534e-05/0.1882, allocations: 11.98 kB / 0.6973 GB, free: 128 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.993e-05/0.1883, allocations: 23.97 kB / 0.6974 GB, free: 104 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.1885, allocations: 40.83 kB / 0.6974 GB, free: 60 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1885, allocations: 4 kB / 0.6974 GB, free: 56 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002135/0.1887, allocations: 69.5 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1887, allocations: 8 kB / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.1887, allocations: 0 / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1888, allocations: 0 / 0.6975 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.483e-05/0.1889, allocations: 8.031 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1889, allocations: 3.984 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.519e-05/0.1889, allocations: 7.984 kB / 0.6975 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.1889, allocations: 4 kB / 0.6975 GB, free: 15.95 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 (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.055e-05/0.189, allocations: 114.4 kB / 0.6976 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.1891, allocations: 0 / 0.6976 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002456/0.1893, allocations: 84.7 kB / 0.6977 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1893, allocations: 3.938 kB / 0.6977 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1893, allocations: 0 / 0.6977 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1893, allocations: 0 / 0.6977 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.1895, allocations: 161.6 kB / 0.6979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1895, allocations: 0 / 0.6979 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.1896, allocations: 7.984 kB / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1896, allocations: 0 / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1896, allocations: 0 / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1896, allocations: 4 kB / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1896, allocations: 4.031 kB / 0.6979 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.1899, allocations: 163.5 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.1899, allocations: 81.02 kB / 0.6981 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1899, allocations: 3.984 kB / 0.6981 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.269e-05/0.19, allocations: 4 kB / 0.6981 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.632e-05/0.1901, allocations: 7.969 kB / 0.6981 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.1901, allocations: 4 kB / 0.6981 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.108e-05/0.1901, allocations: 91.52 kB / 0.6982 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1901, allocations: 0 / 0.6982 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002196/0.1904, allocations: 8 kB / 0.6982 GB, free: 15.12 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 (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.000642/0.191, allocations: 0.7007 MB / 0.6989 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002338/0.1913, allocations: 39.89 kB / 0.6989 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1913, allocations: 4 kB / 0.6989 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.71e-05/0.1914, allocations: 15.98 kB / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.1917, allocations: 12.09 kB / 0.699 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004519/0.1922, allocations: 135.3 kB / 0.6991 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1925, allocations: 0.6729 MB / 0.6998 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.837e-05/0.1925, allocations: 3.984 kB / 0.6998 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.822e-05/0.1926, allocations: 11.44 kB / 0.6998 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.1926, allocations: 0 / 0.6998 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.216, allocations: 1.414 MB / 0.7012 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.47, allocations: 9.312 kB / 0.7012 GB, free: 12.09 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)