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


Performing analysis on: 4FGL_J2200.7-2414_daily_bin1094
RA = 330.181, Dec = -24.2421
tmin = 522892801, tmax = 523152001
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='92445', job_status='RUN', time_executed='2021-09-27 23:57:43.612435', time_epoch_executed='1632812263.61' WHERE source_name='4FGL J2200.7-2414' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/92445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/92445/ft1_4FGL_J2200.7-2414_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/92445/ft1_4FGL_J2200.7-2414_daily_bin1094.fits outfile=/scratch/kocevski/92445/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1094.fits ra=330.181 dec=-24.2421 rad=12.0 tmin=522892801.0 tmax=523152001.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.78
user 3.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.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/92445/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.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/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/92445/ltcube_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.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/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits
.....................!
real 15.21
user 14.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/92445/ltcube_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits outfile=/scratch/kocevski/92445/expmap_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.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/92445/ltcube_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits
.....................!
real 191.95
user 185.85
sys 5.73

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/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits outfile=/scratch/kocevski/92445/cmap_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.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.54
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits outfile=/scratch/kocevski/92445/cmap_HighResolution_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/92445/Model_4FGL_J2200.7-2414_daily_bin1094.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/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits.....................!
real 43.52
user 42.22
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits', '/scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits', expMap='/scratch/kocevski/92445/expmap_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits', expCube='/scratch/kocevski/92445/ltcube_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/92445/Model_4FGL_J2200.7-2414_daily_bin1094.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/92445/ft1_filtered_4FGL_J2200.7-2414_daily_bin1094.fits
Spacecraft file(s): /scratch/kocevski/92445/ft2_4FGL_J2200.7-2414_daily_bin1094.fits
Exposure map: /scratch/kocevski/92445/expmap_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits
Exposure cube: /scratch/kocevski/92445/ltcube_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/92445/Model_4FGL_J2200.7-2414_daily_bin1094.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) = 4529.8087481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3853       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8372       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.123       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3270       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15007       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    39.444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4286       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    16.653       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81167       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0514       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=   4529.737     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2756 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3828        12.250        .12038E-05    .22515E-03
   2  norm          7.3575        10.797        .28863E-06    .40264E-04
   3  Prefactor     9.8348        9.0554       -.10311E-06   -.10847E-03
   4  Prefactor     .10000E-03    17.012        .13875E-06** at limit **
   5  norm          .10000E-03    8.5664       -.16158E-06** at limit **
   6  Prefactor     19.140        21.083       -.27097E-05   -.50835E-03
   7  norm          5.3273        5.4109       -.91691E-06    .61095E-03
   8  Prefactor     .10000E-03    16.351       -.64265E-06** at limit **
   9  Prefactor     .10000E-03    350.98        .28238E-05** at limit **
  10  norm          8.1832        7.0404        .20087E-05   -.10935E-02
  11  Prefactor     .10100E-03    14.841        .69042E-06** at limit **
  12  norm          1.1834        .51098       -.12437E-06   -.13100E-03
  13  Prefactor     .10000E-03    4.7722       -.55505E-07** at limit **
  14  Prefactor     3.9529        16.824        .10192E-05   -.57866E-04
  15  Prefactor     .10000E-03    24.541       -.20354E-05** at limit **
  16  Prefactor     .10000E-03    5.3826        .21022E-07** at limit **
  17  Prefactor     .10000E-03    22.335       -.43666E-06** at limit **
  18  norm          39.449        33.067        .24078E-05    .26467E-03
  19  Prefactor     .10000E-03    23.870        .28599E-05** at limit **
  20  norm          2.4278        2.4414       -.22622E-07   -.32899E-04
  21  Prefactor     .10000E-03    43.479        .77413E-06** at limit **
  22  norm          16.652        9.3465       -.26151E-06   -.14924E-03
  23  Normalizat    .81171        .24107       -.63078E-06   -.10434E-03
  24  Prefactor     1.0515        .17031       -.10333E-06   -.14803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.38278
  norm       = 7.3575
  Prefactor  = 9.83484
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1401
  norm       = 5.32729
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.18316
  Prefactor  = 0.000100998
  norm       = 1.18341
  Prefactor  = 0.0001
  Prefactor  = 3.95295
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.4492
  Prefactor  = 0.000100001
  norm       = 2.42776
  Prefactor  = 0.0001
  norm       = 16.6518
  Normalizat = 0.811706
  Prefactor  = 1.05152
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.737     FROM HESSE     STATUS=OK           403 CALLS     3159 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3828        12.327        .13082E-03   -1.5095    
   2  norm          7.3575        10.829        .14786E-03   -1.5165    
   3  Prefactor     9.8348        9.0681        .12776E-03   -1.5081    
   4  Prefactor     .10000E-03    17.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.6417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.140        22.468        .91590E-04   -1.4833    
   7  norm          5.3273        5.5272        .78566E-03   -1.5246    
   8  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    356.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1832        7.6485        .70089E-03   -1.5136    
  11  Prefactor     .10100E-03    34.268        .79943E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1834        .51423        .29008E-04   -1.5490    
  13  Prefactor     .10000E-03    4.7836        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9529        16.746        .20329E-03   -1.5310    
  15  Prefactor     .10000E-03    24.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3899        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          39.449        33.533        .63821E-04   -1.4451    
  19  Prefactor     .10000E-03    24.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4278        2.4388        .10112E-03   -1.5396    
  21  Prefactor     .10000E-03    43.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          16.652        9.3676        .98145E-04   -1.4892    
  23  Normalizat    .81171        .28462        .31184E-03   -.99636    
  24  Prefactor     1.0515        .20179        .20243E-03   -.91031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2266e-09
