/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 8 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin16
RA = 334.823, Dec = -3.7102
tmin = 243475201, tmax = 243734401
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='255275', job_status='RUN', time_executed='2021-09-28 08:55:43.194213', time_epoch_executed='1632844543.19' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255275/ft1_4FGL_J2219.2-0342_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255275/ft1_4FGL_J2219.2-0342_daily_bin16.fits outfile=/scratch/kocevski/255275/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin16.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.40
user 1.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/255275/ltcube_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.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/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits
.....................!
real 12.50
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/255275/ltcube_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.fits outfile=/scratch/kocevski/255275/expmap_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.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/255275/ltcube_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.fits
.....................!
real 190.27
user 185.03
sys 4.90

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/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits scfile=/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits outfile=/scratch/kocevski/255275/cmap_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits scfile=/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits outfile=/scratch/kocevski/255275/cmap_HighResolution_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/255275/ft2_4FGL_J2219.2-0342_daily_bin16.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255275/Model_4FGL_J2219.2-0342_daily_bin16.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/255275/ft1_filtered_4FGL_J2219.2-0342_daily_bin16.fits.....................!
real 74.92
user 73.64
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92602       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.049       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37965E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.665       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5471       1.0000         .10000E-03   10000.    
    16 'norm      '    15.958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8939       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.962       1.0000         .10000E-03   10000.    
    20 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2055       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74485       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=   7798.548     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2689 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92588        1.0910        .21748E-09    .65808E-05
   2  Prefactor     14.042        20.421       -.89030E-07   -.15569E-04
   3  Prefactor     .10000E-03    23.812        .46593E-06** at limit **
   4  Prefactor     .10000E-03    130.23       -.22512E-05** at limit **
   5  Prefactor     .10000E-03    4.0032       -.73041E-07** at limit **
   6  Prefactor     .95544        3.9174        .22889E-05   -.74341E-04
   7  Prefactor     .10000E-03    5.9343        .51127E-07** at limit **
   8  Prefactor     .10000E-03    9.0191       -.26444E-07** at limit **
   9  Prefactor     .10000E-03    9.4091        .73571E-07** at limit **
  10  Prefactor     14.662        12.562        .33964E-07    .73967E-05
  11  Prefactor     .10000E-03    5.6430       -.58473E-07** at limit **
  12  Prefactor     .10000E-03    20.489       -.82399E-07** at limit **
  13  Prefactor     .10000E-03    10.521       -.24319E-07** at limit **
  14  Prefactor     6.0318        213.41       -.23826E-06   -.11294E-04
  15  Prefactor     6.5466        4.1808        .12859E-06   -.14266E-03
  16  norm          15.958        4.6591       -.30188E-08   -.80439E-04
  17  Prefactor     .10000E-03    20.551       -.18831E-06** at limit **
  18  norm          3.8940        1.2747        .27178E-08    .10605E-03
  19  Prefactor     16.992        18.258        .43952E-06    .12770E-03
  20  norm          .10000E-03    1.0413       -.16697E-06** at limit **
  21  Prefactor     .10000E-03    3.1683        .92564E-08** at limit **
  22  norm          .10000E-03    4.7937        .39084E-07** at limit **
  23  Normalizat    1.2055        .18246        .27933E-07   -.48833E-04
  24  Prefactor     .74476        .10510       -.51017E-06    .10837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.925881
  Prefactor  = 14.0417
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.955442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.03175
  Prefactor  = 6.54664
  norm       = 15.9578
  Prefactor  = 0.0001
  norm       = 3.89395
  Prefactor  = 16.9923
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.20554
  Prefactor  = 0.744756
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.548     FROM HESSE     STATUS=OK           397 CALLS     3086 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92588        1.0705        .97460E-04   -1.5516    
   2  Prefactor     14.042        20.411        .10686E-03   -1.4958    
   3  Prefactor     .10000E-03    23.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    132.97        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0734        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95544        3.8698        .33588E-03   -1.5512    
   7  Prefactor     .10000E-03    6.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.662        12.567        .10459E-03   -1.4942    
  11  Prefactor     .10000E-03    5.6826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0318        214.21        .16330E-03   -1.5217    
  15  Prefactor     6.5466        4.1819        .13611E-03   -1.5196    
  16  norm          15.958        4.6640        .95397E-04   -1.4909    
  17  Prefactor     .10000E-03    20.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8940        1.2735        .54666E-04   -1.5313    
  19  Prefactor     16.992        15.753        .97248E-04   -1.4883    
  20  norm          .10000E-03    1.4828        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1716        .15351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2055        .21521        .27377E-03   -.86432    
  24  Prefactor     .74476        .12295        .20199E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04929e-10
Minuit parameter uncertainties:
  1  1.07052
  2  20.4213
  3  0.000164328
  4  0.00133737
  5  6.64836e-06
  6  3.84595
  7  1.29872e-06
  8  1.57192e-05
  9  2.17174e-06
  10  12.5688
  11  4.37287e-06
  12  6.13443e-05
  13  3.6257e-05
  14  72.1705
  15  4.18207
  16  4.66415
  17  7.09643e-05
  18  1.27349
  19  15.7569
  20  5.70383e-07
  21  3.95585e-07
  22  1.46812e-06
  23  0.215371
  24  0.122996
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.626e-05  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:  7.448e-01  1.230e-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.206e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255275/likelihoodResults_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.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) = 7798.54868899
delta logL = -0.00044645996968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7798.54824353
delta logL = -1.00238139566e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12785E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7641       1.0000          .0000       10.000    
     3 'Normalizat'    1.2059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74457       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=   7798.548     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      227 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10272E-03    14.854        .90712E-01** at limit **
   2  Index         2.8964        5.9198        .50000       -.91429E-04
   3  Normalizat    1.2055        .83036E-02    .61896E-01    .36757E-04
   4  Prefactor     .74476        .49595E-02    .42991E-01   -.46080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102716
  Index      = 2.89642
  Normalizat = 1.20554
  Prefactor  = 0.744755
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.548     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      264 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10272E-03    6327.8        .37000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8964        6.3380        .50000       -.43424    
   3  Normalizat    1.2055        .34890E-01    .27377E-03   -.86432    
   4  Prefactor     .74476        .20776E-01    .20199E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4869e-06
Minuit parameter uncertainties:
  1  0.178447
  2  32.3041
  3  0.0348902
  4  0.020776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255275': 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) = 7798.5482387
delta logL = 3.83377482649e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.027e-04  1.784e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.896e+00  3.230e+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:  7.448e-01  2.078e-02  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.206e+00  3.489e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/255275/cmap_HighResolution_243475201_243734401_4FGL_J2219.2-0342_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2021-09-28 09:07:44.031823', job_id='255275', GAL2='0.74', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632845264.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='16' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:07:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 255275: <4FGL_J2219.2-0342_daily_bin16> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin16> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:23 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:25 2021
Terminated at Tue Sep 28 09:07:44 2021
Results reported at Tue Sep 28 09:07:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin16 334.823 -3.7102 243475201 243734401 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 :                                   721.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             371.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

