/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 9 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2202.7+4216_daily_bin49
RA = 330.695, Dec = 42.2821
tmin = 252028801, tmax = 252288001
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='131322', job_status='RUN', time_executed='2021-09-28 02:00:35.941672', time_epoch_executed='1632819635.94' WHERE source_name='4FGL J2202.7+4216' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131322

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131322/ft1_4FGL_J2202.7+4216_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131322/ft1_4FGL_J2202.7+4216_daily_bin49.fits outfile=/scratch/kocevski/131322/ft1_filteredMKT_4FGL_J2202.7+4216_daily_bin49.fits ra=330.695 dec=42.2821 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.45
user 1.25
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.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/131322/ft1_filteredMKT_4FGL_J2202.7+4216_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/131322/ltcube_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.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/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits
.....................!
real 16.67
user 16.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/131322/ltcube_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits outfile=/scratch/kocevski/131322/expmap_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.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/131322/ltcube_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits
.....................!
real 192.30
user 186.33
sys 5.59

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 Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
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.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 189 point sources and 7 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 J2202.7+4216 @ 330.695 42.2821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits outfile=/scratch/kocevski/131322/cmap_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.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.695 yref=42.2821 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.60
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits outfile=/scratch/kocevski/131322/cmap_HighResolution_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.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.695 yref=42.2821 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/131322/Model_4FGL_J2202.7+4216_daily_bin49.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 CTB 109
adding source Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits.....................!
real 300.72
user 298.26
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits', '/scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits', expMap='/scratch/kocevski/131322/expmap_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits', expCube='/scratch/kocevski/131322/ltcube_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/131322/Model_4FGL_J2202.7+4216_daily_bin49.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2202.7+4216'

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  4.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  2.143e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/131322/ft1_filtered_4FGL_J2202.7+4216_daily_bin49.fits
Spacecraft file(s): /scratch/kocevski/131322/ft2_4FGL_J2202.7+4216_daily_bin49.fits
Exposure map: /scratch/kocevski/131322/expmap_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits
Exposure cube: /scratch/kocevski/131322/ltcube_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/131322/Model_4FGL_J2202.7+4216_daily_bin49.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) = 14461.3760401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5881       1.0000         .10000E-03   10000.    
     5 'norm      '    .82646       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .75925E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1081       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.6354       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .88138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14461.33     FROM MIGRAD    STATUS=CONVERGED    287 CALLS     1161 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9786       -.25390E-07** at limit **
   2  Prefactor     .10000E-03    2.6863        .12604E-06** at limit **
   3  Prefactor     .10000E-03    3.9935       -.25483E-08** at limit **
   4  norm          1.5877        1.0338        .49647E-07   -.12520E-03
   5  norm          .82607        1.8942        .10211E-05   -.42704E-03
   6  norm          1.1306        .69861        .10685E-07   -.16968E-03
   7  Prefactor     13.457        15.023        .76701E-06    .11496E-03
   8  Prefactor     .10000E-03    8.0361        .18701E-06** at limit **
   9  Prefactor     .10000E-03    194.77       -.21873E-05** at limit **
  10  Prefactor     .10000E-03    1.6494        .23953E-07** at limit **
  11  norm          .10000E-03    .98327        .25872E-07** at limit **
  12  Prefactor     .10000E-03    9.6481       -.10116E-06** at limit **
  13  Prefactor     6.1034        4.4371        .63276E-06    .48212E-03
  14  Normalizat    1.6357        .24849       -.48725E-06   -.52245E-04
  15  Prefactor     .88138        .41891E-01   -.73822E-07   -.21992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58767
  norm       = 0.826072
  norm       = 1.13059
  Prefactor  = 13.457
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10344
  Normalizat = 1.63573
  Prefactor  = 0.88138
 **********
 **   18 **HESSE 
 **********

 FCN=   14461.33     FROM HESSE     STATUS=OK           178 CALLS     1339 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.079        .37608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5877        1.0304        .95126E-04   -1.5456    
   5  norm          .82607        1.9909        .25643E-03   -1.5526    
   6  norm          1.1306        .68806        .75646E-04   -1.5495    
   7  Prefactor     13.457        15.249        .10918E-03   -1.4974    
   8  Prefactor     .10000E-03    8.0538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    199.03        .20933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6531        .15081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .98595        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1034        4.6758        .16245E-03   -1.5214    
  14  Normalizat    1.6357        .25972        .57194E-03   -.74033    
  15  Prefactor     .88138        .44124E-01    .12723E-03   -.96795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13711e-10
