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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin762
RA = 334.823, Dec = -3.7102
tmin = 436838401, tmax = 437097601
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='259559', job_status='RUN', time_executed='2021-09-28 09:10:37.733405', time_epoch_executed='1632845437.73' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259559/ft1_4FGL_J2219.2-0342_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259559/ft1_4FGL_J2219.2-0342_daily_bin762.fits outfile=/scratch/kocevski/259559/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin762.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=436838401.0 tmax=437097601.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 5.03
user 4.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.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/259559/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/259559/ltcube_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.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/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits
.....................!
real 14.02
user 13.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/259559/ltcube_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.fits outfile=/scratch/kocevski/259559/expmap_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.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/259559/ltcube_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.fits
.....................!
real 193.39
user 187.53
sys 5.50

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/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits outfile=/scratch/kocevski/259559/cmap_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits outfile=/scratch/kocevski/259559/cmap_HighResolution_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.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.60
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/259559/ft2_4FGL_J2219.2-0342_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259559/Model_4FGL_J2219.2-0342_daily_bin762.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/259559/ft1_filtered_4FGL_J2219.2-0342_daily_bin762.fits......................!
real 40.17
user 38.78
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62213E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6456       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.405       1.0000         .10000E-03   10000.    
    14 'Prefactor '    101.88       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14741E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13656E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.513       1.0000         .10000E-03   10000.    
    22 'norm      '    7.9896       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65710       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83922       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=   2978.358     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2771 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9202       -.34042E-06** at limit **
   2  Prefactor     .10000E-03    17.689       -.81354E-06** at limit **
   3  Prefactor     .10000E-03    141.51        .75281E-04** at limit **
   4  Prefactor     .10000E-03    23.558        .66419E-06** at limit **
   5  Prefactor     .10000E-03    6.0044        .43319E-07** at limit **
   6  Prefactor     14.866        9.2765        .16807E-06   -.86817E-04
   7  Prefactor     3.6465        12.627        .98176E-06   -.12053E-03
   8  Prefactor     45.818        35.484       -.13113E-05   -.97374E-05
   9  Prefactor     26.555        26.089       -.52831E-07   -.24438E-04
  10  Prefactor     .10000E-03    14.795        .11921E-05** at limit **
  11  Prefactor     .10000E-03    9.4449        .10250E-06** at limit **
  12  Prefactor     .10000E-03    14.027       -.72030E-06** at limit **
  13  Prefactor     21.409        20.138        .46123E-05   -.48888E-05
  14  Prefactor     101.85        116.53       -.28966E-04   -.23116E-04
  15  Prefactor     .10000E-03    2.9635       -.12190E-06** at limit **
  16  norm          1.3170        3.4242        .44899E-06   -.16666E-03
  17  Prefactor     .10000E-03    301.87       -.51175E-04** at limit **
  18  norm          .10000E-03    2.0997        .11599E-05** at limit **
  19  Prefactor     .10000E-03    123.41       -.48824E-04** at limit **
  20  norm          .10000E-03    2.6266        .27560E-06** at limit **
  21  Prefactor     39.501        27.830        .11626E-05    .95983E-04
  22  norm          7.9932        18.138        .54770E-05   -.21149E-04
  23  Normalizat    .65699        .29692        .12148E-05   -.11899E-03
  24  Prefactor     .83912        .17013       -.73310E-06   -.11339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8661
  Prefactor  = 3.64651
  Prefactor  = 45.8182
  Prefactor  = 26.5545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4095
  Prefactor  = 101.848
  Prefactor  = 0.0001
  norm       = 1.31699
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 39.5009
  norm       = 7.99317
  Normalizat = 0.656988
  Prefactor  = 0.839119
 **********
 **   18 **HESSE 
 **********

 FCN=   2978.358     FROM HESSE     STATUS=OK           395 CALLS     3166 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.189        .14391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    141.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0675        .13059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.866        9.2676        .10389E-03   -1.4937    
   7  Prefactor     3.6465        12.583        .21157E-03   -1.5326    
   8  Prefactor     45.818        35.435        .59241E-04   -1.4353    
   9  Prefactor     26.555        26.069        .77752E-04   -1.4677    
  10  Prefactor     .10000E-03    14.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4809        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.409        20.120        .86574E-04   -1.4782    
  14  Prefactor     101.85        116.09        .19916E-03   -1.3686    
  15  Prefactor     .10000E-03    2.9667        .91697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3170        3.3532        .15661E-03   -1.5478    
  17  Prefactor     .10000E-03    302.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6350        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    124.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7402        .17223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.501        27.808        .63765E-04   -1.4450    
  22  norm          7.9932        18.120        .14185E-03   -1.5142    
  23  Normalizat    .65699        .35257        .33251E-03   -1.0562    
  24  Prefactor     .83912        .20697        .17453E-03   -.98302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0173e-09
