/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 3 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 = 7450
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.7-2414_daily_bin1582
RA = 330.181, Dec = -24.2421
tmin = 649382401, tmax = 649641601
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='94394', job_status='RUN', time_executed='2021-09-28 00:06:25.433292', time_epoch_executed='1632812785.43' WHERE source_name='4FGL J2200.7-2414' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94394/ft1_4FGL_J2200.7-2414_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94394/ft1_4FGL_J2200.7-2414_daily_bin1582.fits outfile=/scratch/kocevski/94394/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1582.fits ra=330.181 dec=-24.2421 rad=12.0 tmin=649382401.0 tmax=649641601.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 2.71
user 2.49
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.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/94394/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/94394/ltcube_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.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/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits
.....................!
real 16.67
user 16.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/94394/ltcube_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits outfile=/scratch/kocevski/94394/expmap_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.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/94394/ltcube_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits
.....................!
real 192.85
user 187.31
sys 5.14

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2200.7-2414 @ 330.181 -24.2421

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits outfile=/scratch/kocevski/94394/cmap_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.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=330.181 yref=-24.2421 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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits outfile=/scratch/kocevski/94394/cmap_HighResolution_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.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=330.181 yref=-24.2421 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94394/Model_4FGL_J2200.7-2414_daily_bin1582.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/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits...........................!
real 17.74
user 14.86
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits', '/scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits', expMap='/scratch/kocevski/94394/expmap_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits', expCube='/scratch/kocevski/94394/ltcube_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94394/Model_4FGL_J2200.7-2414_daily_bin1582.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.7-2414'

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.200e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94394/ft1_filtered_4FGL_J2200.7-2414_daily_bin1582.fits
Spacecraft file(s): /scratch/kocevski/94394/ft2_4FGL_J2200.7-2414_daily_bin1582.fits
Exposure map: /scratch/kocevski/94394/expmap_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits
Exposure cube: /scratch/kocevski/94394/ltcube_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94394/Model_4FGL_J2200.7-2414_daily_bin1582.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 339.111431522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 334.648854342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8454       1.0000         .10000E-03   10000.    
     2 'norm      '    .85025E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78847E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    390.75       1.0000         .10000E-03   10000.    
     5 'norm      '    .19550E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82225E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    142.53       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.509       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1585       1.0000         .10000E-03   10000.    
    10 'norm      '    .21725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25174       1.0000         .10000E-03   10000.    
    12 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28822E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .81426E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.529       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95612       1.0000         .10000E-03   10000.    
    18 'norm      '    12.513       1.0000         .10000E-03   10000.    
    19 'Prefactor '    76.531       1.0000         .10000E-03   10000.    
    20 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40081E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .28927       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77386       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   334.6349     FROM MIGRAD    STATUS=CONVERGED    247 CALLS      512 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8454        1.0424         .0000         .0000    
   2  norm          .10001E-03    209.59        .13161E-04** at limit **
   3  Prefactor     .10004E-03    265.65       -.39796E-06** at limit **
   4  Prefactor     391.48        31.776        .17323E-06    .32015E-02
   5  norm          .10000E-03    40.891        .26468E-05** at limit **
   6  Prefactor     .10001E-03    194.87        .16755E-05** at limit **
   7  norm          142.82        10.049        .12394E-06   -.34807E-02
   8  Prefactor     40.741        222.22        .30051E-05   -.36327E-02
   9  Prefactor     .18791E-03    601.52       -.43094E-04** at limit **
  10  norm          .10000E-03    54.852        .37809E-05** at limit **
  11  Prefactor     .10000E-03    123.52        .81229E-05** at limit **
  12  norm          .10000E-03    7.2006        .13805E-05** at limit **
  13  Prefactor     .10000E-03    40.722        .12027E-05** at limit **
  14  Prefactor     .10000E-03    44.465       -.11168E-05** at limit **
  15  Prefactor     38.365        51.173       -.22046E-05    .14848E-01
  16  Prefactor     .10000E-03    25.932       -.10540E-05** at limit **
  17  Prefactor     .10000E-03    253.81        .74771E-05** at limit **
  18  norm          17.947        141.97        .91922E-05    .11549E-02
  19  Prefactor     76.663        59.223        .37345E-07   -.87987E-02
  20  norm          .10000E-03    5.2259        .64674E-06** at limit **
  21  Prefactor     .10000E-03    84.394        .73698E-05** at limit **
  22  norm          .66340        96.134        .17092E-04   -.64273E-05
  23  Normalizat    .75496        .93797       -.67089E-06   -.43001E-05
  24  Prefactor     .59174        .76570        .11195E-04   -.58412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84539
  norm       = 0.000100005
  Prefactor  = 0.000100041
  Prefactor  = 391.484
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 142.821
  Prefactor  = 40.7413
  Prefactor  = 0.000187914
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.9474
  Prefactor  = 76.6625
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.663395
  Normalizat = 0.754962
  Prefactor  = 0.591737
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   334.6349     FROM HESSE     STATUS=FAILED         9 CALLS      521 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     571.58        569.59         .0000       -1.5436    
   2  norm          .10001E-03    .22276        .13161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    .21395       -.39796E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     391.48        1.0009        .17323E-06   -1.1724    
   5  norm          .10000E-03    .20795        .26468E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    .22213        .16755E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          142.82        1.0010        .12394E-06   -1.3312    
   8  Prefactor     40.741        1.0563        .30051E-05   -1.4431    
   9  Prefactor     .18791E-03    .40891E-01   -.43094E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .25281        .37809E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .26068        .81229E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571        .13805E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .28640        .12027E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .22195       -.11168E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.365        .98530       -.22046E-05   -1.4468    
  16  Prefactor     .10000E-03    .20571       -.10540E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .42312        .74771E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.947        1.1982        .91922E-05   -1.4860    
  19  Prefactor     76.663        1.0009        .37345E-07   -1.3955    
  20  norm          .10000E-03    .20571        .64674E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .21259        .73698E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .66340        .84516        .17092E-04   -1.5545    
  23  Normalizat    .75496        1.1004       -.67089E-06   -1.0176    
  24  Prefactor     .59174        .93778        .11195E-04   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.13724e-10
