/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 36 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 = 7261
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin446
RA = 330.031, Dec = 21.6382
tmin = 354931201, tmax = 355190401
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='80692', job_status='RUN', time_executed='2021-09-27 23:21:21.096164', time_epoch_executed='1632810081.1' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80692/ft1_4FGL_J2200.1+2138_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80692/ft2_4FGL_J2200.1+2138_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80692/ft1_4FGL_J2200.1+2138_daily_bin446.fits outfile=/scratch/kocevski/80692/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin446.fits ra=330.031 dec=21.6382 rad=12.0 tmin=354931201.0 tmax=355190401.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.59
user 3.14
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80692/ft1_filtered_4FGL_J2200.1+2138_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/80692/ft2_4FGL_J2200.1+2138_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/80692/ltcube_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.fits outfile=/scratch/kocevski/80692/expmap_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.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/80692/ltcube_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.fits
.....................!
real 192.50
user 186.92
sys 5.25

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/80692/ft1_filtered_4FGL_J2200.1+2138_daily_bin446.fits scfile=/scratch/kocevski/80692/ft2_4FGL_J2200.1+2138_daily_bin446.fits outfile=/scratch/kocevski/80692/cmap_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80692/ft1_filtered_4FGL_J2200.1+2138_daily_bin446.fits scfile=/scratch/kocevski/80692/ft2_4FGL_J2200.1+2138_daily_bin446.fits outfile=/scratch/kocevski/80692/cmap_HighResolution_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8619       1.0000         .10000E-03   10000.    
     2 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5925       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9653       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.858       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.581       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.335       1.0000         .10000E-03   10000.    
    11 'norm      '    .18048       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3187       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41678       1.0000         .10000E-03   10000.    
    18 'norm      '    .55614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4578       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0234       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90492       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=   9713.944     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2229 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8491        27.622       -.26249E-05   -.17778E-05
   2  norm          .10000E-03    5.0832        .74783E-07** at limit **
   3  Prefactor     9.5915        11.955        .10437E-05    .82168E-04
   4  Prefactor     3.9692        11.845       -.47161E-05   -.47841E-04
   5  Prefactor     .10000E-03    26.952       -.90024E-07** at limit **
   6  norm          13.859        3.7524        .28667E-06    .13988E-03
   7  Prefactor     .10000E-03    5.6290       -.47136E-08** at limit **
   8  Prefactor     29.577        33.280       -.17813E-05    .61770E-05
   9  norm          4.2313        1.1972       -.20670E-07   -.69406E-05
  10  Prefactor     98.332        53.210       -.18215E-05   -.11914E-05
  11  norm          .18041        .65805        .11856E-07   -.27614E-03
  12  Prefactor     9.3131        12.660        .18249E-05    .94081E-05
  13  norm          .10000E-03    2.5189       -.11453E-07** at limit **
  14  Prefactor     .10000E-03    6.4273       -.19076E-07** at limit **
  15  Prefactor     .10000E-03    141.42       -.24313E-06** at limit **
  16  Prefactor     .10000E-03    16.670       -.15049E-06** at limit **
  17  norm          .41679        .71481       -.35308E-07   -.20133E-04
  18  norm          .55656        1.3338       -.12548E-06   -.22355E-03
  19  Prefactor     2.4564        3.3216        .30250E-06   -.44800E-03
  20  Normalizat    1.0231        .23157        .97111E-06    .24808E-04
  21  Prefactor     .90505        .97644E-01   -.10587E-07    .85936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.84909
  norm       = 0.0001
  Prefactor  = 9.59153
  Prefactor  = 3.96918
  Prefactor  = 0.0001
  norm       = 13.8586
  Prefactor  = 0.0001
  Prefactor  = 29.5772
  norm       = 4.23128
  Prefactor  = 98.3319
  norm       = 0.180414
  Prefactor  = 9.31309
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.416791
  norm       = 0.556557
  Prefactor  = 2.45644
  Normalizat = 1.02307
  Prefactor  = 0.90505
 **********
 **   18 **HESSE 
 **********

 FCN=   9713.944     FROM HESSE     STATUS=OK           321 CALLS     2550 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8491        27.623        .15316E-03   -1.5184    
   2  norm          .10000E-03    5.2679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5915        11.831        .12939E-03   -1.5088    
   4  Prefactor     3.9692        11.809        .20256E-03   -1.5309    
   5  Prefactor     .10000E-03    26.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.859        3.7538        .87893E-04   -1.4963    
   7  Prefactor     .10000E-03    5.7293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.577        33.216        .73665E-04   -1.4620    
   9  norm          4.2313        1.1983        .54952E-04   -1.5297    
  10  Prefactor     98.332        53.164        .40538E-04   -1.3721    
  11  norm          .18041        .67206        .14774E-03   -1.5623    
  12  Prefactor     9.3131        12.633        .13128E-03   -1.5098    
  13  norm          .10000E-03    2.5683        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    141.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41679        .71442        .43705E-04   -1.5579    
  18  norm          .55656        1.2975        .16577E-02   -1.5559    
  19  Prefactor     2.4564        9.5864        .13044E-02   -1.5394    
  20  Normalizat    1.0231        .27163        .39806E-03   -.92261    
  21  Prefactor     .90505        .11584        .18406E-03   -.95965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8282e-08