Minuit parameter uncertainties:
  1  0.00022315
  2  5.46418e-06
  3  0.000479823
  4  1.15688e-06
  5  2.49402e-06
  6  9.26847
  7  12.5918
  8  35.451
  9  26.08
  10  1.28251e-05
  11  3.26579e-05
  12  2.2208e-06
  13  20.1259
  14  116.354
  15  1.82999e-05
  16  3.35369
  17  0.000321309
  18  0.000245033
  19  0.00138623
  20  4.40028e-05
  21  27.8169
  22  18.1325
  23  0.353786
  24  0.207162
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.141e+01  2.013e+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.391e-01  2.072e-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:  6.570e-01  3.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.86e-08 +/- 9.26e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 2.26e-05

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

Saving results to:
/scratch/kocevski/259559/likelihoodResults_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.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) = 2978.26540831
delta logL = 0.0925760170098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2978.24747441
delta logL = 0.110509910559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.486       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3653       1.0000          .0000       10.000    
     3 'Normalizat'    .67711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82764       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=   2978.247     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.484        20.985       -.35600E-05    .11015E-02
   2  Index         2.3648        .54483        .10057E-04    .39594E-03
   3  Normalizat    .67755        .28639       -.71443E-06   -.46133E-04
   4  Prefactor     .82745        .16992        .70012E-06   -.10600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4842
  Index      = 2.36485
  Normalizat = 0.677553
  Prefactor  = 0.827451
 **********
 **   18 **HESSE 
 **********

 FCN=   2978.247     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.484        23.130        .79350E-04   -1.4698    
   2  Index         2.3648        .62722        .69873E-02   -.55510    
   3  Normalizat    .67755        .34843        .32771E-03   -1.0479    
   4  Prefactor     .82745        .20709        .17558E-03   -.98724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11717e-09
Minuit parameter uncertainties:
  1  23.1379
  2  0.629523
  3  0.349572
  4  0.207282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259559': 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) = 2978.24747329
delta logL = 0.110511031002

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.548e+01  2.314e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.365e+00  6.295e-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.275e-01  2.073e-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:  6.776e-01  3.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.36 +/- 0.63
Photon Flux (Free Index): 8.65e-08 +/- 8.50e-08
Energy Flux (Free Index): 2.97e-05 +/- 3.01e-05

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/259559/cmap_HighResolution_436838401_437097601_4FGL_J2219.2-0342_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-02', comment='SUCCESS', photon_flux='9.86e-08', energy_flux2='2.97e-05', photon_flux_error='9.26e-08', dlogl='1.11e-01', energy_flux='2.41e-05', photon_flux2='8.65e-08', job_status='DONE', time_completed='2021-09-28 09:18:44.666730', photon_index_error2='0.63', photon_index2='2.36', ts='1.55', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.96e-07', energy_flux_error2='3.01e-05', EG='0.66', time_epoch_completed='1632845924.67', return_code='0', job_id='259559', GAL2='0.83', EG2='0.68', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='8.50e-08', ts2='1.76', photon_index='2.68' WHERE bin_id='762' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:18:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 259559: <4FGL_J2219.2-0342_daily_bin762> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin762> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:25 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:27 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:27 2021
Terminated at Tue Sep 28 09:18:45 2021
Results reported at Tue Sep 28 09:18:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin762 334.823 -3.7102 436838401 437097601 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 :                                   486.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             380.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            500 sec.

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

