/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 125 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1257
RA = 330.031, Dec = 21.6382
tmin = 565142401, tmax = 565401601
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='83094', job_status='RUN', time_executed='2021-09-27 23:28:18.013343', time_epoch_executed='1632810498.01' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83094/ft1_4FGL_J2200.1+2138_daily_bin1257.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83094/ft1_4FGL_J2200.1+2138_daily_bin1257.fits outfile=/scratch/kocevski/83094/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1257.fits ra=330.031 dec=21.6382 rad=12.0 tmin=565142401.0 tmax=565401601.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.51
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.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/83094/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1257.fits evtable="EVENTS" outfile="/scratch/kocevski/83094/ft1_filtered_4FGL_J2200.1+2138_daily_bin1257.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/83094/ft1_filtered_4FGL_J2200.1+2138_daily_bin1257.fits" evtable="EVENTS" scfile=/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits sctable="SC_DATA" outfile=/scratch/kocevski/83094/ltcube_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.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/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits
.....................!
real 12.41
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83094/ft1_filtered_4FGL_J2200.1+2138_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits sctable="SC_DATA" expcube=/scratch/kocevski/83094/ltcube_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.fits outfile=/scratch/kocevski/83094/expmap_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.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/83094/ltcube_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.fits
.....................!
real 190.24
user 185.14
sys 4.64

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/83094/ft1_filtered_4FGL_J2200.1+2138_daily_bin1257.fits scfile=/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits outfile=/scratch/kocevski/83094/cmap_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83094/ft1_filtered_4FGL_J2200.1+2138_daily_bin1257.fits scfile=/scratch/kocevski/83094/ft2_4FGL_J2200.1+2138_daily_bin1257.fits outfile=/scratch/kocevski/83094/cmap_HighResolution_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.142       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
     5 'Prefactor '    95.270       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4466       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.298       1.0000         .10000E-03   10000.    
     9 'norm      '    .47044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.291       1.0000         .10000E-03   10000.    
    11 'norm      '    .79311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.752       1.0000         .10000E-03   10000.    
    13 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0975       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8139       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .32382       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1438       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8151.702     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2219 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.137        30.275         .0000        .14192E-02
   2  norm          4.1102        3.5478         .0000        .91999E-04
   3  Prefactor     .10000E-03    4.8052         .0000    ** at limit **
   4  Prefactor     10.208        8.2790         .0000        .54683E-03
   5  Prefactor     95.270        139.45         .0000        .24436E-03
   6  norm          4.4466        2.4580         .0000        .18219E-03
   7  Prefactor     2.5498        4.9901         .0000        .67989E-03
   8  Prefactor     17.302        28.885         .0000       -.49749E-03
   9  norm          .47038        .50882         .0000        .94385E-03
  10  Prefactor     39.293        35.351         .0000       -.99585E-03
  11  norm          .79262        1.0365         .0000        .14543E-02
  12  Prefactor     33.747        19.202         .0000       -.19554E-02
  13  norm          .10000E-03    2.1880         .0000    ** at limit **
  14  Prefactor     .10000E-03    5.7953         .0000    ** at limit **
  15  Prefactor     .10000E-03    105.07         .0000    ** at limit **
  16  Prefactor     1.0952        25.845         .0000        .12420E-01
  17  norm          1.8136        1.0732         .0000       -.55993E-04
  18  norm          1.3132        1.1290         .0000       -.15699E-03
  19  Prefactor     .10000E-03    9.2587         .0000    ** at limit **
  20  Normalizat    .32382        .31613         .0000        .76043E-04
  21  Prefactor     1.1438        .13705         .0000       -.38332E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1373
  norm       = 4.11021
  Prefactor  = 0.0001
  Prefactor  = 10.2079
  Prefactor  = 95.2695
  norm       = 4.44663
  Prefactor  = 2.54978
  Prefactor  = 17.3016
  norm       = 0.47038
  Prefactor  = 39.2934
  norm       = 0.792616
  Prefactor  = 33.7471
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0952
  norm       = 1.81365
  norm       = 1.31318
  Prefactor  = 0.0001
  Normalizat = 0.323823
  Prefactor  = 1.14382
 **********
 **   18 **HESSE 
 **********

 FCN=   8151.702     FROM HESSE     STATUS=OK           323 CALLS     2542 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.137        30.252        .96735E-04   -1.4880    
   2  norm          4.1102        3.5439        .15181E-03   -1.5302    
   3  Prefactor     .10000E-03    4.8377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.208        8.2283        .12541E-03   -1.5069    
   5  Prefactor     95.270        139.49        .41178E-04   -1.3753    
   6  norm          4.4466        2.4454        .96844E-04   -1.5286    
   7  Prefactor     2.5498        4.9769        .25570E-03   -1.5389    
   8  Prefactor     17.302        28.679        .96298E-04   -1.4876    
   9  norm          .47038        .47092        .64780E-03   -1.5571    
  10  Prefactor     39.293        35.331        .63944E-04   -1.4453    
  11  norm          .79262        .95640        .97165E-03   -1.5530    
  12  Prefactor     33.747        18.945        .68976E-04   -1.4545    
  13  norm          .10000E-03    5.6045        .25840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    105.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0952        24.728        .22723E-02   -1.5499    
  17  norm          1.8136        1.0630        .31016E-04   -1.5439    
  18  norm          1.3132        1.1338        .86728E-04   -1.5479    
  19  Prefactor     .10000E-03    9.3344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .32382        .25986        .59998E-03   -1.2144    
  21  Prefactor     1.1438        .11984        .15585E-03   -.88078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83529e-08
