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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1165
RA = 330.031, Dec = 21.6382
tmin = 541296001, tmax = 541555201
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='82987', job_status='RUN', time_executed='2021-09-27 23:27:03.677351', time_epoch_executed='1632810423.68' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82987/ft1_4FGL_J2200.1+2138_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82987/ft1_4FGL_J2200.1+2138_daily_bin1165.fits outfile=/scratch/kocevski/82987/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1165.fits ra=330.031 dec=21.6382 rad=12.0 tmin=541296001.0 tmax=541555201.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.96
user 3.52
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82987/ft1_filtered_4FGL_J2200.1+2138_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/82987/ltcube_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.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/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits
.....................!
real 15.54
user 14.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82987/ft1_filtered_4FGL_J2200.1+2138_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/82987/ltcube_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.fits outfile=/scratch/kocevski/82987/expmap_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.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/82987/ltcube_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.fits
.....................!
real 192.77
user 186.43
sys 4.84

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/82987/ft1_filtered_4FGL_J2200.1+2138_daily_bin1165.fits scfile=/scratch/kocevski/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits outfile=/scratch/kocevski/82987/cmap_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82987/ft1_filtered_4FGL_J2200.1+2138_daily_bin1165.fits scfile=/scratch/kocevski/82987/ft2_4FGL_J2200.1+2138_daily_bin1165.fits outfile=/scratch/kocevski/82987/cmap_HighResolution_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7714       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.556       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7279       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.063       1.0000         .10000E-03   10000.    
     9 'norm      '    .40262       1.0000         .10000E-03   10000.    
    10 'Prefactor '    108.46       1.0000         .10000E-03   10000.    
    11 'norm      '    .83349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2348       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0980       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5336       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60937       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99339       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=   7645.564     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2281 TOTAL
                     EDM=   .71E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9096       -.40768E-07** at limit **
   2  norm          2.7715        2.8018       -.17650E-06   -.22654E-05
   3  Prefactor     2.2867        6.6902        .49452E-05   -.14101E-04
   4  Prefactor     .10000E-03    4.6752        .24514E-06** at limit **
   5  Prefactor     20.742        202.49       -.36985E-04   -.42103E-06
   6  norm          5.7284        3.1592        .43370E-07    .73242E-05
   7  Prefactor     4.2559        6.4354        .13569E-05   -.14310E-04
   8  Prefactor     68.026        43.729        .17680E-05    .92552E-05
   9  norm          .40271        .62079        .41829E-07    .18897E-03
  10  Prefactor     108.46        68.396        .31248E-06   -.64416E-06
  11  norm          .83335        .81188       -.40400E-07   -.26008E-03
  12  Prefactor     .10000E-03    10.723       -.77055E-07** at limit **
  13  norm          .10000E-03    3.1897       -.78738E-07** at limit **
  14  Prefactor     .10000E-03    15.760       -.14616E-06** at limit **
  15  Prefactor     .10000E-03    360.38       -.24704E-05** at limit **
  16  Prefactor     8.2339        9.0824       -.42726E-07    .15528E-05
  17  norm          8.0978        1.8618        .75692E-08    .16130E-04
  18  norm          2.5337        1.6197        .47974E-08   -.51462E-05
  19  Prefactor     .10000E-03    6.2488       -.42530E-07** at limit **
  20  Normalizat    .60957        .23749        .20906E-05    .90963E-05
  21  Prefactor     .99328        .10536       -.97549E-06   -.14032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.77151
  Prefactor  = 2.28672
  Prefactor  = 0.0001
  Prefactor  = 20.7417
  norm       = 5.72838
  Prefactor  = 4.25594
  Prefactor  = 68.0259
  norm       = 0.402706
  Prefactor  = 108.455
  norm       = 0.833347
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.23392
  norm       = 8.09784
  norm       = 2.53368
  Prefactor  = 0.0001
  Normalizat = 0.609571
  Prefactor  = 0.993283
 **********
 **   18 **HESSE 
 **********

 FCN=   7645.564     FROM HESSE     STATUS=OK           323 CALLS     2604 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7715        2.8054        .71374E-03   -1.5375    
   3  Prefactor     2.2867        6.7018        .13578E-02   -1.5406    
   4  Prefactor     .10000E-03    4.7131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.742        203.24        .88343E-04   -1.4797    
   6  norm          5.7284        3.1493        .10235E-03   -1.5229    
   7  Prefactor     4.2559        6.4067        .97664E-03   -1.5295    
   8  Prefactor     68.026        43.638        .48652E-04   -1.4057    
   9  norm          .40271        .51180        .81908E-03   -1.5581    
  10  Prefactor     108.46        68.335        .38618E-04   -1.3621    
  11  norm          .83335        .77041        .74625E-03   -1.5525    
  12  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2910        .30491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    363.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2339        9.0857        .13971E-03   -1.5134    
  17  norm          8.0978        1.8607        .54820E-04   -1.5139    
  18  norm          2.5337        1.6237        .86692E-04   -1.5390    
  19  Prefactor     .10000E-03    6.3158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .60957        .26037        .44807E-03   -1.0758    
  21  Prefactor     .99328        .11729        .16495E-03   -.92954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5657e-10
