/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin503
RA = 330.031, Dec = 21.6382
tmin = 369705601, tmax = 369964801
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='80786', job_status='RUN', time_executed='2021-09-27 23:21:34.483676', time_epoch_executed='1632810094.48' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80786/ft1_4FGL_J2200.1+2138_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80786/ft1_4FGL_J2200.1+2138_daily_bin503.fits outfile=/scratch/kocevski/80786/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin503.fits ra=330.031 dec=21.6382 rad=12.0 tmin=369705601.0 tmax=369964801.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.96
user 3.67
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.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/80786/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin503.fits evtable="EVENTS" outfile="/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/80786/ltcube_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.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/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits
.....................!
real 17.73
user 16.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/80786/ltcube_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits outfile=/scratch/kocevski/80786/expmap_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.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/80786/ltcube_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits
.....................!
real 193.60
user 188.04
sys 5.09

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits outfile=/scratch/kocevski/80786/cmap_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.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.031 yref=21.6382 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits outfile=/scratch/kocevski/80786/cmap_HighResolution_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.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.031 yref=21.6382 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80786/Model_4FGL_J2200.1+2138_daily_bin503.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits.....................!
real 154.13
user 152.40
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits', '/scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits', expMap='/scratch/kocevski/80786/expmap_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits', expCube='/scratch/kocevski/80786/ltcube_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/80786/Model_4FGL_J2200.1+2138_daily_bin503.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/80786/ft1_filtered_4FGL_J2200.1+2138_daily_bin503.fits
Spacecraft file(s): /scratch/kocevski/80786/ft2_4FGL_J2200.1+2138_daily_bin503.fits
Exposure map: /scratch/kocevski/80786/expmap_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits
Exposure cube: /scratch/kocevski/80786/ltcube_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/80786/Model_4FGL_J2200.1+2138_daily_bin503.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) = 9628.41375386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.028       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.673       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .49656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    83.728       1.0000         .10000E-03   10000.    
    11 'norm      '    .35600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.964       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3240       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2801       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.252       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2463       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9628.328     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2302 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.024        31.011       -.40653E-05    .14951E-05
   2  norm          7.4316        4.3724        .18576E-05    .40131E-04
   3  Prefactor     14.675        12.201       -.58738E-06   -.66031E-05
   4  Prefactor     .10000E-03    4.5685        .15579E-06** at limit **
   5  Prefactor     .10000E-03    45.406       -.54233E-04** at limit **
   6  norm          1.8266        2.6730       -.41530E-06   -.83716E-03
   7  Prefactor     13.480        10.215       -.35424E-06   -.45971E-04
   8  Prefactor     .10000E-03    20.149       -.12630E-04** at limit **
   9  norm          .49626        .68587       -.39810E-07   -.25371E-03
  10  Prefactor     83.718        54.432       -.90450E-05    .38668E-04
  11  norm          .35678        .99785       -.66244E-06   -.27464E-02
  12  Prefactor     .10000E-03    13.740        .18453E-05** at limit **
  13  norm          .10000E-03    1.3530        .10470E-06** at limit **
  14  Prefactor     18.962        21.526       -.17429E-05    .44803E-05
  15  Prefactor     .10000E-03    34.377        .53534E-04** at limit **
  16  Prefactor     5.3296        13.341       -.11486E-05   -.83756E-04
  17  norm          1.2803        1.0551       -.84676E-07   -.57434E-03
  18  norm          2.3107        1.4460       -.24797E-08    .20689E-03
  19  Prefactor     10.252        8.0781       -.92012E-07    .19234E-04
  20  Normalizat    1.2458        .24889        .18891E-05    .54247E-04
  21  Prefactor     .90545        .10109        .13015E-06    .22173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.0243
  norm       = 7.43162
  Prefactor  = 14.6754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8266
  Prefactor  = 13.48
  Prefactor  = 0.0001
  norm       = 0.496264
  Prefactor  = 83.7184
  norm       = 0.356784
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.9619
  Prefactor  = 0.0001
  Prefactor  = 5.32955
  norm       = 1.28026
  norm       = 2.31066
  Prefactor  = 10.2519
  Normalizat = 1.2458
  Prefactor  = 0.90545
 **********
 **   18 **HESSE 
 **********

 FCN=   9628.328     FROM HESSE     STATUS=OK           325 CALLS     2627 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.024        31.022        .69725E-04   -1.4558    
   2  norm          7.4316        4.3684        .14712E-03   -1.5163    
   3  Prefactor     14.675        12.209        .10456E-03   -1.4942    
   4  Prefactor     .10000E-03    4.5902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8266        2.6529        .18074E-03   -1.5438    
   7  Prefactor     13.480        10.191        .10910E-03   -1.4973    
   8  Prefactor     .10000E-03    20.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49626        .55723        .91204E-03   -1.5567    
  10  Prefactor     83.718        54.373        .21950E-03   -1.3875    
  11  norm          .35678        1.0100        .15390E-03   -1.5589    
  12  Prefactor     .10000E-03    13.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3560        .11145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.962        21.564        .91973E-04   -1.4837    
  15  Prefactor     .10000E-03    34.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3296        13.402        .17418E-03   -1.5246    
  17  norm          1.2803        1.0522        .88197E-04   -1.5482    
  18  norm          2.3107        1.4499        .90847E-04   -1.5404    
  19  Prefactor     10.252        8.0778        .12514E-03   -1.5067    
  20  Normalizat    1.2458        .29383        .38831E-03   -.85199    
  21  Prefactor     .90545        .12071        .19244E-03   -.95951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63397e-09
