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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1643
RA = 330.031, Dec = 21.6382
tmin = 665193601, tmax = 665452801
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='496538', job_status='RUN', time_executed='2022-02-02 00:38:14.187265', time_epoch_executed='1643791094.19' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496538/ft1_4FGL_J2200.1+2138_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496538/ft1_4FGL_J2200.1+2138_daily_bin1643.fits outfile=/scratch/kocevski/496538/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1643.fits ra=330.031 dec=21.6382 rad=12.0 tmin=665193601.0 tmax=665452801.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.64
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.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/496538/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1643.fits evtable="EVENTS" outfile="/scratch/kocevski/496538/ft1_filtered_4FGL_J2200.1+2138_daily_bin1643.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496538/ft1_filtered_4FGL_J2200.1+2138_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496538/ltcube_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.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/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496538/ft1_filtered_4FGL_J2200.1+2138_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496538/ltcube_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.fits outfile=/scratch/kocevski/496538/expmap_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.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/496538/ltcube_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.fits
.....................!
real 191.46
user 185.24
sys 5.86

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/496538/ft1_filtered_4FGL_J2200.1+2138_daily_bin1643.fits scfile=/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits outfile=/scratch/kocevski/496538/cmap_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496538/ft1_filtered_4FGL_J2200.1+2138_daily_bin1643.fits scfile=/scratch/kocevski/496538/ft2_4FGL_J2200.1+2138_daily_bin1643.fits outfile=/scratch/kocevski/496538/cmap_HighResolution_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7512       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14631E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.639       1.0000         .10000E-03   10000.    
    11 'norm      '    .10752E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1809       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8463       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20715E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .58514       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1282       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=   8733.176     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2289 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.204        15.476        .59194E-07    .62105E-05
   2  norm          .10000E-03    1.6125       -.16008E-06** at limit **
   3  Prefactor     .10001E-03    4.1918        .14878E-05** at limit **
   4  Prefactor     18.046        9.1184        .78259E-06    .95759E-03
   5  Prefactor     .10000E-03    30.652        .24339E-06** at limit **
   6  norm          .10000E-03    .88854       -.10719E-06** at limit **
   7  Prefactor     5.7500        5.2694        .32032E-08    .13032E-04
   8  Prefactor     .10000E-03    32.877        .79483E-06** at limit **
   9  norm          .14768E-01    .28529       -.10979E-07   -.40509E-03
  10  Prefactor     50.674        44.831       -.12535E-05    .26649E-03
  11  norm          .10000E-03    .49687        .24584E-06** at limit **
  12  Prefactor     1.1610        44.615        .28240E-04    .14978E-03
  13  norm          1.9578        4.4461        .24253E-06   -.31381E-04
  14  Prefactor     .10000E-03    7.5683       -.21518E-06** at limit **
  15  Prefactor     .10000E-03    60.126       -.32653E-07** at limit **
  16  Prefactor     .10000E-03    6.5097       -.21734E-06** at limit **
  17  norm          3.8462        1.2729       -.31095E-07   -.22589E-03
  18  norm          1.9395        1.2637        .51557E-07   -.34670E-04
  19  Prefactor     .10024E-03    9.7663        .83140E-05** at limit **
  20  Normalizat    .58488        .22851       -.16996E-05    .29652E-03
  21  Prefactor     1.1284        .10337        .10660E-06    .66439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2039
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 18.0459
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.75003
  Prefactor  = 0.0001
  norm       = 0.0147676
  Prefactor  = 50.6737
  norm       = 0.0001
  Prefactor  = 1.16102
  norm       = 1.9578
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.84624
  norm       = 1.93949
  Prefactor  = 0.00010024
  Normalizat = 0.584878
  Prefactor  = 1.12838
 **********
 **   18 **HESSE 
 **********

 FCN=   8733.176     FROM HESSE     STATUS=OK           323 CALLS     2612 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.204        15.477        .11466E-03   -1.5009    
   2  norm          .10000E-03    1.6379        .11590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    25.902        .35185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.046        8.8543        .94289E-04   -1.4858    
   5  Prefactor     .10000E-03    30.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.9170        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7500        5.2686        .16748E-03   -1.5228    
   8  Prefactor     .10000E-03    33.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .14768E-01    1.6323        .96893E-03   -1.5684    
  10  Prefactor     50.674        44.902        .56356E-04   -1.4283    
  11  norm          .10000E-03    1.0245        .12579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1610        48.399        .21032E-02   -1.5492    
  13  norm          1.9578        4.4192        .28433E-03   -1.5428    
  14  Prefactor     .10000E-03    7.6189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    60.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8462        1.2709        .58443E-04   -1.5316    
  18  norm          1.9395        1.2614        .82328E-04   -1.5429    
  19  Prefactor     .10024E-03    48.236        .43147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .58488        .24303        .45538E-03   -1.0863    
  21  Prefactor     1.1284        .11286        .15909E-03   -.88565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99311e-08
