/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 235 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7464
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2150.7-2810_daily_bin666
RA = 327.698, Dec = -28.1728
tmin = 411955201, tmax = 412214401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='997236', job_status='RUN', time_executed='2021-09-27 19:00:17.689414', time_epoch_executed='1632794417.69' WHERE source_name='4FGL J2150.7-2810' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997236

Creating custom pfile directory:
/scratch/kocevski/997236/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=411955201.0 && nMetStart<412214401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=411955201.0 && nMetStart<412214401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997236/ft1_4FGL_J2150.7-2810_daily_bin666.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=411955201.0 && nMetStart<412214401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997236/ft1_4FGL_J2150.7-2810_daily_bin666.fits outfile=/scratch/kocevski/997236/ft1_filteredMKT_4FGL_J2150.7-2810_daily_bin666.fits ra=327.698 dec=-28.1728 rad=12.0 tmin=411955201.0 tmax=412214401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.66
user 5.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/997236/ft1_filteredMKT_4FGL_J2150.7-2810_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/997236/ltcube_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits
.....................!
real 13.17
user 12.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/997236/ltcube_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits outfile=/scratch/kocevski/997236/expmap_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/997236/ltcube_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits
.....................!
real 192.21
user 186.87
sys 4.61

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2150.7-2810 @ 327.698 -28.1728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits outfile=/scratch/kocevski/997236/cmap_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=327.698 yref=-28.1728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits outfile=/scratch/kocevski/997236/cmap_HighResolution_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=327.698 yref=-28.1728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997236/Model_4FGL_J2150.7-2810_daily_bin666.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits......................!
real 31.94
user 30.64
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits', '/scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits', expMap='/scratch/kocevski/997236/expmap_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits', expCube='/scratch/kocevski/997236/ltcube_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997236/Model_4FGL_J2150.7-2810_daily_bin666.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2150.7-2810'

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  1.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.158e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/997236/ft1_filtered_4FGL_J2150.7-2810_daily_bin666.fits
Spacecraft file(s): /scratch/kocevski/997236/ft2_4FGL_J2150.7-2810_daily_bin666.fits
Exposure map: /scratch/kocevski/997236/expmap_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits
Exposure cube: /scratch/kocevski/997236/ltcube_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997236/Model_4FGL_J2150.7-2810_daily_bin666.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2488.97011089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2488.95472719

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2318       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.255       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9170       1.0000         .10000E-03   10000.    
    12 'norm      '    .34895       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15604E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.663       1.0000         .10000E-03   10000.    
    16 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6629       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .63458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2488.955     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2008 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.926        35.703       -.22331E-04    .16980E-04
   2  Prefactor     2.2354        13.984        .21517E-06   -.21241E-03
   3  norm          .10000E-03    4.3543       -.19358E-07** at limit **
   4  Prefactor     .10000E-03    13.845       -.33009E-05** at limit **
   5  Prefactor     .10000E-03    9.4461        .41194E-06** at limit **
   6  Prefactor     .10000E-03    7.1208       -.10045E-06** at limit **
   7  Prefactor     14.253        20.683       -.23342E-05    .33555E-05
   8  norm          .10000E-03    6.3577        .46129E-07** at limit **
   9  Prefactor     23.851        26.334        .56600E-06    .88024E-04
  10  Prefactor     .10000E-03    51.659       -.33545E-04** at limit **
  11  norm          5.9160        10.900       -.72664E-06    .76193E-04
  12  norm          .34882        .42253        .68094E-07    .80600E-03
  13  Prefactor     .10013E-03    119.43       -.58604E-04** at limit **
  14  Prefactor     30.205        40.462       -.49155E-04    .16402E-03
  15  Prefactor     12.666        19.269       -.29373E-05    .14651E-04
  16  norm          .10000E-03    77.056        .10437E-03** at limit **
  17  Prefactor     .10000E-03    16.185        .36671E-05** at limit **
  18  norm          .10000E-03    3.4210       -.66149E-07** at limit **
  19  Normalizat    1.6627        .36716        .86968E-05    .54620E-04
  20  Prefactor     .63448        .21250        .21432E-05    .30497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9264
  Prefactor  = 2.23544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.253
  norm       = 0.0001
  Prefactor  = 23.8511
  Prefactor  = 0.0001
  norm       = 5.91595
  norm       = 0.348823
  Prefactor  = 0.000100135
  Prefactor  = 30.2047
  Prefactor  = 12.6657
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.66269
  Prefactor  = 0.634482
 **********
 **   18 **HESSE 
 **********

 FCN=   2488.955     FROM HESSE     STATUS=OK           283 CALLS     2291 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.926        35.811        .89670E-04   -1.4815    
   2  Prefactor     2.2354        13.893        .27518E-03   -1.5409    
   3  norm          .10000E-03    4.3553        .10168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.958        .18128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4548        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1215        .13004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.253        20.749        .10609E-03   -1.4953    
   8  norm          .10000E-03    6.3609        .12286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.851        26.326        .82017E-04   -1.4731    
  10  Prefactor     .10000E-03    51.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9160        11.049        .16509E-03   -1.5221    
  12  norm          .34882        .41358        .34362E-04   -1.5590    
  13  Prefactor     .10013E-03    122.36        .36403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.205        40.407        .72830E-04   -1.4608    
  15  Prefactor     12.666        19.583        .11257E-03   -1.4996    
  16  norm          .10000E-03    77.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4218        .90125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6627        .44438        .26069E-03   -.73304    
  20  Prefactor     .63448        .25449        .23661E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50845e-09
