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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1627
RA = 334.823, Dec = -3.7102
tmin = 661046401, tmax = 661305601
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='250970', job_status='RUN', time_executed='2021-12-16 00:38:54.212669', time_epoch_executed='1639643934.21' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250970/ft1_4FGL_J2219.2-0342_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250970/ft1_4FGL_J2219.2-0342_daily_bin1627.fits outfile=/scratch/kocevski/250970/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1627.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=661046401.0 tmax=661305601.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.60
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250970/ltcube_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.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/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits
.....................!
real 12.26
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250970/ltcube_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.fits outfile=/scratch/kocevski/250970/expmap_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.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/250970/ltcube_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.fits
.....................!
real 192.41
user 186.36
sys 5.68

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/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits scfile=/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits outfile=/scratch/kocevski/250970/cmap_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits scfile=/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits outfile=/scratch/kocevski/250970/cmap_HighResolution_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250970/ft2_4FGL_J2219.2-0342_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250970/Model_4FGL_J2219.2-0342_daily_bin1627.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/250970/ft1_filtered_4FGL_J2219.2-0342_daily_bin1627.fits.....................!
real 61.28
user 59.96
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    91.281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17241E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    115.48       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.280       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9019       1.0000         .10000E-03   10000.    
    16 'norm      '    9.4222       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10412       1.0000         .10000E-03   10000.    
    18 'norm      '    .40588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.773       1.0000         .10000E-03   10000.    
    20 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.301       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47952       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1018       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=   6422.015     FROM MIGRAD    STATUS=CONVERGED    971 CALLS     3543 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0964        2.5369        .96730E-04    .50303E-04
   2  Prefactor     91.319        48.099        .21030E-03   -.12785E-03
   3  Prefactor     .10000E-03    25.551        .18142E-02** at limit **
   4  Prefactor     .10000E-03    16.186        .18142E-02** at limit **
   5  Prefactor     .10000E-03    4.2240        .16012E-02** at limit **
   6  Prefactor     2.1779        7.6814        .13976E-02    .28811E-03
   7  Prefactor     .10005E-03    24.939        .36929E-02** at limit **
   8  Prefactor     35.948        19.805        .66849E-04    .11010E-03
   9  Prefactor     17.694        14.545        .95252E-04    .17996E-03
  10  Prefactor     .10000E-03    10.162        .18142E-02** at limit **
  11  Prefactor     115.48        24.414        .37440E-04    .15681E-03
  12  Prefactor     14.289        25.172        .10599E-03    .30247E-04
  13  Prefactor     17.658        15.919        .95328E-04    .13238E-03
  14  Prefactor     .10000E-03    52.330        .18142E-02** at limit **
  15  Prefactor     5.9033        5.3435        .15630E-03    .74189E-04
  16  norm          9.4233        4.8780        .11830E-03   -.79573E-04
  17  Prefactor     .10004E-03    77.101        .21251    ** at limit **
  18  norm          .40589        .49106        .64168E-03    .42884E-03
  19  Prefactor     27.818        19.457        .76019E-04   -.53614E-03
  20  norm          .10000E-03    1.3867        .14181E-02** at limit **
  21  Prefactor     .10000E-03    7.1175        .18142E-02** at limit **
  22  norm          19.305        14.225        .91166E-04    .54620E-04
  23  Normalizat    .47923        .26995        .45053E-03   -.18666E-03
  24  Prefactor     1.1019        .15146        .18401E-03   -.39754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09636
  Prefactor  = 91.3187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17786
  Prefactor  = 0.000100051
  Prefactor  = 35.9476
  Prefactor  = 17.6939
  Prefactor  = 0.0001
  Prefactor  = 115.48
  Prefactor  = 14.2887
  Prefactor  = 17.6581
  Prefactor  = 0.000100001
  Prefactor  = 5.90328
  norm       = 9.42334
  Prefactor  = 0.000100043
  norm       = 0.405892
  Prefactor  = 27.8184
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.3046
  Normalizat = 0.479228
  Prefactor  = 1.10194
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.015     FROM HESSE     STATUS=OK           387 CALLS     3930 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0964        2.5368        .38692E-05   -1.5303    
   2  Prefactor     91.319        48.099        .84120E-05   -1.3794    
   3  Prefactor     .10000E-03    25.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2252        .32023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1779        7.6686        .55904E-04   -1.5413    
   7  Prefactor     .10005E-03    25.180        .73857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.948        19.805        .13370E-04   -1.4508    
   9  Prefactor     17.694        14.544        .19050E-04   -1.4866    
  10  Prefactor     .10000E-03    10.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     115.48        24.407        .74880E-05   -1.3555    
  12  Prefactor     14.289        25.173        .42397E-05   -1.4952    
  13  Prefactor     17.658        15.917        .38131E-05   -1.4867    
  14  Prefactor     .10000E-03    52.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9033        5.3424        .62521E-05   -1.5222    
  16  norm          9.4233        4.8775        .47319E-05   -1.5094    
  17  Prefactor     .10004E-03    79.122        .20826       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .40589        .49101        .25667E-04   -1.5581    
  19  Prefactor     27.818        19.436        .15204E-04   -1.4653    
  20  norm          .10000E-03    1.3868        .28362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.305        14.224        .36466E-05   -1.4829    
  23  Normalizat    .47923        .26974        .18021E-04   -1.1339    
  24  Prefactor     1.1019        .15147        .36802E-04   -.89405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59311e-09
