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


Performing analysis on: 4FGL_J2200.7-2414_daily_bin1583
RA = 330.181, Dec = -24.2421
tmin = 649641601, tmax = 649900801
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='94396', job_status='RUN', time_executed='2021-09-28 00:06:50.026138', time_epoch_executed='1632812810.03' WHERE source_name='4FGL J2200.7-2414' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94396/ft1_4FGL_J2200.7-2414_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94396/ft1_4FGL_J2200.7-2414_daily_bin1583.fits outfile=/scratch/kocevski/94396/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1583.fits ra=330.181 dec=-24.2421 rad=12.0 tmin=649641601.0 tmax=649900801.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 3.02
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/94396/ltcube_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.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/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits
.....................!
real 13.50
user 13.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/94396/ltcube_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits outfile=/scratch/kocevski/94396/expmap_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.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/94396/ltcube_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits
.....................!
real 190.80
user 184.83
sys 5.36

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/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits scfile=/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits outfile=/scratch/kocevski/94396/cmap_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits scfile=/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits outfile=/scratch/kocevski/94396/cmap_HighResolution_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.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.77
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94396/Model_4FGL_J2200.7-2414_daily_bin1583.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/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits..................................!
real 18.45
user 15.89
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits', '/scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits', expMap='/scratch/kocevski/94396/expmap_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits', expCube='/scratch/kocevski/94396/ltcube_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94396/Model_4FGL_J2200.7-2414_daily_bin1583.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/94396/ft1_filtered_4FGL_J2200.7-2414_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/94396/ft2_4FGL_J2200.7-2414_daily_bin1583.fits
Exposure map: /scratch/kocevski/94396/expmap_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits
Exposure cube: /scratch/kocevski/94396/ltcube_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94396/Model_4FGL_J2200.7-2414_daily_bin1583.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) = 438.083908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .21341E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48939E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .34060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18098E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21573E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    10 'norm      '    183.99       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41988E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22330E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6187       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20340E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70899E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    136.95       1.0000         .10000E-03   10000.    
    18 'norm      '    12.376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13233E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    306.96       1.0000         .10000E-03   10000.    
    22 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .63829       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65438       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=   435.3636     FROM MIGRAD    STATUS=CONVERGED    356 CALLS      622 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8454        1.0424         .0000         .0000    
   2  norm          .10000E-03    732.36       -.70188E-05** at limit **
   3  Prefactor     .10000E-03    186.75        .89248E-05** at limit **
   4  Prefactor     .10002E-03    375.36        .31387E-04** at limit **
   5  norm          .10001E-03    299.82        .27250E-04** at limit **
   6  Prefactor     .10000E-03    34.262       -.32407E-05** at limit **
   7  norm          .10000E-03    11.580        .57618E-06** at limit **
   8  Prefactor     .10025E-03    1271.1        .98528E-04** at limit **
   9  Prefactor     1544.9        5662.2        .21806E-03    .17448E-04
  10  norm          88.819        260.33       -.31629E-04    .34989E-04
  11  Prefactor     .10000E-03    20.429        .25134E-05** at limit **
  12  norm          .10000E-03    4.2775       -.18361E-05** at limit **
  13  Prefactor     .10000E-03    75.753        .24937E-05** at limit **
  14  Prefactor     6.2453        36.024        .76998E-05    .19255E-04
  15  Prefactor     .10000E-03    136.25        .14901E-04** at limit **
  16  Prefactor     .10000E-03    150.61        .48068E-04** at limit **
  17  Prefactor     135.84        224.80       -.45251E-05   -.25053E-04
  18  norm          .10001E-03    497.33       -.82967E-05** at limit **
  19  Prefactor     .10000E-03    41.523       -.53612E-05** at limit **
  20  norm          .10000E-03    14.858       -.58236E-06** at limit **
  21  Prefactor     314.81        258.25        .22571E-05   -.44183E-05
  22  norm          .10000E-03    10.902        .10873E-05** at limit **
  23  Normalizat    .64932        .88998       -.63310E-04    .61855E-05
  24  Prefactor     .65718        .59434        .44135E-04    .67157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84539
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100017
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100245
  Prefactor  = 1544.94
  norm       = 88.8192
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24531
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 135.839
  norm       = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 314.808
  norm       = 0.0001
  Normalizat = 0.64932
  Prefactor  = 0.657178
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   435.3636     FROM HESSE     STATUS=FAILED         9 CALLS      631 TOTAL
                     EDM=   .45E-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          .10000E-03    .20836       -.70188E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .22745        .89248E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    .21459        .31387E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    .28099        .27250E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .20762       -.32407E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .20571        .57618E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10025E-03    .20841        .98528E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1544.9        9.8329        .21806E-03   -.76289    
  10  norm          88.819        .69815       -.31629E-04   -1.3820    
  11  Prefactor     .10000E-03    .23604        .25134E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571       -.18361E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .20571        .24937E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2453        .97420        .76998E-05   -1.5208    
  15  Prefactor     .10000E-03    .20813        .14901E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21806        .48068E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     135.84        .99600       -.45251E-05   -1.3372    
  18  norm          .10001E-03    .20259E-01   -.82967E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.53612E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571       -.58236E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     314.81        1.0123        .22571E-05   -1.2141    
  22  norm          .10000E-03    .20571        .10873E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64932        .98492       -.63310E-04   -1.0593    
  24  Prefactor     .65718        1.0056        .44135E-04   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.49579e-10
