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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1625
RA = 330.031, Dec = 21.6382
tmin = 660528001, tmax = 660787201
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='107309', job_status='RUN', time_executed='2021-12-10 00:43:55.308266', time_epoch_executed='1639125835.31' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107309

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107309/ft1_4FGL_J2200.1+2138_daily_bin1625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107309/ft2_4FGL_J2200.1+2138_daily_bin1625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107309/ft1_4FGL_J2200.1+2138_daily_bin1625.fits outfile=/scratch/kocevski/107309/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1625.fits ra=330.031 dec=21.6382 rad=12.0 tmin=660528001.0 tmax=660787201.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.65
user 3.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107309/ft1_filtered_4FGL_J2200.1+2138_daily_bin1625.fits" evtable="EVENTS" scfile=/scratch/kocevski/107309/ft2_4FGL_J2200.1+2138_daily_bin1625.fits sctable="SC_DATA" outfile=/scratch/kocevski/107309/ltcube_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.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/107309/ft2_4FGL_J2200.1+2138_daily_bin1625.fits
.....................!
real 11.98
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107309/ft1_filtered_4FGL_J2200.1+2138_daily_bin1625.fits evtable="EVENTS" scfile=/scratch/kocevski/107309/ft2_4FGL_J2200.1+2138_daily_bin1625.fits sctable="SC_DATA" expcube=/scratch/kocevski/107309/ltcube_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.fits outfile=/scratch/kocevski/107309/expmap_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.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/107309/ltcube_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.fits
.....................!
real 192.12
user 187.47
sys 4.35

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/107309/ft1_filtered_4FGL_J2200.1+2138_daily_bin1625.fits scfile=/scratch/kocevski/107309/ft2_4FGL_J2200.1+2138_daily_bin1625.fits outfile=/scratch/kocevski/107309/cmap_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.620       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8950       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .19672E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0773       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .27860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
    17 'norm      '    5.8283       1.0000         .10000E-03   10000.    
    18 'norm      '    .53220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.856       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .78998       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0664       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=   8879.379     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1923 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.622        14.684        .11709E-06   -.24838E-06
   2  norm          2.8911        3.4334        .12971E-06   -.55067E-03
   3  Prefactor     .10000E-03    3.4206       -.12833E-06** at limit **
   4  Prefactor     .10000E-03    5.0056        .96963E-06** at limit **
   5  Prefactor     .10000E-03    39.812       -.17813E-04** at limit **
   6  norm          .10000E-03    1.2403       -.53460E-07** at limit **
   7  Prefactor     8.0770        6.8642       -.21181E-06   -.10452E-03
   8  Prefactor     .10000E-03    32.663        .15460E-04** at limit **
   9  norm          .10000E-03    .38264       -.28163E-08** at limit **
  10  Prefactor     .10000E-03    12.154        .11316E-04** at limit **
  11  norm          .27856        .65094       -.37704E-06   -.22256E-02
  12  Prefactor     .10000E-03    13.034       -.13246E-04** at limit **
  13  norm          .10000E-03    5.2694       -.11707E-05** at limit **
  14  Prefactor     .10000E-03    2.4402       -.82619E-08** at limit **
  15  Prefactor     .10000E-03    25.365        .20015E-05** at limit **
  16  Prefactor     13.812        10.550       -.35426E-07    .12330E-03
  17  norm          5.8280        1.5184       -.10410E-07    .72065E-04
  18  norm          .53229        1.1716       -.38558E-06   -.23494E-02
  19  Prefactor     17.854        11.836        .12013E-06    .52192E-04
  20  Normalizat    .79027        .22252        .27365E-06    .74531E-04
  21  Prefactor     1.0664        .10015        .83546E-07    .17100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6218
  norm       = 2.89114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.07697
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.278556
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8118
  norm       = 5.82797
  norm       = 0.532288
  Prefactor  = 17.8541
  Normalizat = 0.790275
  Prefactor  = 1.06638
 **********
 **   18 **HESSE 
 **********

 FCN=   8879.379     FROM HESSE     STATUS=OK           321 CALLS     2244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.622        14.681        .11276E-03   -1.4997    
   2  norm          2.8911        3.4195        .18354E-03   -1.5368    
   3  Prefactor     .10000E-03    3.4381        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9705        .20121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0770        6.8538        .14107E-03   -1.5139    
   8  Prefactor     .10000E-03    32.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .69317        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27856        .68886        .11080E-02   -1.5602    
  12  Prefactor     .10000E-03    12.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4409        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.812        10.578        .10776E-03   -1.4965    
  17  norm          5.8280        1.5172        .57046E-04   -1.5225    
  18  norm          .53229        .91623        .14735E-02   -1.5562    
  19  Prefactor     17.854        11.699        .94783E-04   -1.4863    
  20  Normalizat    .79027        .25194        .40364E-03   -1.0043    
  21  Prefactor     1.0664        .11584        .16426E-03   -.90548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53209e-09
Minuit parameter uncertainties:
  1  14.6847
  2  3.41975
  3  1.33887e-06
  4  5.9304e-06
  5  4.86421e-06
  6  1.55897e-05
  7  6.85449
  8  8.78134e-05
  9  5.84239e-07
  10  6.36218e-07
  11  0.688883
  12  3.16041e-05
  13  1.56677e-05
  14  7.64044e-08
  15  2.21445e-06
  16  10.5798
  17  1.51723
  18  0.916258
  19  11.7009
  20  0.252308
  21  0.115863
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.362e-07  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.066e+00  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:  7.903e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 4.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107309/likelihoodResults_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8879.3791315
delta logL = -0.000395328139348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8879.3787361
delta logL = 7.16354406904e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0227       1.0000          .0000       10.000    
     3 'Normalizat'    .79028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0664       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=   8879.379     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10578E-03    6.0616        .18142E-01** at limit **
   2  Index         1.7894        9.1001        .50000        .78645E-05
   3  Normalizat    .79027        .33919E-02    .40364E-03   -.13519E-05
   4  Prefactor     1.0664        .15936E-02    .16426E-03   -.49833E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105778
  Index      = 1.7894
  Normalizat = 0.790275
  Prefactor  = 1.06638
 **********
 **   18 **HESSE 
 **********

 FCN=   8879.379     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10578E-03    159.24        .35012E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7894        5.2727        .50000       -.69726    
   3  Normalizat    .79027        .17618E-01    .16146E-04   -1.0043    
   4  Prefactor     1.0664        .82773E-02    .65703E-05   -.90548    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34116e-08
Minuit parameter uncertainties:
  1  0.0608289
  2  946.474
  3  0.0176185
  4  0.00827729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107309': 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): 102
logL (Free Index) = 8879.37873567
delta logL = 4.96771463077e-07

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.058e-04  6.083e-02  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  1.789e+00  9.465e+02  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.066e+00  8.277e-03  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:  7.903e-01  1.762e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/107309/cmap_HighResolution_660528001_660787201_4FGL_J2200.1+2138_daily_bin1625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2021-12-10 00:56:52.295767', job_id='107309', GAL2='1.07', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1639126612.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1625' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 10 00:56:52 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 107309: <4FGL_J2200.1+2138_daily_bin1625> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1625> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 10 00:40:23 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 10 00:40:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 10 00:40:24 2021
Terminated at Fri Dec 10 00:56:53 2021
Results reported at Fri Dec 10 00:56:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1625 330.031 21.6382 660528001 660787201 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 :                                   779.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

