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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1010
RA = 330.031, Dec = 21.6382
tmin = 501120001, tmax = 501379201
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='82738', job_status='RUN', time_executed='2021-09-27 23:28:33.737179', time_epoch_executed='1632810513.74' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82738

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82738/ft1_4FGL_J2200.1+2138_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82738/ft2_4FGL_J2200.1+2138_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82738/ft1_4FGL_J2200.1+2138_daily_bin1010.fits outfile=/scratch/kocevski/82738/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1010.fits ra=330.031 dec=21.6382 rad=12.0 tmin=501120001.0 tmax=501379201.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 4.13
user 3.27
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82738/ft2_4FGL_J2200.1+2138_daily_bin1010.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/82738/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/82738/ft1_filtered_4FGL_J2200.1+2138_daily_bin1010.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.70
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82738/ft1_filtered_4FGL_J2200.1+2138_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/82738/ft2_4FGL_J2200.1+2138_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/82738/ltcube_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.fits outfile=/scratch/kocevski/82738/expmap_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.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/82738/ltcube_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.fits
.....................!
real 191.62
user 186.08
sys 5.14

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/82738/ft1_filtered_4FGL_J2200.1+2138_daily_bin1010.fits scfile=/scratch/kocevski/82738/ft2_4FGL_J2200.1+2138_daily_bin1010.fits outfile=/scratch/kocevski/82738/cmap_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.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.59
user 0.36
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82738/ft1_filtered_4FGL_J2200.1+2138_daily_bin1010.fits scfile=/scratch/kocevski/82738/ft2_4FGL_J2200.1+2138_daily_bin1010.fits outfile=/scratch/kocevski/82738/cmap_HighResolution_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=330.031 yref=21.6382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.913       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75285E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .96942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.775       1.0000         .10000E-03   10000.    
    11 'norm      '    .62191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.196       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1199       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3452       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68121       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=   8628.178     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2216 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.905        39.474       -.78651E-06   -.14720E-03
   2  norm          3.3924        2.9107        .13935E-07    .32587E-04
   3  Prefactor     .10000E-03    4.8268       -.28052E-06** at limit **
   4  Prefactor     .10000E-03    3.9545        .87477E-07** at limit **
   5  Prefactor     .10000E-03    30.004        .21095E-05** at limit **
   6  norm          8.3419        2.7191       -.51479E-07    .51948E-04
   7  Prefactor     8.2943        5.9132        .15367E-07   -.32078E-04
   8  Prefactor     .10000E-03    31.499       -.21821E-05** at limit **
   9  norm          .96938        .74664        .69286E-07    .27270E-04
  10  Prefactor     98.775        54.561       -.75771E-07    .18058E-04
  11  norm          .62086        .94499        .14629E-06   -.27502E-03
  12  Prefactor     .10000E-03    4.8739       -.49254E-07** at limit **
  13  norm          4.7637        4.5405        .27412E-05   -.76362E-03
  14  Prefactor     23.042        19.171       -.16685E-06   -.12016E-04
  15  Prefactor     61.420        74.165       -.61698E-05   -.27650E-03
  16  Prefactor     24.196        13.345       -.28256E-06   -.23993E-04
  17  norm          2.1199        1.1099        .43481E-07    .33059E-04
  18  norm          1.7647        1.2141       -.26123E-07    .40268E-04
  19  Prefactor     .10000E-03    4.4088       -.44748E-08** at limit **
  20  Normalizat    1.3453        .22936        .52006E-06   -.29155E-04
  21  Prefactor     .68123        .94691E-01   -.56969E-06    .86179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.9049
  norm       = 3.39239
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.34191
  Prefactor  = 8.29429
  Prefactor  = 0.000100002
  norm       = 0.969377
  Prefactor  = 98.7755
  norm       = 0.620856
  Prefactor  = 0.0001
  norm       = 4.76369
  Prefactor  = 23.0419
  Prefactor  = 61.4197
  Prefactor  = 24.1956
  norm       = 2.11994
  norm       = 1.76474
  Prefactor  = 0.0001
  Normalizat = 1.34529
  Prefactor  = 0.681228
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.178     FROM HESSE     STATUS=OK           325 CALLS     2541 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.905        39.638        .50591E-04   -1.4120    
   2  norm          3.3924        2.9115        .14152E-03   -1.5340    
   3  Prefactor     .10000E-03    17.512        .39339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9792        .18028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3419        2.7186        .83672E-04   -1.5130    
   7  Prefactor     8.2943        5.9099        .13920E-03   -1.5132    
   8  Prefactor     .10000E-03    32.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .96938        .71292        .67448E-03   -1.5511    
  10  Prefactor     98.775        54.559        .40448E-04   -1.3717    
  11  norm          .62086        .86681        .10539E-02   -1.5550    
  12  Prefactor     .10000E-03    4.8803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7637        4.6182        .92174E-03   -1.5271    
  14  Prefactor     23.042        19.192        .83445E-04   -1.4748    
  15  Prefactor     61.420        78.146        .25589E-03   -1.4139    
  16  Prefactor     24.196        13.414        .81434E-04   -1.4724    
  17  norm          2.1199        1.1096        .68155E-04   -1.5417    
  18  norm          1.7647        1.2260        .82828E-04   -1.5442    
  19  Prefactor     .10000E-03    4.4184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3453        .26777        .33612E-03   -.82224    
  21  Prefactor     .68123        .11125        .19668E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26415e-09