Minuit parameter uncertainties:
  1  9.83107e-07
  2  9.14316e-05
  3  9.50289e-07
  4  1.03037
  5  1.9911
  6  0.688062
  7  15.2538
  8  5.25046e-07
  9  0.00069831
  10  4.50362e-07
  11  6.97245e-07
  12  1.42815e-05
  13  4.67604
  14  0.259931
  15  0.0441254
Done.

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

Extracting fit parameters...

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  1.131e+00  6.881e-01  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  2.143e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.814e-01  4.413e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.636e+00  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.13
Ra Dec: 330.695 42.282
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 2.07e-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) = 14461.2319378
delta logL = 0.102938628625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14461.2308653
delta logL = 0.104011210529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1321       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9219       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+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=   14461.23     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      248 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1313        .70647        .77681E-04    .46832E-05
   2  alpha         1.9217        .47764        .18365E-01   -.26863E-04
   3  Normalizat    1.6474        .25672        .57040E-03    .25113E-05
   4  Prefactor     .88096        .43842E-01    .12726E-03    .26086E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13133
  alpha      = 1.92166
  Normalizat = 1.64736
  Prefactor  = 0.880956
 **********
 **   18 **HESSE 
 **********

 FCN=   14461.23     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1313        .71038        .31072E-05   -1.5495    
   2  alpha         1.9217        .48028        .73460E-03   -.23345    
   3  Normalizat    1.6474        .25678        .22816E-04   -.73718    
   4  Prefactor     .88096        .43852E-01    .50903E-05   -.96810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2878e-11
Minuit parameter uncertainties:
  1  0.710383
  2  0.483461
  3  0.256982
  4  0.0438541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131322': 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) = 14461.2308641
delta logL = 0.104012422016

Extracting fit parameters...

4FGL J2202.7+4216
   Spectrum: LogParabola
365         norm:  1.131e+00  7.104e-01  1.000e-04  1.000e+04 ( 1.000e-11)
366        alpha:  1.922e+00  4.835e-01  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  6.022e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  7.962e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.810e-01  4.385e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.647e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 330.695 42.282
Photon Index (Free Index): 1.92 +/- 0.48
Photon Flux (Free Index): 5.85e-08 +/- 4.97e-08
Energy Flux (Free Index): 4.01e-05 +/- 3.00e-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/131322/cmap_HighResolution_252028801_252288001_4FGL_J2202.7+4216_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='4.01e-05', photon_flux_error='4.52e-08', dlogl='1.04e-01', energy_flux='3.40e-05', photon_flux2='5.85e-08', job_status='DONE', time_completed='2021-09-28 02:16:41.133028', photon_index_error2='0.48', photon_index2='1.92', ts='6.13', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='1.64', time_epoch_completed='1632820601.13', return_code='0', job_id='131322', GAL2='0.88', EG2='1.65', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='4.97e-08', ts2='6.34', photon_index='2.14' WHERE bin_id='49' AND source_name='4FGL J2202.7+4216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 02:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 131322: <4FGL_J2202.7+4216_daily_bin49> in cluster <slac> Done

Job <4FGL_J2202.7+4216_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:00:17 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:00:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:00:18 2021
Terminated at Tue Sep 28 02:16:41 2021
Results reported at Tue Sep 28 02:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2202.7+4216_daily_bin49 330.695 42.2821 252028801 252288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2202.7+4216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   962.53 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             415.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            984 sec.

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