Minuit parameter uncertainties:
  1  12.3304
  2  10.8323
  3  9.06939
  4  1.12516e-05
  5  2.04587e-05
  6  22.4781
  7  5.52773
  8  9.76754e-05
  9  0.00130468
  10  7.64945
  11  0.0117054
  12  0.514237
  13  4.22506e-06
  14  16.2798
  15  0.000353218
  16  3.82821e-07
  17  7.09965e-05
  18  33.5495
  19  0.000362375
  20  2.4389
  21  0.00011272
  22  9.36847
  23  0.285142
  24  0.201935
Done.

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

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.225e-06  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.052e+00  2.019e-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:  8.117e-01  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.181 -24.242
Photon Flux Upper Limit: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/92445/likelihoodResults_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4529.7382479
delta logL = -0.000992752326056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4529.73725509
delta logL = 6.08870323049e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2061       1.0000          .0000       10.000    
     3 'Normalizat'    .81170       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    .5170E+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=   4529.737     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10220E-03    81.104        .14573E-02** at limit **
   2  Index         2.1219        5.2979        .50000        .27046E-04
   3  Normalizat    .81171        .23171E-01    .31184E-03   -.35071E-04
   4  Prefactor     1.0515        .17027E-01    .20243E-03   -.43593E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4529.737     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      366 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10202E-03    81.104        .31999E-03** at limit **
   2  Index         2.1212        5.2979        .23538E-03    .27046E-04
   3  Normalizat    .81170        .23171E-01    .48867E-05   -.35071E-04
   4  Prefactor     1.0515        .17027E-01    .29207E-05   -.43593E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4529.737     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      418 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.903        .29146E-02** at limit **
   2  Index         1.7339        5.3094        .50000        .52910E-07
   3  Normalizat    .81171        .22878E-01    .12474E-04   -.56143E-04
   4  Prefactor     1.0515        .16813E-01    .40485E-04   -.78515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73395
  Normalizat = 0.811706
  Prefactor  = 1.05152
 **********
 **   18 **HESSE 
 **********

 FCN=   4529.737     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    411.63        .58292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7339        5.1815        .50000       -.71182    
   3  Normalizat    .81171        .52493E-01    .24947E-05   -.99636    
   4  Prefactor     1.0515        .38581E-01    .80970E-05   -.91031    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20932e-10
Minuit parameter uncertainties:
  1  5.6266e-05
  2  1118.39
  3  0.0524959
  4  0.0385825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/92445': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4529.73725313
delta logL = 2.0200459403e-06

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.627e-05  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  1.734e+00  1.118e+03  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.052e+00  3.858e-02  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:  8.117e-01  5.250e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.181 -24.242

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/92445/cmap_HighResolution_522892801_523152001_4FGL_J2200.7-2414_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-28 00:07:25.565025', job_id='92445', GAL2='1.05', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632812845.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1094' AND source_name='4FGL J2200.7-2414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 00:07:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 92445: <4FGL_J2200.7-2414_daily_bin1094> in cluster <slac> Done

Job <4FGL_J2200.7-2414_daily_bin1094> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 23:55:18 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:57:18 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:57:18 2021
Terminated at Tue Sep 28 00:07:26 2021
Results reported at Tue Sep 28 00:07:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.7-2414_daily_bin1094 330.181 -24.2421 522892801 523152001 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 :                                   568.52 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            728 sec.

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