Minuit parameter uncertainties:
  1  15.4818
  2  1.56236e-05
  3  0.000764393
  4  8.85496
  5  0.000136715
  6  2.24595e-05
  7  5.26906
  8  0.000235207
  9  0.309473
  10  44.9316
  11  9.15682e-06
  12  15.0046
  13  4.41989
  14  4.55244e-05
  15  0.000667078
  16  5.09619e-05
  17  1.2709
  18  1.26144
  19  0.00681302
  20  0.243472
  21  0.112884
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.067e+01  4.493e+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:  1.128e+00  1.129e-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:  5.849e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.82e-05

TS (Fixed Index): 2.60
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496538/likelihoodResults_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.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): 0
logL (Free Index) = 8733.00878813
delta logL = 0.166980853468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8733.00479404
delta logL = 0.170974951139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.871       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5708       1.0000          .0000       10.000    
     3 'Normalizat'    .60088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1274       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=   8733.005     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.871        64.190        .54150E-04    .41905E-04
   2  Index         1.5708        .95852        .10235E-01    .33707E-04
   3  Normalizat    .60085        .23491        .44953E-03   -.18968E-04
   4  Prefactor     1.1274        .11186        .15916E-03   -.55002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8708
  Index      = 1.57078
  Normalizat = 0.60085
  Prefactor  = 1.12744
 **********
 **   18 **HESSE 
 **********

 FCN=   8733.005     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.871        66.057        .10830E-04   -1.4225    
   2  Index         1.5708        .98579        .40938E-03   -.75576    
   3  Normalizat    .60085        .23495        .17981E-04   -1.0795    
   4  Prefactor     1.1274        .11190        .63662E-05   -.88594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51458e-10
Minuit parameter uncertainties:
  1  66.1453
  2  0.998263
  3  0.235345
  4  0.111927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496538': 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) = 8733.00479402
delta logL = 0.170974965282

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.487e+01  6.615e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.571e+00  9.983e-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:  1.127e+00  1.119e-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:  6.008e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 330.031 21.638
Photon Index (Free Index): 1.57 +/- 1.00
Photon Flux (Free Index): 1.41e-08 +/- 3.45e-08
Energy Flux (Free Index): 3.53e-05 +/- 5.32e-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/496538/cmap_HighResolution_665193601_665452801_4FGL_J2200.1+2138_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='3.53e-05', photon_flux_error='2.92e-08', dlogl='1.71e-01', energy_flux='2.05e-05', photon_flux2='1.41e-08', job_status='DONE', time_completed='2022-02-02 00:51:41.668119', photon_index_error2='1.00', photon_index2='1.57', ts='2.60', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='5.32e-05', EG='0.58', time_epoch_completed='1643791901.67', return_code='0', job_id='496538', GAL2='1.13', EG2='0.60', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='3.45e-08', ts2='2.90', photon_index='2.04' WHERE bin_id='1643' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:51:41 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 496538: <4FGL_J2200.1+2138_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:49 2022
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:51 2022
Terminated at Wed Feb  2 00:51:42 2022
Results reported at Wed Feb  2 00:51:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1643 330.031 21.6382 665193601 665452801 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 :                                   809.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