Minuit parameter uncertainties:
  1  31.0371
  2  4.3686
  3  12.2109
  4  5.19569e-08
  5  1.58148e-05
  6  2.65311
  7  10.1922
  8  7.85235e-05
  9  0.557237
  10  54.4051
  11  1.01007
  12  1.59369e-06
  13  1.44502e-06
  14  21.5733
  15  1.91927e-05
  16  13.4099
  17  1.05223
  18  1.44995
  19  8.07862
  20  0.294227
  21  0.120748
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  8.372e+01  5.441e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.055e-01  1.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.246e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.05
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 2.20e-05

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) = 9628.1194631
delta logL = 0.208983908457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9628.11227737
delta logL = 0.216169634698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.155       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6598       1.0000          .0000       10.000    
     3 'Normalizat'    1.2690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   9628.112     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      286 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.168        71.466        .21277E-03    .21480E-04
   2  Index         1.6600        .65920        .11816E-01   -.66659E-05
   3  Normalizat    1.2692        .27372        .38518E-03   -.26151E-04
   4  Prefactor     .90384        .11818        .19264E-03    .35410E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.1683
  Index      = 1.65998
  Normalizat = 1.26923
  Prefactor  = 0.903842
 **********
 **   18 **HESSE 
 **********

 FCN=   9628.112     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.168        72.806        .42554E-04   -1.3817    
   2  Index         1.6600        .67120        .47263E-03   -.73152    
   3  Normalizat    1.2692        .27388        .15407E-04   -.84490    
   4  Prefactor     .90384        .11830        .77054E-05   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56821e-12
Minuit parameter uncertainties:
  1  72.8793
  2  0.674896
  3  0.274194
  4  0.118338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80786': 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) = 9628.11227702
delta logL = 0.21616998782

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  8.917e+01  7.288e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.660e+00  6.749e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.038e-01  1.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.269e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.47
Ra Dec: 330.031 21.638
Photon Index (Free Index): 1.66 +/- 0.67
Photon Flux (Free Index): 2.67e-08 +/- 4.44e-08
Energy Flux (Free Index): 4.95e-05 +/- 5.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/80786/cmap_HighResolution_369705601_369964801_4FGL_J2200.1+2138_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='4.95e-05', photon_flux_error='3.54e-08', dlogl='2.16e-01', energy_flux='3.39e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-27 23:35:15.210501', photon_index_error2='0.67', photon_index2='1.66', ts='9.05', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='5.17e-05', EG='1.25', time_epoch_completed='1632810915.21', return_code='0', job_id='80786', GAL2='0.90', EG2='1.27', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='4.44e-08', ts2='9.47', photon_index='2.04' WHERE bin_id='503' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 80786: <4FGL_J2200.1+2138_daily_bin503> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:20:29 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:20:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 23:20:31 2021
Terminated at Mon Sep 27 23:35:15 2021
Results reported at Mon Sep 27 23:35:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin503 330.031 21.6382 369705601 369964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   806.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

