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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin901
RA = 334.823, Dec = -3.7102
tmin = 472867201, tmax = 473126401
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='259766', job_status='RUN', time_executed='2021-09-28 09:10:54.425745', time_epoch_executed='1632845454.43' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259766

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259766/ft1_4FGL_J2219.2-0342_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259766/ft1_4FGL_J2219.2-0342_daily_bin901.fits outfile=/scratch/kocevski/259766/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin901.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=472867201.0 tmax=473126401.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.93
user 3.70
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.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/259766/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin901.fits evtable="EVENTS" outfile="/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/259766/ltcube_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.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/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits
.....................!
real 11.96
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/259766/ltcube_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits outfile=/scratch/kocevski/259766/expmap_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.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/259766/ltcube_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits
.....................!
real 192.34
user 187.17
sys 4.75

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

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits outfile=/scratch/kocevski/259766/cmap_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.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=334.823 yref=-3.7102 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits outfile=/scratch/kocevski/259766/cmap_HighResolution_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.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=334.823 yref=-3.7102 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259766/Model_4FGL_J2219.2-0342_daily_bin901.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/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits.....................!
real 54.06
user 52.66
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits', '/scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits', expMap='/scratch/kocevski/259766/expmap_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits', expCube='/scratch/kocevski/259766/ltcube_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259766/Model_4FGL_J2219.2-0342_daily_bin901.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/259766/ft1_filtered_4FGL_J2219.2-0342_daily_bin901.fits
Spacecraft file(s): /scratch/kocevski/259766/ft2_4FGL_J2219.2-0342_daily_bin901.fits
Exposure map: /scratch/kocevski/259766/expmap_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits
Exposure cube: /scratch/kocevski/259766/ltcube_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259766/Model_4FGL_J2219.2-0342_daily_bin901.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) = 5191.03639576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.793       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5664       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9611       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.732       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1695       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4622       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3905       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5191.033     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2736 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86447       -.10738E-06** at limit **
   2  Prefactor     12.870        30.915        .25733E-05    .18640E-04
   3  Prefactor     74.795        53.802       -.21539E-06    .58753E-06
   4  Prefactor     .10000E-03    42.394       -.71480E-05** at limit **
   5  Prefactor     .10000E-03    6.4478       -.32194E-06** at limit **
   6  Prefactor     8.5673        8.5004        .68758E-07   -.28245E-04
   7  Prefactor     2.0111        5.9277        .67947E-05   -.12238E-04
   8  Prefactor     .10000E-03    7.2188        .10281E-05** at limit **
   9  Prefactor     .10000E-03    4.6812        .22143E-07** at limit **
  10  Prefactor     9.6369        12.830       -.12451E-06   -.53280E-06
  11  Prefactor     .10000E-03    14.065        .54183E-06** at limit **
  12  Prefactor     92.446        37.898       -.69320E-07   -.58142E-05
  13  Prefactor     1.9611        25.187        .69467E-06   -.70886E-05
  14  Prefactor     48.730        66.851        .36220E-06   -.69083E-05
  15  Prefactor     9.1688        6.3995       -.49956E-07   -.11429E-03
  16  norm          .10000E-03    1.1326       -.92099E-08** at limit **
  17  Prefactor     .10000E-03    52.304        .84907E-05** at limit **
  18  norm          1.4859        1.0647        .10873E-07    .95044E-06
  19  Prefactor     .10000E-03    8.4365       -.81974E-06** at limit **
  20  norm          .10000E-03    .59732        .51280E-08** at limit **
  21  Prefactor     3.4627        10.340        .29361E-06    .55811E-05
  22  norm          2.3904        27.280        .83105E-06   -.11692E-05
  23  Normalizat    1.0606        .23483        .91699E-07    .79017E-05
  24  Prefactor     .84124        .13617       -.71824E-06    .25433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.8699
  Prefactor  = 74.7947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.56728
  Prefactor  = 2.01107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.63688
  Prefactor  = 0.0001
  Prefactor  = 92.4461
  Prefactor  = 1.96113
  Prefactor  = 48.7296
  Prefactor  = 9.16882
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.46266
  norm       = 2.39036
  Normalizat = 1.06062
  Prefactor  = 0.841243
 **********
 **   18 **HESSE 
 **********

 FCN=   5191.033     FROM HESSE     STATUS=OK           395 CALLS     3131 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86848        .65397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.870        30.974        .11160E-03   -1.4990    
   3  Prefactor     74.795        53.795        .46427E-04   -1.3976    
   4  Prefactor     .10000E-03    42.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5868        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5673        8.5189        .13696E-03   -1.5122    
   7  Prefactor     2.0111        5.9290        .14594E-02   -1.5424    
   8  Prefactor     .10000E-03    7.2316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6834        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.6369        12.825        .12908E-03   -1.5087    
  11  Prefactor     .10000E-03    14.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     92.446        37.895        .41797E-04   -1.3782    
  13  Prefactor     1.9611        24.056        .29621E-03   -1.5428    
  14  Prefactor     48.730        66.889        .57443E-04   -1.4311    
  15  Prefactor     9.1688        6.2782        .13109E-03   -1.5102    
  16  norm          .10000E-03    1.1353        .74860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4859        1.0651        .35189E-04   -1.5464    
  19  Prefactor     .10000E-03    8.4475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .60404        .54350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4627        10.319        .21734E-03   -1.5336    
  22  norm          2.3904        27.403        .26489E-03   -1.5399    
  23  Normalizat    1.0606        .28113        .29206E-03   -.91027    
  24  Prefactor     .84124        .16302        .19492E-03   -.98226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42112e-10
