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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1531
RA = 330.031, Dec = 21.6382
tmin = 636163201, tmax = 636422401
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='85753', job_status='RUN', time_executed='2021-09-27 23:37:20.115869', time_epoch_executed='1632811040.12' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85753

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85753/ft1_4FGL_J2200.1+2138_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85753/ft2_4FGL_J2200.1+2138_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85753/ft1_4FGL_J2200.1+2138_daily_bin1531.fits outfile=/scratch/kocevski/85753/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1531.fits ra=330.031 dec=21.6382 rad=12.0 tmin=636163201.0 tmax=636422401.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.66
user 3.44
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85753/ft1_filtered_4FGL_J2200.1+2138_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/85753/ft2_4FGL_J2200.1+2138_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/85753/ltcube_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.fits outfile=/scratch/kocevski/85753/expmap_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.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/85753/ltcube_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.fits
.....................!
real 191.01
user 185.89
sys 4.77

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/85753/ft1_filtered_4FGL_J2200.1+2138_daily_bin1531.fits scfile=/scratch/kocevski/85753/ft2_4FGL_J2200.1+2138_daily_bin1531.fits outfile=/scratch/kocevski/85753/cmap_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85753/ft1_filtered_4FGL_J2200.1+2138_daily_bin1531.fits scfile=/scratch/kocevski/85753/ft2_4FGL_J2200.1+2138_daily_bin1531.fits outfile=/scratch/kocevski/85753/cmap_HighResolution_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.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.61
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.648       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8614       1.0000         .10000E-03   10000.    
     6 'norm      '    .20485E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30063E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.034       1.0000         .10000E-03   10000.    
     9 'norm      '    .38472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3241       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.034       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1449       1.0000         .10000E-03   10000.    
    15 'Prefactor '    76.046       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .37147E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79101       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92807       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=   8163.035     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2382 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.648        33.644        .34128E-07    .13441E-05
   2  norm          2.9797        3.8468       -.11469E-06   -.54252E-04
   3  Prefactor     1.9347        4.1372       -.10524E-05    .34812E-04
   4  Prefactor     1.3043        9.6870        .24834E-04   -.12442E-03
   5  Prefactor     4.7822        331.00        .30792E-04    .62133E-06
   6  norm          .59479E-01    1.0538       -.70275E-06   -.33363E-03
   7  Prefactor     .10003E-03    4.2085        .19224E-05** at limit **
   8  Prefactor     25.928        28.653       -.19618E-05   -.97519E-04
   9  norm          .38575        .78713        .25491E-06   -.22468E-03
  10  Prefactor     4.4126        98.345       -.24507E-04   -.10613E-03
  11  norm          .10000E-03    .29268        .20102E-06** at limit **
  12  Prefactor     17.049        16.387        .35213E-05    .24611E-03
  13  norm          .10000E-03    4.2854       -.13179E-06** at limit **
  14  Prefactor     4.1456        6.1312        .14840E-06    .68760E-05
  15  Prefactor     76.077        95.257       -.25325E-05   -.16716E-04
  16  Prefactor     .10000E-03    4.6396       -.34865E-06** at limit **
  17  norm          .10000E-03    .47528        .55032E-07** at limit **
  18  norm          3.7005        1.9261        .33985E-07    .31654E-05
  19  Prefactor     .10000E-03    7.4292       -.15393E-06** at limit **
  20  Normalizat    .79092        .21942       -.30990E-05    .10858E-03
  21  Prefactor     .92799        .94975E-01    .21862E-06    .38824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.6477
  norm       = 2.97967
  Prefactor  = 1.93473
  Prefactor  = 1.3043
  Prefactor  = 4.78222
  norm       = 0.0594793
  Prefactor  = 0.000100035
  Prefactor  = 25.9278
  norm       = 0.385751
  Prefactor  = 4.41255
  norm       = 0.0001
  Prefactor  = 17.0489
  norm       = 0.0001
  Prefactor  = 4.14557
  Prefactor  = 76.0774
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.70049
  Prefactor  = 0.0001
  Normalizat = 0.79092
  Prefactor  = 0.927994
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.035     FROM HESSE     STATUS=OK           327 CALLS     2709 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.648        33.657        .63657E-04   -1.4448    
   2  norm          2.9797        3.8293        .19084E-03   -1.5363    
   3  Prefactor     1.9347        4.1036        .25963E-03   -1.5430    
   4  Prefactor     1.3043        9.9426        .19143E-02   -1.5480    
   5  Prefactor     4.7822        334.72        .18244E-03   -1.5271    
   6  norm          .59479E-01    24.525        .16662E-02   -1.5659    
   7  Prefactor     .10003E-03    30.407        .34519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.928        28.931        .78511E-04   -1.4689    
   9  norm          .38575        .75815        .10640E-03   -1.5584    
  10  Prefactor     4.4126        98.385        .19372E-03   -1.5288    
  11  norm          .10000E-03    .30264        .95372E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.049        16.403        .97041E-04   -1.4882    
  13  norm          .10000E-03    4.3858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1456        6.1220        .19798E-03   -1.5301    
  15  Prefactor     76.077        94.425        .46046E-04   -1.3961    
  16  Prefactor     .10000E-03    4.6664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0945        .11778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7005        1.9258        .88062E-04   -1.5323    
  19  Prefactor     .10000E-03    7.4640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .79092        .25234        .38862E-03   -1.0041    
  21  Prefactor     .92799        .11217        .16234E-03   -.95170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91596e-09