Minuit parameter uncertainties:
  1  35.8492
  2  11.1493
  3  3.12777e-06
  4  0.000127848
  5  9.90774e-06
  6  3.71792e-07
  7  20.7597
  8  1.0305e-05
  9  26.3389
  10  0.000108907
  11  11.0531
  12  0.413587
  13  0.00814414
  14  40.4435
  15  19.5926
  16  0.000324237
  17  1.35629e-05
  18  1.41836e-06
  19  0.445447
  20  0.254959
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2488.95465967

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  2.385e+01  2.634e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.158e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.345e-01  2.550e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.663e+00  4.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 327.698 -28.173
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 2.12e-05

TS (Fixed Index): 2.79
Ra Dec: 327.698 -28.173
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997236/likelihoodResults_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2488.86959571
delta logL = 0.0850639603877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2488.86624735
delta logL = 0.0884123158703

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.348       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7455       1.0000          .0000       10.000    
     3 'Normalizat'    1.6767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62902       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2488.866     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      286 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.404        61.713        .31170E-03    .28176E-04
   2  Index         1.7476        .90317        .69174E-02    .88002E-04
   3  Normalizat    1.6767        .39214        .25984E-03   -.31896E-05
   4  Prefactor     .62904        .23332        .23753E-03    .32785E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.404
  Index      = 1.74758
  Normalizat = 1.6767
  Prefactor  = 0.629042
 **********
 **   18 **HESSE 
 **********

 FCN=   2488.866     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.404        60.029        .12468E-04   -1.4420    
   2  Index         1.7476        .87893        .13835E-02   -.70822    
   3  Normalizat    1.6767        .39237        .51968E-04   -.72927    
   4  Prefactor     .62904        .23350        .95014E-05   -1.0638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2621e-11
Minuit parameter uncertainties:
  1  60.1169
  2  0.886969
  3  0.393102
  4  0.233858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997236': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2488.86623932
delta logL = 0.0884203444498

Extracting fit parameters...

4FGL J2150.7-2810
   Spectrum: PowerLaw
271    Prefactor:  4.140e+01  6.012e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  1.748e+00  8.870e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  3.319e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.290e-01  2.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.677e+00  3.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 327.698 -28.173
Photon Index (Free Index): 1.75 +/- 0.89
Photon Flux (Free Index): 2.51e-08 +/- 3.72e-08
Energy Flux (Free Index): 3.52e-05 +/- 7.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/997236/cmap_HighResolution_411955201_412214401_4FGL_J2150.7-2810_daily_bin666.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/997236

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='3.52e-05', photon_flux_error='4.35e-08', dlogl='8.84e-02', energy_flux='1.92e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-27 19:07:24.880580', photon_index_error2='0.89', photon_index2='1.75', ts='2.79', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='7.30e-05', EG='1.66', time_epoch_completed='1632794844.88', return_code='0', job_id='997236', GAL2='0.63', EG2='1.68', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='3.72e-08', ts2='2.97', photon_index='2.16' WHERE bin_id='666' AND source_name='4FGL J2150.7-2810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 19:07:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 997236: <4FGL_J2150.7-2810_daily_bin666> in cluster <slac> Done

Job <4FGL_J2150.7-2810_daily_bin666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 18:55:38 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:56:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 18:56:11 2021
Terminated at Mon Sep 27 19:07:25 2021
Results reported at Mon Sep 27 19:07:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2150.7-2810_daily_bin666 327.698 -28.1728 411955201 412214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2150.7-2810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   426.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             210.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            707 sec.

The output (if any) is above this job summary.