Minuit parameter uncertainties:
  1  1.04244
  2  6.95257e-05
  3  0.000187452
  4  1.0009
  5  1.32144e-06
  6  8.63647e-05
  7  1.00103
  8  1.05625
  9  0.00379205
  10  2.24297e-06
  11  9.05982e-06
  12  6.31648e-07
  13  5.89134e-07
  14  1.17851e-06
  15  0.985302
  16  1.12959e-06
  17  8.0338e-06
  18  1.19825
  19  1.00087
  20  3.54338e-07
  21  3.13367e-07
  22  0.845172
  23  1.13551
  24  0.964409
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 334.634938924

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.891e-07  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  5.917e-01  9.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.550e-01  1.136e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.181 -24.242
Photon Flux Upper Limit: 7.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94394/likelihoodResults_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.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): 102
logL (Free Index) = 334.635024219
delta logL = -8.52948976444e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 334.634939621
delta logL = -6.97172026776e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5547       1.0000          .0000       10.000    
     3 'Normalizat'    .75498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   334.6349     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10427E-03    42.971        .93702E-02** at limit **
   2  Index         2.4617        5.5648        .50000        .10699E-04
   3  Normalizat    .75497        .21631E-01    .27459E-03    .30922E-04
   4  Prefactor     .59173        .17701E-01    .24970E-03    .16598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104269
  Index      = 2.46173
  Normalizat = 0.754967
  Prefactor  = 0.591734
 **********
 **   18 **HESSE 
 **********

 FCN=   334.6349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10427E-03    376.77        .97627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4617        8.5829        .50000       -.53246    
   3  Normalizat    .75497        .65168E-01    .54919E-04   -1.0176    
   4  Prefactor     .59173        .53327E-01    .99879E-05   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46193e-09
Minuit parameter uncertainties:
  1  0.0807241
  2  561.014
  3  0.0651744
  4  0.0533316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94394': 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): 102
logL (Free Index) = 334.634939446
delta logL = -5.2167058584e-07

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.043e-04  8.072e-02  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.462e+00  5.610e+02  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  5.917e-01  5.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.550e-01  6.517e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.181 -24.242

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/94394/cmap_HighResolution_649382401_649641601_4FGL_J2200.7-2414_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-02', job_status='DONE', photon_flux_upper_limit='7.88e-07', time_completed='2021-09-28 00:11:58.862397', job_id='94394', GAL2='0.59', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632813118.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.59', dlogl='-5.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1582' AND source_name='4FGL J2200.7-2414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 00:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 94394: <4FGL_J2200.7-2414_daily_bin1582> in cluster <slac> Done

Job <4FGL_J2200.7-2414_daily_bin1582> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 00:00:42 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 00:06:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 00:06:09 2021
Terminated at Tue Sep 28 00:11:59 2021
Results reported at Tue Sep 28 00:11:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.7-2414_daily_bin1582 330.181 -24.2421 649382401 649641601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.7-2414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   323.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   350 sec.
    Turnaround time :                            677 sec.

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

