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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin875
RA = 334.823, Dec = -3.7102
tmin = 466128001, tmax = 466387201
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='259728', job_status='RUN', time_executed='2021-09-28 09:13:34.320576', time_epoch_executed='1632845614.32' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259728/ft1_4FGL_J2219.2-0342_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259728/ft1_4FGL_J2219.2-0342_daily_bin875.fits outfile=/scratch/kocevski/259728/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin875.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=466128001.0 tmax=466387201.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.52
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.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/259728/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin875.fits evtable="EVENTS" outfile="/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/259728/ltcube_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.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/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits
.....................!
real 12.01
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/259728/ltcube_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits outfile=/scratch/kocevski/259728/expmap_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.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/259728/ltcube_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits
.....................!
real 189.56
user 185.00
sys 4.25

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/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits outfile=/scratch/kocevski/259728/cmap_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits outfile=/scratch/kocevski/259728/cmap_HighResolution_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259728/Model_4FGL_J2219.2-0342_daily_bin875.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/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits.....................!
real 75.04
user 73.72
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits', '/scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits', expMap='/scratch/kocevski/259728/expmap_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits', expCube='/scratch/kocevski/259728/ltcube_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259728/Model_4FGL_J2219.2-0342_daily_bin875.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/259728/ft1_filtered_4FGL_J2219.2-0342_daily_bin875.fits
Spacecraft file(s): /scratch/kocevski/259728/ft2_4FGL_J2219.2-0342_daily_bin875.fits
Exposure map: /scratch/kocevski/259728/expmap_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits
Exposure cube: /scratch/kocevski/259728/ltcube_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259728/Model_4FGL_J2219.2-0342_daily_bin875.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) = 8267.66147003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60389       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5991       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.336       1.0000         .10000E-03   10000.    
    17 'Prefactor '    160.66       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.870       1.0000         .10000E-03   10000.    
    20 'norm      '    .11467E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    41.966       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0314       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85773       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=   8267.653     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2747 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60381        1.5815        .40045E-08   -.16327E-03
   2  Prefactor     .10000E-03    7.4586        .18023E-05** at limit **
   3  Prefactor     22.799        29.504        .12652E-05   -.12739E-03
   4  Prefactor     .10000E-03    17.103        .12921E-05** at limit **
   5  Prefactor     .10000E-03    1.5944       -.35298E-06** at limit **
   6  Prefactor     .10000E-03    3.5510       -.23019E-06** at limit **
   7  Prefactor     1.1125        .68048        .13044E-07   -.23539E-03
   8  Prefactor     .10000E-03    6.2682        .87631E-07** at limit **
   9  Prefactor     .10000E-03    7.3454       -.17130E-05** at limit **
  10  Prefactor     4.6022        14.864       -.76541E-06    .66275E-04
  11  Prefactor     20.140        11.055       -.13012E-06    .63723E-04
  12  Prefactor     .10000E-03    32.907        .38411E-05** at limit **
  13  Prefactor     7.6363        10.083       -.83754E-07    .55847E-04
  14  Prefactor     .10000E-03    25.993       -.20766E-05** at limit **
  15  Prefactor     .10000E-03    2.2282       -.32358E-06** at limit **
  16  norm          12.336        4.0799       -.44246E-07    .18651E-03
  17  Prefactor     160.66        85.436       -.11025E-05    .87672E-04
  18  norm          .10000E-03    .25215        .18781E-06** at limit **
  19  Prefactor     27.824        14.719       -.31288E-05   -.84553E-04
  20  norm          .10000E-03    .63334        .82490E-06** at limit **
  21  Prefactor     .10000E-03    3.1303       -.33387E-06** at limit **
  22  norm          41.966        14.650       -.23044E-06    .13085E-03
  23  Normalizat    1.0312        .18927        .17374E-06   -.71024E-04
  24  Prefactor     .85789        .10751        .27235E-06   -.18128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.603812
  Prefactor  = 0.000100001
  Prefactor  = 22.799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.11253
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.60218
  Prefactor  = 20.1403
  Prefactor  = 0.000100005
  Prefactor  = 7.63632
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.3364
  Prefactor  = 160.663
  norm       = 0.0001
  Prefactor  = 27.8237
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 41.9658
  Normalizat = 1.03118
  Prefactor  = 0.857892
 **********
 **   18 **HESSE 
 **********

 FCN=   8267.653     FROM HESSE     STATUS=OK           395 CALLS     3142 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60381        1.5343        .17684E-03   -1.5553    
   2  Prefactor     .10000E-03    7.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.799        29.304        .83892E-04   -1.4753    
   4  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5920        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.038        .32552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1125        12.054        .22355E-02   -1.5497    
   8  Prefactor     .10000E-03    6.2841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.6022        14.883        .18769E-03   -1.5279    
  11  Prefactor     20.140        11.096        .89258E-04   -1.4810    
  12  Prefactor     .10000E-03    32.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6363        10.057        .14514E-03   -1.5155    
  14  Prefactor     .10000E-03    25.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2474        .13192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.336        4.0934        .97834E-04   -1.5005    
  17  Prefactor     160.66        85.261        .31814E-04   -1.3166    
  18  norm          .10000E-03    .35700        .88589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.824        15.221        .75888E-04   -1.4653    
  20  norm          .10000E-03    1.1667        .13927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1373        .15697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          41.966        14.651        .61881E-04   -1.4411    
  23  Normalizat    1.0312        .22515        .29445E-03   -.91993    
  24  Prefactor     .85789        .12960        .19504E-03   -.97628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18713e-09
