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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1222
RA = 330.031, Dec = 21.6382
tmin = 556070401, tmax = 556329601
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='83050', job_status='RUN', time_executed='2021-09-27 23:27:52.166226', time_epoch_executed='1632810472.17' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83050/ft1_4FGL_J2200.1+2138_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83050/ft1_4FGL_J2200.1+2138_daily_bin1222.fits outfile=/scratch/kocevski/83050/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1222.fits ra=330.031 dec=21.6382 rad=12.0 tmin=556070401.0 tmax=556329601.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.75
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.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/83050/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1222.fits evtable="EVENTS" outfile="/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/83050/ltcube_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.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/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits
.....................!
real 14.89
user 14.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/83050/ltcube_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits outfile=/scratch/kocevski/83050/expmap_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.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/83050/ltcube_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits
.....................!
real 191.22
user 186.03
sys 4.46

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/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits outfile=/scratch/kocevski/83050/cmap_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits outfile=/scratch/kocevski/83050/cmap_HighResolution_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83050/Model_4FGL_J2200.1+2138_daily_bin1222.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/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits.........................!
real 21.36
user 20.08
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits', '/scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits', expMap='/scratch/kocevski/83050/expmap_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits', expCube='/scratch/kocevski/83050/ltcube_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83050/Model_4FGL_J2200.1+2138_daily_bin1222.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/83050/ft1_filtered_4FGL_J2200.1+2138_daily_bin1222.fits
Spacecraft file(s): /scratch/kocevski/83050/ft2_4FGL_J2200.1+2138_daily_bin1222.fits
Exposure map: /scratch/kocevski/83050/expmap_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits
Exposure cube: /scratch/kocevski/83050/ltcube_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83050/Model_4FGL_J2200.1+2138_daily_bin1222.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) = 660.594038153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55273E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    17.099       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1580.7       1.0000         .10000E-03   10000.    
     6 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26097E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .25771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32088E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16619E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .95594E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41175E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70381       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   657.0959     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      489 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11465E-03    790.57        .95304E-02** at limit **
   2  norm          17.056        50.404        .24214E-02    .13441E-02
   3  Prefactor     .10000E-03    14.725        .90712E-02** at limit **
   4  Prefactor     .10000E-03    26.222        .90712E-02** at limit **
   5  Prefactor     1580.7        1148.0        .27412E-03   -.23566E-02
   6  norm          .10000E-03    5.5740        .90712E-02** at limit **
   7  Prefactor     1.7488        1.0482         .0000         .0000    
   8  Prefactor     .11021E-03    .28750        .18326E-05** at limit **
   9  norm          .10136E-03    .26204        .22701E-04** at limit **
  10  Prefactor     .10005E-03    .21078        .45196E-04** at limit **
  11  norm          2.4388        1.0225       -.31315E-05    .80030E-05
  12  Prefactor     .10000E-03    .20571        .14074E-04** at limit **
  13  norm          .10000E-03    .20571        .85291E-05** at limit **
  14  Prefactor     .10000E-03    .20571        .99573E-05** at limit **
  15  Prefactor     .10004E-03    .22516       -.29371E-04** at limit **
  16  Prefactor     .10006E-03    .23664       -.31233E-04** at limit **
  17  norm          .10000E-03    .20571        .17960E-05** at limit **
  18  norm          .10000E-03    .20571       -.41597E-06** at limit **
  19  Prefactor     .10000E-03    .20571       -.86923E-06** at limit **
  20  Normalizat    .10000E-01    .25505        .57181E-05** at limit **
  21  Prefactor     .70392        1.0536        .49247E-05   -.19521E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000114653
  norm       = 17.0558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1580.75
  norm       = 0.0001
  Prefactor  = 1.7488
  Prefactor  = 0.00011021
  norm       = 0.000101358
  Prefactor  = 0.000100048
  norm       = 2.43883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.000100058
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.703918
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   657.0959     FROM HESSE     STATUS=FAILED        21 CALLS      510 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11465E-03    790.57        .95304E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.056        50.404        .24214E-02   -1.4882    
   3  Prefactor     .10000E-03    14.725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1580.7        1148.0        .27412E-03   -.75303    
   6  norm          .10000E-03    5.5740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     573.25        571.35         .0000       -1.5443    
   8  Prefactor     .11021E-03    .28750        .18326E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10136E-03    .26204        .22701E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    .21078        .45196E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4388        1.0225       -.31315E-05   -1.5396    
  12  Prefactor     .10000E-03    .20571        .14074E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571        .85291E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571        .99573E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    .22516       -.29371E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10006E-03    .23664       -.31233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .17960E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571       -.41597E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.86923E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .25505        .57181E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .70392        1.0536        .49247E-05   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.80988e-11
Minuit parameter uncertainties:
  1  0.2182
  2  50.5307
  3  4.20297e-07
  4  1.1344e-06
  5  1167.82
  6  2.31691e-06
  7  1.04818
  8  0.00342658
  9  0.00119325
  10  0.000200205
  11  1.02249
  12  3.79335e-06
  13  9.79526e-07
  14  2.17391e-08
  15  0.000182888
  16  0.000234893
  17  2.02885e-07
  18  4.67825e-08
  19  1.00745e-07
  20  2.23723e-08
  21  1.08595
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.002e-04  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:  7.039e-01  1.086e+00  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.000e-02  2.237e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 6.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83050/likelihoodResults_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.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) = 657.095894732
delta logL = -2.25547155424e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 657.095872202
delta logL = -2.41291218117e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0156       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70392       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.

 FCN=   657.0959     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9848.2        .90712E-02** at limit **
   2  Index         2.0045        8.6369        .50000        .40585E-06
   3  Normalizat    .10000E-01    .54463E-01    .32094E-01** at limit **
   4  Prefactor     .70392        .79751E-01    .42453E-01   -.11700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00448
  Normalizat = 0.01
  Prefactor  = 0.703918
 **********
 **   18 **HESSE 
 **********

 FCN=   657.0959     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1288.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0045        6.7001        .50000       -.64238    
   3  Normalizat    .10000E-01    .22852        .39820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .70392        .16339        .16043E-03   -1.0337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61963e-12
Minuit parameter uncertainties:
  1  9.47888e-05
  2  10.3296
  3  1.22884e-07
  4  0.163503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83050': 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) = 657.095872174
delta logL = 4.1545717977e-09

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  9.479e-05  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.004e+00  1.033e+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:  7.039e-01  1.635e-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.000e-02  1.229e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.031 21.638

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/83050/cmap_HighResolution_556070401_556329601_4FGL_J2200.1+2138_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-02', job_status='DONE', photon_flux_upper_limit='6.64e-07', time_completed='2021-09-27 23:35:28.090791', job_id='83050', GAL2='0.70', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632810928.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.70', dlogl='4.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1222' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:35:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 83050: <4FGL_J2200.1+2138_daily_bin1222> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1222> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:25:59 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:26:01 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:26:01 2021
Terminated at Mon Sep 27 23:35:28 2021
Results reported at Mon Sep 27 23:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1222 330.031 21.6382 556070401 556329601 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 :                                   335.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             225.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            569 sec.

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