Minuit parameter uncertainties:
  1  1.04244
  2  3.22037e-06
  3  4.84723e-05
  4  0.000120681
  5  9.47803e-05
  6  3.42758e-06
  7  2.54525e-07
  8  0.000452131
  9  9.83291
  10  0.698151
  11  4.36188e-06
  12  5.13422e-06
  13  1.70707e-06
  14  0.974203
  15  3.15568e-05
  16  3.77397e-05
  17  0.996001
  18  2.8493e-05
  19  8.9158e-06
  20  2.45534e-05
  21  1.01229
  22  1.33983e-06
  23  1.01371
  24  1.03552
Done.

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

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.707e-06  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:  6.572e-01  1.036e+00  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:  6.493e-01  1.014e+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: 1.27e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94396/likelihoodResults_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.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) = 435.363631341
delta logL = -6.33960863752e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 435.363568469
delta logL = -5.23610992786e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6915       1.0000          .0000       10.000    
     3 'Normalizat'    .64935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65716       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=   435.3636     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10947E-03    59.329        .13535E-01** at limit **
   2  Index         2.5244        8.7366        .50000        .59165E-05
   3  Normalizat    .64933        .18292E-01    .32204E-03    .69722E-05
   4  Prefactor     .65717        .12801E-01    .22199E-03    .12534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109469
  Index      = 2.52443
  Normalizat = 0.64933
  Prefactor  = 0.65717
 **********
 **   18 **HESSE 
 **********

 FCN=   435.3636     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10947E-03    652.29        .14811E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5244        5.6962        .50000       -.51797    
   3  Normalizat    .64933        .61988E-01    .12881E-04   -1.0593    
   4  Prefactor     .65717        .43383E-01    .88797E-05   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33474e-09
Minuit parameter uncertainties:
  1  0.158944
  2  1066.1
  3  0.0619947
  4  0.0433849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94396': 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) = 435.363568312
delta logL = -3.66465030766e-07

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.095e-04  1.589e-01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.524e+00  1.066e+03  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:  6.572e-01  4.338e-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:  6.493e-01  6.199e-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/94396/cmap_HighResolution_649641601_649900801_4FGL_J2200.7-2414_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-02', job_status='DONE', photon_flux_upper_limit='1.27e-06', time_completed='2021-09-28 00:12:21.523481', job_id='94396', GAL2='0.66', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632813141.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.66', dlogl='-3.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1583' AND source_name='4FGL J2200.7-2414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 00:12:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 94396: <4FGL_J2200.7-2414_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2200.7-2414_daily_bin1583> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 00:00:43 2021
Job was executed on host(s) <bullet0169>, 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:12:24 2021
Results reported at Tue Sep 28 00:12:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.7-2414_daily_bin1583 330.181 -24.2421 649641601 649900801 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 :                                   318.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             480.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   373 sec.
    Turnaround time :                            701 sec.

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