Minuit parameter uncertainties:
  1  1.14629e-06
  2  2.80549
  3  6.70401
  4  6.89723e-06
  5  130.436
  6  3.14937
  7  6.40772
  8  43.6586
  9  0.511808
  10  68.3847
  11  0.77042
  12  1.0063e-05
  13  3.53763e-06
  14  1.19107e-05
  15  0.00014281
  16  9.08724
  17  1.86067
  18  1.62371
  19  2.23452e-06
  20  0.260894
  21  0.117323
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.085e+02  6.838e+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.933e-01  1.173e-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:  6.096e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 4.39e-05 +/- 2.77e-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) = 7643.27285398
delta logL = 2.29065053542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7643.18080974
delta logL = 2.38269477154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4260       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6590       1.0000          .0000       10.000    
     3 'Normalizat'    .42079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0515       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=   7643.181     FROM MIGRAD    STATUS=FAILED        90 CALLS      319 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4221        32.068        .68199E-04   -.15286E-03
   2  Index         3.6594        1.9111        .22632E-02    .11689E-02
   3  Normalizat    .42072        .24557        .53247E-03    .45874E-03
   4  Prefactor     1.0516        .11204        .16062E-03    .69064E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7643.181     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      400 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4221        32.068        .36190E-03   -.15286E-03
   2  Index         3.6594        1.9111        .13026E-02    .11689E-02
   3  Normalizat    .42072        .24557        .43104E-03    .45874E-03
   4  Prefactor     1.0516        .11204        .13553E-03    .69064E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7643.181     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      429 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4217        56.078        .27280E-05   -.26839E-03
   2  Index         3.6594        2.4770        .45265E-03    .49599E-04
   3  Normalizat    .42071        .28285        .21299E-04    .20667E-03
   4  Prefactor     1.0516        .12983        .32125E-04    .21977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.42168
  Index      = 3.65938
  Normalizat = 0.420712
  Prefactor  = 1.05157
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.181     FROM HESSE     STATUS=OK            25 CALLS      454 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4217        14.501        .54559E-06   -1.5287    
   2  Index         3.6594        1.1848        .90530E-04   -.27144    
   3  Normalizat    .42071        .26259        .42598E-05   -1.1624    
   4  Prefactor     1.0516        .11978        .64250E-05   -.91030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36589e-10
Minuit parameter uncertainties:
  1  14.5126
  2  1.19706
  3  0.263366
  4  0.119812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82987': 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) = 7643.18080932
delta logL = 2.38269519294

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  4.422e+00  1.451e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  3.659e+00  1.197e+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:  1.052e+00  1.198e-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:  4.207e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.43
Ra Dec: 330.031 21.638
Photon Index (Free Index): 3.66 +/- 1.20
Photon Flux (Free Index): 1.96e-07 +/- 8.14e-08
Energy Flux (Free Index): 3.13e-05 +/- 1.35e-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/82987/cmap_HighResolution_541296001_541555201_4FGL_J2200.1+2138_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='3.13e-05', photon_flux_error='4.44e-08', dlogl='2.38e+00', energy_flux='4.39e-05', photon_flux2='1.96e-07', job_status='DONE', time_completed='2021-09-27 23:40:41.563430', photon_index_error2='1.20', photon_index2='3.66', ts='4.44', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.61', time_epoch_completed='1632811241.56', return_code='0', job_id='82987', GAL2='1.05', EG2='0.42', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='8.14e-08', ts2='10.43', photon_index='2.04' WHERE bin_id='1165' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:40:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 82987: <4FGL_J2200.1+2138_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:25:51 2021
Job was executed on host(s) <bullet0142>, 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:40:41 2021
Results reported at Mon Sep 27 23:40:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1165 330.031 21.6382 541296001 541555201 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 :                                   708.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

