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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1162
RA = 330.031, Dec = 21.6382
tmin = 540518401, tmax = 540777601
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='82982', job_status='RUN', time_executed='2021-09-27 23:26:00.898419', time_epoch_executed='1632810360.9' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82982/ft1_4FGL_J2200.1+2138_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82982/ft2_4FGL_J2200.1+2138_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82982/ft1_4FGL_J2200.1+2138_daily_bin1162.fits outfile=/scratch/kocevski/82982/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1162.fits ra=330.031 dec=21.6382 rad=12.0 tmin=540518401.0 tmax=540777601.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.71
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82982/ft1_filtered_4FGL_J2200.1+2138_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/82982/ft2_4FGL_J2200.1+2138_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/82982/ltcube_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.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/82982/ft2_4FGL_J2200.1+2138_daily_bin1162.fits
.....................!
real 12.82
user 12.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82982/ft1_filtered_4FGL_J2200.1+2138_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/82982/ft2_4FGL_J2200.1+2138_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/82982/ltcube_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.fits outfile=/scratch/kocevski/82982/expmap_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.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/82982/ltcube_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.fits
.....................!
real 190.57
user 185.54
sys 4.66

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82982/ft1_filtered_4FGL_J2200.1+2138_daily_bin1162.fits scfile=/scratch/kocevski/82982/ft2_4FGL_J2200.1+2138_daily_bin1162.fits outfile=/scratch/kocevski/82982/cmap_HighResolution_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0427       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6919       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64230       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .71820E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21657       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.957       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8279       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5378       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81408       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0785       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=   8540.034     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2262 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.741        .82855E-05** at limit **
   2  norm          2.7076        4.2251        .12845E-05   -.86469E-04
   3  Prefactor     .10000E-03    6.2588        .47992E-07** at limit **
   4  Prefactor     1.0427        8.2886        .33531E-05   -.12962E-02
   5  Prefactor     .10000E-03    98.278       -.98396E-04** at limit **
   6  norm          6.6909        3.0270       -.10027E-06    .19041E-03
   7  Prefactor     .64215        2.4285       -.15261E-05   -.24563E-02
   8  Prefactor     .10000E-03    17.811       -.61269E-05** at limit **
   9  norm          .70384E-01    .37059        .13998E-06   -.59450E-03
  10  Prefactor     .10000E-03    23.437       -.21713E-05** at limit **
  11  norm          .10000E-03    .36058        .36525E-08** at limit **
  12  Prefactor     .10000E-03    4.5410        .63883E-07** at limit **
  13  norm          .21626        3.3552       -.69788E-07    .49199E-04
  14  Prefactor     15.957        15.035       -.16205E-07    .19951E-05
  15  Prefactor     .10000E-03    77.574        .78881E-04** at limit **
  16  Prefactor     .10000E-03    11.571       -.31467E-05** at limit **
  17  norm          5.8278        1.6163       -.11124E-06   -.42153E-03
  18  norm          3.5379        1.7280       -.58282E-08   -.87327E-04
  19  Prefactor     .10000E-03    11.738        .40343E-05** at limit **
  20  Normalizat    .81405        .23651       -.59109E-06   -.76420E-04
  21  Prefactor     1.0785        .10479        .12721E-06   -.16921E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.70762
  Prefactor  = 0.0001
  Prefactor  = 1.04269
  Prefactor  = 0.0001
  norm       = 6.69089
  Prefactor  = 0.642154
  Prefactor  = 0.0001
  norm       = 0.0703844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.216261
  Prefactor  = 15.9569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82781
  norm       = 3.53792
  Prefactor  = 0.0001
  Normalizat = 0.814045
  Prefactor  = 1.07854
 **********
 **   18 **HESSE 
 **********

 FCN=   8540.034     FROM HESSE     STATUS=OK           329 CALLS     2591 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7076        4.2122        .22784E-03   -1.5379    
   3  Prefactor     .10000E-03    6.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0427        4.0591        .95109E-01   -1.5504    
   5  Prefactor     .10000E-03    98.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6909        3.0324        .10163E-03   -1.5191    
   7  Prefactor     .64215        5.9662        .21769E-02   -1.5548    
   8  Prefactor     .10000E-03    17.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .70384E-01    1.6874        .10664E-02   -1.5655    
  10  Prefactor     .10000E-03    23.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .63833        .10688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .21626        15.908        .32468E-02   -1.5615    
  14  Prefactor     15.957        15.036        .10026E-03   -1.4909    
  15  Prefactor     .10000E-03    77.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8278        1.6166        .59571E-04   -1.5225    
  18  norm          3.5379        1.7292        .82803E-04   -1.5332    
  19  Prefactor     .10000E-03    11.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81405        .26528        .42251E-03   -.99550    
  21  Prefactor     1.0785        .12026        .16932E-03   -.90155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46157e-08
Minuit parameter uncertainties:
  1  2.70941e-05
  2  4.21265
  3  3.61493e-05
  4  4.06021
  5  4.04287e-05
  6  3.03244
  7  3.9149
  8  2.04129e-05
  9  0.688776
  10  4.12192e-06
  11  2.28703e-06
  12  2.32929e-07
  13  3.70978
  14  15.0399
  15  2.86252e-05
  16  2.24347e-05
  17  1.61664
  18  1.72925
  19  1.3138e-05
  20  0.265702
  21  0.120293
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.122e-06  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.079e+00  1.203e-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:  8.140e-01  2.657e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82982/likelihoodResults_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.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) = 8540.03444039
delta logL = -0.000202881936275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8540.03423816
delta logL = -6.57739292365e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2554       1.0000          .0000       10.000    
     3 'Normalizat'    .81404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0785       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=   8540.034     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10123E-03    88.783        .18142E-02** at limit **
   2  Index         2.2003        7.8903        .50000        .13932E-04
   3  Normalizat    .81405        .12091E-01    .42251E-03    .37132E-05
   4  Prefactor     1.0785        .55469E-02    .16932E-03   -.14368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101226
  Index      = 2.20032
  Normalizat = 0.814046
  Prefactor  = 1.07854
 **********
 **   18 **HESSE 
 **********

 FCN=   8540.034     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10123E-03    404.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2003        5.5683        .50000       -.59431    
   3  Normalizat    .81405        .26393E-01    .16900E-04   -.99550    
   4  Prefactor     1.0785        .12107E-01    .67730E-05   -.90155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04592e-08
Minuit parameter uncertainties:
  1  0.0448249
  2  363.352
  3  0.0263933
  4  0.0121075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82982': 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) = 8540.03423794
delta logL = -4.35344190919e-07

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.012e-04  4.482e-02  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.200e+00  3.634e+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.079e+00  1.211e-02  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:  8.140e-01  2.639e-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/82982/cmap_HighResolution_540518401_540777601_4FGL_J2200.1+2138_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.49e-08', time_completed='2021-09-27 23:39:46.202044', job_id='82982', GAL2='1.08', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632811186.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-4.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1162' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 82982: <4FGL_J2200.1+2138_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1162 330.031 21.6382 540518401 540777601 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 :                                   804.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