Minuit parameter uncertainties:
  1  4.92882e-06
  2  31.0126
  3  53.8296
  4  2.05062e-05
  5  1.11971e-05
  6  8.52009
  7  5.93074
  8  4.42706e-06
  9  1.34093e-07
  10  12.8291
  11  7.20754e-06
  12  37.9053
  13  13.7435
  14  66.9922
  15  6.27865
  16  3.81072e-07
  17  4.85018e-05
  18  1.06507
  19  5.72065e-07
  20  3.67716e-07
  21  10.3241
  22  16.1958
  23  0.281526
  24  0.163116
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.961e+00  1.374e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.412e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.061e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259766/likelihoodResults_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.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) = 5191.00051935
delta logL = 0.0323937465919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5190.99860152
delta logL = 0.0343115715541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4541       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2602       1.0000          .0000       10.000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+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=   5190.999     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      322 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4466        15.382        .19080E-03   -.35751E-06
   2  Index         2.2602        1.2337        .15736E-01   -.23270E-05
   3  Normalizat    1.0633        .26748        .29171E-03    .28099E-04
   4  Prefactor     .83724        .16259        .19530E-03   -.65487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44663
  Index      = 2.26025
  Normalizat = 1.06326
  Prefactor  = 0.837244
 **********
 **   18 **HESSE 
 **********

 FCN=   5190.999     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4466        15.228        .76318E-05   -1.5286    
   2  Index         2.2602        1.2225        .62945E-03   -.57991    
   3  Normalizat    1.0633        .26774        .11669E-04   -.90940    
   4  Prefactor     .83724        .16267        .78121E-05   -.98370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73223e-11
Minuit parameter uncertainties:
  1  15.2411
  2  1.24057
  3  0.268077
  4  0.162762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259766': 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) = 5190.99860095
delta logL = 0.0343121399173

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.447e+00  1.524e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.260e+00  1.241e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.372e-01  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.063e+00  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 334.823 -3.710

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/259766/cmap_HighResolution_472867201_473126401_4FGL_J2219.2-0342_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-28 09:20:56.337062', job_id='259766', GAL2='0.84', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632846056.34', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='3.43e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='901' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 259766: <4FGL_J2219.2-0342_daily_bin901> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin901> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:42 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:10:44 2021
Terminated at Tue Sep 28 09:20:57 2021
Results reported at Tue Sep 28 09:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin901 334.823 -3.7102 472867201 473126401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            615 sec.

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