Minuit parameter uncertainties:
  1  1.53437
  2  0.000166202
  3  29.3226
  4  0.000184015
  5  1.45846e-05
  6  0.000321822
  7  7.3257
  8  9.03161e-06
  9  0.000163349
  10  14.8947
  11  11.0976
  12  0.000775819
  13  10.0591
  14  0.000365655
  15  2.13235e-05
  16  4.09349
  17  85.326
  18  3.6445e-06
  19  15.2236
  20  0.000109159
  21  2.28231e-05
  22  14.6518
  23  0.225363
  24  0.129642
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.636e+00  1.006e+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.579e-01  1.296e-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.031e+00  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/259728/likelihoodResults_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.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) = 8267.43694658
delta logL = 0.215770660188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8267.40540901
delta logL = 0.247308226082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.276       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0367       1.0000          .0000       10.000    
     3 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84478       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.

 FCN=   8267.405     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.269        15.359        .31249E-02    .14901E-02
   2  Index         2.0367        .67366        .25582       -.68605E-04
   3  Normalizat    1.0547        .17636        .65894E-01    .38626E-04
   4  Prefactor     .84478        .10881        .44297E-01    .53183E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2691
  Index      = 2.03673
  Normalizat = 1.05468
  Prefactor  = 0.84478
 **********
 **   18 **HESSE 
 **********

 FCN=   8267.405     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.269        11.399        .62498E-03   -1.5067    
   2  Index         2.0367        .70750        .10591E-01   -.63435    
   3  Normalizat    1.0547        .20913        .29150E-03   -.91220    
   4  Prefactor     .84478        .12794        .19632E-03   -.98098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25152e-12
Minuit parameter uncertainties:
  1  11.4019
  2  0.711195
  3  0.209291
  4  0.127988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259728': 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) = 8267.40540873
delta logL = 0.247308504759

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.027e+01  1.140e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.037e+00  7.112e-01  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.448e-01  1.280e-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.055e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.04 +/- 0.71
Photon Flux (Free Index): 2.69e-08 +/- 3.53e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.40e-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/259728/cmap_HighResolution_466128001_466387201_4FGL_J2219.2-0342_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='2.47e-01', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-28 09:26:13.199032', photon_index_error2='0.71', photon_index2='2.04', ts='0.67', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.40e-05', EG='1.03', time_epoch_completed='1632846373.2', return_code='0', job_id='259728', GAL2='0.84', EG2='1.05', return_code2='0', photon_flux_error2='3.53e-08', ts2='1.17', photon_index='2.68' WHERE bin_id='875' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 259728: <4FGL_J2219.2-0342_daily_bin875> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin875> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:38 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:40 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:40 2021
Terminated at Tue Sep 28 09:26:13 2021
Results reported at Tue Sep 28 09:26:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin875 334.823 -3.7102 466128001 466387201 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 :                                   759.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             289.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

