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


Performing analysis on: 4FGL_J2200.7-2414_daily_bin1334
RA = 330.181, Dec = -24.2421
tmin = 585100801, tmax = 585360001
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='92832', job_status='RUN', time_executed='2021-09-28 00:04:33.403383', time_epoch_executed='1632812673.4' WHERE source_name='4FGL J2200.7-2414' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92832

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92832/ft1_4FGL_J2200.7-2414_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92832/ft1_4FGL_J2200.7-2414_daily_bin1334.fits outfile=/scratch/kocevski/92832/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1334.fits ra=330.181 dec=-24.2421 rad=12.0 tmin=585100801.0 tmax=585360001.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.00
user 2.80
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.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/92832/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1334.fits evtable="EVENTS" outfile="/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/92832/ltcube_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.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/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits
.....................!
real 15.12
user 14.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/92832/ltcube_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits outfile=/scratch/kocevski/92832/expmap_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.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/92832/ltcube_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits
.....................!
real 194.81
user 190.23
sys 4.09

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
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2200.7-2414 @ 330.181 -24.2421

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits outfile=/scratch/kocevski/92832/cmap_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.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.181 yref=-24.2421 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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits outfile=/scratch/kocevski/92832/cmap_HighResolution_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.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.181 yref=-24.2421 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92832/Model_4FGL_J2200.7-2414_daily_bin1334.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits......................!
real 29.02
user 27.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits', '/scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits', expMap='/scratch/kocevski/92832/expmap_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits', expCube='/scratch/kocevski/92832/ltcube_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92832/Model_4FGL_J2200.7-2414_daily_bin1334.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.7-2414'

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.200e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/92832/ft1_filtered_4FGL_J2200.7-2414_daily_bin1334.fits
Spacecraft file(s): /scratch/kocevski/92832/ft2_4FGL_J2200.7-2414_daily_bin1334.fits
Exposure map: /scratch/kocevski/92832/expmap_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits
Exposure cube: /scratch/kocevski/92832/ltcube_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92832/Model_4FGL_J2200.7-2414_daily_bin1334.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) = 2412.06629849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    159.02       1.0000         .10000E-03   10000.    
     2 'norm      '    19.225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.386       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.102       1.0000         .10000E-03   10000.    
     5 'norm      '    .90894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.668       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    56.920       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.743       1.0000         .10000E-03   10000.    
    20 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75923E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66312       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2412.021     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2740 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     159.06        121.41       -.13644E-05    .14171E-03
   2  norm          19.222        19.296       -.22674E-07    .56130E-05
   3  Prefactor     19.390        27.408        .25336E-06    .17522E-04
   4  Prefactor     43.105        41.343       -.35925E-06    .32544E-04
   5  norm          .91684        30.543       -.19579E-05   -.23068E-04
   6  Prefactor     .10000E-03    41.969        .22872E-06** at limit **
   7  norm          .10000E-03    7.7823        .22367E-07** at limit **
   8  Prefactor     .10000E-03    23.760       -.90941E-08** at limit **
   9  Prefactor     .10000E-03    61.834        .16136E-06** at limit **
  10  norm          1.8701        9.2879        .10012E-04    .53281E-05
  11  Prefactor     75.680        63.738       -.40863E-07    .83294E-04
  12  norm          .10000E-03    .34120       -.24882E-06** at limit **
  13  Prefactor     18.754        17.492        .20020E-07    .70750E-05
  14  Prefactor     69.041        44.840        .34230E-06    .27767E-04
  15  Prefactor     .10000E-03    8.8481       -.13621E-07** at limit **
  16  Prefactor     .10000E-03    7.7544       -.12792E-06** at limit **
  17  Prefactor     .10000E-03    119.50       -.74972E-06** at limit **
  18  norm          56.952        45.394       -.56505E-06    .24197E-03
  19  Prefactor     16.761        23.542        .68185E-06    .16568E-04
  20  norm          .10000E-03    2.1241        .24177E-06** at limit **
  21  Prefactor     .10000E-03    157.70        .80156E-06** at limit **
  22  norm          .10000E-03    3.1827        .71584E-07** at limit **
  23  Normalizat    .66367        .43155       -.14909E-05    .63805E-04
  24  Prefactor     1.5104        .33164       -.61057E-06    .45082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 159.065
  norm       = 19.2223
  Prefactor  = 19.3897
  Prefactor  = 43.1049
  norm       = 0.916837
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87006
  Prefactor  = 75.6801
  norm       = 0.0001
  Prefactor  = 18.7536
  Prefactor  = 69.0413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 56.9523
  Prefactor  = 16.7613
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.663667
  Prefactor  = 1.51041
 **********
 **   18 **HESSE 
 **********

 FCN=   2412.021     FROM HESSE     STATUS=OK           389 CALLS     3129 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     159.06        122.02        .15988E-03   -1.3179    
   2  norm          19.222        19.297        .91346E-04   -1.4831    
   3  Prefactor     19.390        27.472        .90966E-04   -1.4827    
   4  Prefactor     43.105        41.341        .61063E-04   -1.4394    
   5  norm          .91684        149.49        .50138E-02   -1.5516    
   6  Prefactor     .10000E-03    42.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7827        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    61.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8701        9.5697        .14020E-02   -1.5434    
  11  Prefactor     75.680        63.850        .46160E-04   -1.3966    
  12  norm          .10000E-03    .41146        .56245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.754        17.491        .92487E-04   -1.4842    
  14  Prefactor     69.041        44.838        .48308E-04   -1.4044    
  15  Prefactor     .10000E-03    8.8490        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7662        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    119.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          56.952        45.658        .53172E-04   -1.4197    
  19  Prefactor     16.761        23.619        .97882E-04   -1.4889    
  20  norm          .10000E-03    2.1659        .69885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    158.91        .20933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.1922        .85565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66367        .50136        .40666E-03   -1.0535    
  24  Prefactor     1.5104        .39496        .22845E-03   -.77249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34888e-08