Minuit parameter uncertainties:
  1  27.5314
  2  1.94843e-05
  3  11.8343
  4  11.8159
  5  3.27592e-06
  6  3.75383
  7  4.10122e-06
  8  33.2367
  9  1.1983
  10  53.1895
  11  0.672092
  12  12.6367
  13  2.25949e-06
  14  2.67109e-06
  15  0.000171373
  16  4.20668e-05
  17  0.714431
  18  1.29761
  19  9.59241
  20  0.272002
  21  0.115873
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.051e-01  1.159e-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.023e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.56
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 6.39e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 2.15e-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) = 9713.46928535
delta logL = 0.475080776212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9713.45920686
delta logL = 0.485159273112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.92       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5780       1.0000          .0000       10.000    
     3 'Normalizat'    1.0548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90144       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9713.459     FROM MIGRAD    STATUS=FAILED        85 CALLS      301 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.93        72.278        .19097E-03   -.10762E-02
   2  Index         1.5780        .50428        .84102E-02   -.77896E-03
   3  Normalizat    1.0548        .25936        .39275E-03    .34816E-03
   4  Prefactor     .90143        .11419        .18448E-03    .77333E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9713.459     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      369 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.93        72.278        .26083E-03   -1.3598    
   2  Index         1.5780        .50428        .60026E-03   -.75377    
   3  Normalizat    1.0548        .25936        .28647E-03   -.91216    
   4  Prefactor     .90143        .11419        .12222E-03   -.96091    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9713.459     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      395 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.93        72.982        .38193E-04   -.65129E-04
   2  Index         1.5781        .50898        .33641E-03   -.25481E-04
   3  Normalizat    1.0548        .25951        .15710E-04   -.18236E-04
   4  Prefactor     .90143        .11428        .36896E-04   -.28841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.933
  Index      = 1.57811
  Normalizat = 1.0548
  Prefactor  = 0.901431
 **********
 **   18 **HESSE 
 **********

 FCN=   9713.459     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.93        72.998        .76386E-05   -1.3598    
   2  Index         1.5781        .50914        .67282E-04   -.75375    
   3  Normalizat    1.0548        .25971        .31420E-05   -.91217    
   4  Prefactor     .90143        .11436        .73791E-05   -.96091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22291e-11
Minuit parameter uncertainties:
  1  73.0571
  2  0.510815
  3  0.260025
  4  0.114393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80692': 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) = 9713.4592068
delta logL = 0.485159331136

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.014e-01  1.144e-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.055e+00  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.41
Ra Dec: 330.031 21.638
Photon Index (Free Index): 1.58 +/- 0.51
Photon Flux (Free Index): 2.89e-08 +/- 3.46e-08
Energy Flux (Free Index): 7.04e-05 +/- 6.52e-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/80692/cmap_HighResolution_354931201_355190401_4FGL_J2200.1+2138_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.39e-08', energy_flux2='7.04e-05', photon_flux_error='3.46e-08', dlogl='4.85e-01', energy_flux='3.98e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-27 23:34:28.853449', photon_index_error2='0.51', photon_index2='1.58', ts='14.56', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='6.52e-05', EG='1.02', time_epoch_completed='1632810868.85', return_code='0', job_id='80692', GAL2='0.90', EG2='1.05', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='3.46e-08', ts2='15.41', photon_index='2.04' WHERE bin_id='446' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:34:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 80692: <4FGL_J2200.1+2138_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin446 330.031 21.6382 354931201 355190401 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 :                                   782.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