Minuit parameter uncertainties:
  1  33.6733
  2  3.82963
  3  4.10417
  4  7.20362
  5  80.4892
  6  2.4145
  7  0.00205531
  8  28.9463
  9  0.758174
  10  41.749
  11  6.3019e-06
  12  16.4072
  13  1.43694e-05
  14  6.12292
  15  94.612
  16  4.05396e-05
  17  0.000187466
  18  1.92584
  19  2.50173e-05
  20  0.252709
  21  0.112199
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.413e+00  4.175e+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.280e-01  1.122e-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.909e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/85753/likelihoodResults_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8162.93275151
delta logL = 0.101775690516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8162.92947464
delta logL = 0.105052560823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1640       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8724       1.0000          .0000       10.000    
     3 'Normalizat'    .77243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93093       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=   8162.929     FROM MIGRAD    STATUS=FAILED       101 CALLS      345 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1704        963.13        .19751E-03   -.43975E-04
   2  Index         2.8730        5.9516        .10990E-01    .68506E-03
   3  Normalizat    .77260        .24415        .39287E-03   -.20664E-03
   4  Prefactor     .93092        .10690        .16210E-03   -.25906E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8162.929     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      443 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1704        963.13        .40405E-03   -.43975E-04
   2  Index         2.8730        5.9516        .14923E-02    .68506E-03
   3  Normalizat    .77260        .24415        .12639E-03   -.20664E-03
   4  Prefactor     .93092        .10690        .34793E-04   -.25906E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8162.929     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      473 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1703        25.436        .79006E-05   -.71373E-04
   2  Index         2.8731        1.8681        .21979E-02   -.16329E-04
   3  Normalizat    .77260        .24732        .15715E-04   -.20560E-03
   4  Prefactor     .93092        .11039        .32420E-04   -.25999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17027
  Index      = 2.87305
  Normalizat = 0.772595
  Prefactor  = 0.930922
 **********
 **   18 **HESSE 
 **********

 FCN=   8162.929     FROM HESSE     STATUS=OK            25 CALLS      498 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1703        20.003        .15801E-05   -1.5300    
   2  Index         2.8731        1.6651        .87918E-04   -.43939    
   3  Normalizat    .77260        .24742        .31429E-05   -1.0109    
   4  Prefactor     .93092        .11040        .64840E-05   -.95069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26944e-10
Minuit parameter uncertainties:
  1  18.2763
  2  1.70513
  3  0.247776
  4  0.11043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85753': 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) = 8162.92947245
delta logL = 0.105054751201

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.170e+00  1.828e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.873e+00  1.705e+00  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.309e-01  1.104e-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.726e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/85753/cmap_HighResolution_636163201_636422401_4FGL_J2200.1+2138_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-09-27 23:50:37.316940', job_id='85753', GAL2='0.93', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1632811837.32', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.05e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1531' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 85753: <4FGL_J2200.1+2138_daily_bin1531> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1531> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 23:35:22 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:35: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:35:24 2021
Terminated at Mon Sep 27 23:50:38 2021
Results reported at Mon Sep 27 23:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1531 330.031 21.6382 636163201 636422401 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