Minuit parameter uncertainties:
  1  122.217
  2  19.3037
  3  27.4894
  4  41.369
  5  23.4729
  6  0.00013396
  7  4.81135e-06
  8  1.30948e-05
  9  0.000120063
  10  8.46261
  11  63.9083
  12  1.26567e-05
  13  17.4956
  14  44.86
  15  2.22332e-06
  16  2.22766e-05
  17  2.13265e-06
  18  45.6856
  19  23.6325
  20  2.09306e-05
  21  0.000730437
  22  7.57448e-06
  23  0.504871
  24  0.395761
Done.

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

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.875e+01  1.750e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.510e+00  3.958e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  6.637e-01  5.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 330.181 -24.242
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.59e-05

TS (Fixed Index): 3.44
Ra Dec: 330.181 -24.242
Photon Flux Upper Limit: 2.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92832/likelihoodResults_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.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) = 2411.47042362
delta logL = 0.550083744757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2411.35872196
delta logL = 0.661785411068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.325       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5151       1.0000          .0000       10.000    
     3 'Normalizat'    .70357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2411.359     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      220 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.341        25.469        .53162E-05   -.37460E-04
   2  Index         1.5159        .53169        .36554E-04   -.13343E-04
   3  Normalizat    .70519        .39316       -.27368E-05   -.20266E-03
   4  Prefactor     1.4867        .32093       -.46960E-06   -.29055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3408
  Index      = 1.51587
  Normalizat = 0.705187
  Prefactor  = 1.48671
 **********
 **   18 **HESSE 
 **********

 FCN=   2411.359     FROM HESSE     STATUS=OK            29 CALLS      249 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.341        25.408        .73984E-04   -1.4624    
   2  Index         1.5159        .53051        .66214E-02   -.77096    
   3  Normalizat    .70519        .46121        .39519E-03   -1.0369    
   4  Prefactor     1.4867        .37760        .22970E-03   -.77913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8434e-10
Minuit parameter uncertainties:
  1  25.4169
  2  0.532461
  3  0.463774
  4  0.378308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92832': 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) = 2411.35871431
delta logL = 0.661793063136

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  2.934e+01  2.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.516e+00  5.325e-01  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.487e+00  3.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.052e-01  4.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 330.181 -24.242
Photon Index (Free Index): 1.52 +/- 0.53
Photon Flux (Free Index): 3.40e-08 +/- 3.58e-08
Energy Flux (Free Index): 1.02e-04 +/- 1.49e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/92832/cmap_HighResolution_585100801_585360001_4FGL_J2200.7-2414_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.02e-04', photon_flux_error='6.04e-08', dlogl='6.62e-01', energy_flux='2.78e-05', photon_flux2='3.40e-08', job_status='DONE', time_completed='2021-09-28 00:12:07.550720', photon_index_error2='0.53', photon_index2='1.52', ts='3.44', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='1.49e-04', EG='0.66', time_epoch_completed='1632813127.55', return_code='0', job_id='92832', GAL2='1.49', EG2='0.71', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='3.58e-08', ts2='4.78', photon_index='2.23' WHERE bin_id='1334' AND source_name='4FGL J2200.7-2414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 00:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 92832: <4FGL_J2200.7-2414_daily_bin1334> in cluster <slac> Done

Job <4FGL_J2200.7-2414_daily_bin1334> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 23:55:44 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 00:03:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 00:03:31 2021
Terminated at Tue Sep 28 00:12:08 2021
Results reported at Tue Sep 28 00:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.7-2414_daily_bin1334 330.181 -24.2421 585100801 585360001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.7-2414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   446.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             348.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   516 sec.
    Turnaround time :                            984 sec.

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