Minuit parameter uncertainties:
  1  39.6551
  2  2.91166
  3  0.000337058
  4  3.15766e-06
  5  0.000497867
  6  2.71862
  7  5.91027
  8  0.000496712
  9  0.712924
  10  54.5868
  11  0.866825
  12  7.74817e-06
  13  4.61856
  14  19.1967
  15  78.2774
  16  13.416
  17  1.10961
  18  1.226
  19  3.15726e-06
  20  0.268049
  21  0.111289
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  9.878e+01  5.459e+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:  6.812e-01  1.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.345e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.34
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 6.42e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 2.21e-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) = 8628.17821282
delta logL = 4.70861959911e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8628.17820983
delta logL = 7.7034910646e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.930       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0421       1.0000          .0000       10.000    
     3 'Normalizat'    1.3453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68126       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=   8628.178     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.939        71.875        .40417E-04    .11251E-04
   2  Index         2.0422        .45577        .61513E-02    .78578E-03
   3  Normalizat    1.3455        .25714        .33610E-03   -.51212E-04
   4  Prefactor     .68120        .11005        .19669E-03   -.74448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.9389
  Index      = 2.04223
  Normalizat = 1.34545
  Prefactor  = 0.681197
 **********
 **   18 **HESSE 
 **********

 FCN=   8628.178     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.939        68.827        .80833E-05   -1.3715    
   2  Index         2.0422        .43611        .12303E-02   -.63298    
   3  Normalizat    1.3455        .25698        .13444E-04   -.82220    
   4  Prefactor     .68120        .11009        .78674E-05   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51212e-12
Minuit parameter uncertainties:
  1  68.8827
  2  0.436961
  3  0.25723
  4  0.110126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82738': 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) = 8628.17820958
delta logL = 7.95484811533e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  6.812e-01  1.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.345e+00  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.31
Ra Dec: 330.031 21.638
Photon Index (Free Index): 2.04 +/- 0.44
Photon Flux (Free Index): 6.41e-08 +/- 5.00e-08
Energy Flux (Free Index): 4.00e-05 +/- 2.89e-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/82738/cmap_HighResolution_501120001_501379201_4FGL_J2200.1+2138_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.42e-08', energy_flux2='4.00e-05', photon_flux_error='3.55e-08', dlogl='7.95e-06', energy_flux='3.99e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-27 23:41:03.673024', photon_index_error2='0.44', photon_index2='2.04', ts='11.34', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='2.89e-05', EG='1.35', time_epoch_completed='1632811263.67', return_code='0', job_id='82738', GAL2='0.68', EG2='1.35', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='5.00e-08', ts2='11.31', photon_index='2.04' WHERE bin_id='1010' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 82738: <4FGL_J2200.1+2138_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1010 330.031 21.6382 501120001 501379201 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 :                                   744.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