Minuit parameter uncertainties:
  1  30.2786
  2  3.54409
  3  2.83334e-06
  4  8.22924
  5  139.976
  6  2.44544
  7  4.9777
  8  28.7021
  9  0.470922
  10  35.3493
  11  0.95642
  12  18.9479
  13  4.40565e-05
  14  4.42538e-05
  15  0.000162696
  16  10.4126
  17  1.06302
  18  1.13384
  19  1.20982e-05
  20  0.260834
  21  0.119873
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  3.929e+01  3.535e+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.144e+00  1.199e-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:  3.238e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.36
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.43e-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) = 8150.3873111
delta logL = 1.31507882375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8150.36575308
delta logL = 1.3366368399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.985       1.0000         .10000E-03   10000.    
     2 'Index     '    .97847       1.0000          .0000       10.000    
     3 'Normalizat'    .33108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1470       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=   8150.366     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      273 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.914        46.471        .71981E-04   -.19269E-04
   2  Index         .97761        .72474        .13824E-01   -.17854E-03
   3  Normalizat    .33148        .24442        .59322E-03    .70237E-04
   4  Prefactor     1.1467        .11641        .15568E-03    .37343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.914
  Index      = 0.977612
  Normalizat = 0.331476
  Prefactor  = 1.14674
 **********
 **   18 **HESSE 
 **********

 FCN=   8150.366     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.914        48.821        .28792E-05   -1.4595    
   2  Index         .97761        .76086        .27649E-02   -.93480    
   3  Normalizat    .33148        .24423        .23729E-04   -1.2101    
   4  Prefactor     1.1467        .11632        .31135E-04   -.87986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98609e-11
Minuit parameter uncertainties:
  1  48.8838
  2  0.769438
  3  0.245015
  4  0.116349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83094': 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) = 8150.36575032
delta logL = 1.33663960386

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  3.091e+01  4.888e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  9.776e-01  7.694e-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.147e+00  1.163e-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:  3.315e-01  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.01
Ra Dec: 330.031 21.638
Photon Index (Free Index): 0.98 +/- 0.77
Photon Flux (Free Index): 5.22e-09 +/- 7.22e-09
Energy Flux (Free Index): 7.98e-05 +/- 1.07e-04

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/83094/cmap_HighResolution_565142401_565401601_4FGL_J2200.1+2138_daily_bin1257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='7.98e-05', photon_flux_error='2.30e-08', dlogl='1.34e+00', energy_flux='1.59e-05', photon_flux2='5.22e-09', job_status='DONE', time_completed='2021-09-27 23:39:56.640628', photon_index_error2='0.77', photon_index2='0.98', ts='7.36', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='0.32', time_epoch_completed='1632811196.64', return_code='0', job_id='83094', GAL2='1.15', EG2='0.33', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.22e-09', ts2='10.01', photon_index='2.04' WHERE bin_id='1257' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:39:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 83094: <4FGL_J2200.1+2138_daily_bin1257> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1257> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:26:03 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:26:04 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:04 2021
Terminated at Mon Sep 27 23:39:57 2021
Results reported at Mon Sep 27 23:39:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1257 330.031 21.6382 565142401 565401601 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 :                                   694.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