Minuit parameter uncertainties:
  1  2.5369
  2  48.1191
  3  3.91655e-05
  4  0.000122156
  5  5.88946e-05
  6  7.67209
  7  0.00227033
  8  19.8085
  9  14.5469
  10  2.24427e-05
  11  24.4093
  12  25.1915
  13  15.9208
  14  0.000422848
  15  5.34286
  16  4.87769
  17  0.00369779
  18  0.491013
  19  19.4408
  20  6.50693e-05
  21  2.0959e-05
  22  14.2268
  23  0.270474
  24  0.151529
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.766e+01  1.592e+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:  1.102e+00  1.515e-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:  4.792e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.14e-08 +/- 7.33e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.79e-05

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

Saving results to:
/scratch/kocevski/250970/likelihoodResults_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.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) = 6421.9317923
delta logL = 0.083323663499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6421.92661172
delta logL = 0.0885042499722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.442       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0519       1.0000          .0000       10.000    
     3 'Normalizat'    .45496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1128       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=   6421.927     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.447        17.470        .10540E-03   -.33967E-03
   2  Index         3.0521        1.0510        .84470E-02   -.91990E-04
   3  Normalizat    .45489        .25784        .46184E-03    .98361E-03
   4  Prefactor     1.1128        .15266        .18322E-03    .27962E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4472
  Index      = 3.05212
  Normalizat = 0.454888
  Prefactor  = 1.11275
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.927     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.447        16.078        .42159E-05   -1.4948    
   2  Index         3.0521        .96634        .33788E-03   -.40017    
   3  Normalizat    .45489        .25730        .92368E-04   -1.1455    
   4  Prefactor     1.1128        .15220        .36644E-04   -.89060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27519e-09
Minuit parameter uncertainties:
  1  16.0825
  2  0.973576
  3  0.257975
  4  0.152258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250970': 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) = 6421.92661033
delta logL = 0.0885056355983

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.445e+01  1.608e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.052e+00  9.736e-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:  1.113e+00  1.523e-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:  4.549e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.05 +/- 0.97
Photon Flux (Free Index): 9.95e-08 +/- 8.64e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.57e-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/250970/cmap_HighResolution_661046401_661305601_4FGL_J2219.2-0342_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-02', comment='SUCCESS', photon_flux='8.14e-08', energy_flux2='1.94e-05', photon_flux_error='7.33e-08', dlogl='8.85e-02', energy_flux='1.99e-05', photon_flux2='9.95e-08', job_status='DONE', time_completed='2021-12-16 00:50:43.547454', photon_index_error2='0.97', photon_index2='3.05', ts='1.86', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='1.57e-05', EG='0.48', time_epoch_completed='1639644643.55', return_code='0', job_id='250970', GAL2='1.11', EG2='0.45', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='8.64e-08', ts2='2.08', photon_index='2.68' WHERE bin_id='1627' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:50:43 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 250970: <4FGL_J2219.2-0342_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:42 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:45 2021
Terminated at Thu Dec 16 00:50:44 2021
Results reported at Thu Dec 16 00:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1627 334.823 -3.7102 661046401 661305601 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 :                                   709.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            902 sec.

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

