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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin65
RA = 334.823, Dec = -3.7102
tmin = 256176001, tmax = 256435201
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='255347', job_status='RUN', time_executed='2021-09-28 08:59:01.338108', time_epoch_executed='1632844741.34' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255347

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255347/ft1_4FGL_J2219.2-0342_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255347/ft1_4FGL_J2219.2-0342_daily_bin65.fits outfile=/scratch/kocevski/255347/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin65.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=256176001.0 tmax=256435201.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.50
user 1.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/255347/ltcube_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.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/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits
.....................!
real 19.82
user 18.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/255347/ltcube_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.fits outfile=/scratch/kocevski/255347/expmap_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.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/255347/ltcube_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.fits
.....................!
real 195.39
user 190.50
sys 4.46

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/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits scfile=/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits outfile=/scratch/kocevski/255347/cmap_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits scfile=/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits outfile=/scratch/kocevski/255347/cmap_HighResolution_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/255347/ft2_4FGL_J2219.2-0342_daily_bin65.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255347/Model_4FGL_J2219.2-0342_daily_bin65.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/255347/ft1_filtered_4FGL_J2219.2-0342_daily_bin65.fits.....................!
real 73.81
user 72.31
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15546E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19544E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1784       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2568       1.0000         .10000E-03   10000.    
    16 'norm      '    9.8025       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1777       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.829       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1134       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99872       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=   7597.287     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2774 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7532        3.0301        .28193E-07   -.34548E-04
   2  Prefactor     .10000E-03    18.005        .26068E-05** at limit **
   3  Prefactor     .10000E-03    39.265       -.13738E-04** at limit **
   4  Prefactor     .10001E-03    36.920        .18488E-04** at limit **
   5  Prefactor     .10001E-03    4.0848       -.33190E-06** at limit **
   6  Prefactor     28.807        10.368        .32882E-06    .51656E-04
   7  Prefactor     .10000E-03    2.7247       -.58505E-08** at limit **
   8  Prefactor     .10436E-03    14.449       -.30534E-05** at limit **
   9  Prefactor     1.1882        3.1599        .11533E-06   -.45703E-03
  10  Prefactor     .53579        14.768        .36715E-05   -.55902E-03
  11  Prefactor     .10000E-03    7.3187       -.12800E-07** at limit **
  12  Prefactor     .10000E-03    38.724       -.83710E-05** at limit **
  13  Prefactor     13.525        11.962       -.78141E-06   -.17247E-03
  14  Prefactor     .10000E-03    63.343        .74130E-05** at limit **
  15  Prefactor     5.2552        4.0467        .13960E-06   -.60895E-04
  16  norm          9.8019        3.9393        .40547E-07   -.43905E-04
  17  Prefactor     .10000E-03    18.333       -.28859E-05** at limit **
  18  norm          1.1777        .75761       -.10966E-08   -.21913E-04
  19  Prefactor     .10000E-03    3.0436       -.35864E-08** at limit **
  20  norm          .10000E-03    .25062        .22034E-08** at limit **
  21  Prefactor     12.828        12.606       -.39159E-06   -.29137E-04
  22  norm          .10000E-03    4.4341       -.69264E-08** at limit **
  23  Normalizat    1.1140        .21207       -.29180E-06   -.80829E-04
  24  Prefactor     .99848        .12336        .76545E-07   -.96766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75319
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.00010001
  Prefactor  = 28.8074
  Prefactor  = 0.0001
  Prefactor  = 0.000104356
  Prefactor  = 1.18823
  Prefactor  = 0.535794
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.5253
  Prefactor  = 0.000100001
  Prefactor  = 5.25521
  norm       = 9.8019
  Prefactor  = 0.0001
  norm       = 1.17769
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.8281
  norm       = 0.0001
  Normalizat = 1.11399
  Prefactor  = 0.998485
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.287     FROM HESSE     STATUS=OK           415 CALLS     3189 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7532        3.0219        .18881E-03   -1.5443    
   2  Prefactor     .10000E-03    18.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    37.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    4.5804        .59099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.807        10.408        .74639E-04   -1.4634    
   7  Prefactor     .10000E-03    2.7272        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10436E-03    14.652        .95287E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1882        60.379        .21074E-02   -1.5490    
  10  Prefactor     .53579        219.16        .58183E-02   -1.5562    
  11  Prefactor     .10000E-03    7.3541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.525        11.948        .10893E-03   -1.4972    
  14  Prefactor     .10000E-03    63.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2552        4.0352        .14171E-03   -1.5249    
  16  norm          9.8019        3.9453        .10467E-03   -1.5082    
  17  Prefactor     .10000E-03    18.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1777        .76653        .59211E-04   -1.5491    
  19  Prefactor     .10000E-03    3.0442        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .25109        .42607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.828        12.610        .11183E-03   -1.4991    
  22  norm          .10000E-03    4.4418        .17924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1140        .25291        .31524E-03   -.89304    
  24  Prefactor     .99848        .14722        .20174E-03   -.92780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97087e-08
Minuit parameter uncertainties:
  1  3.0222
  2  8.44663e-05
  3  0.000655515
  4  0.000863064
  5  0.000424528
  6  10.4089
  7  2.03102e-06
  8  0.0159818
  9  16.9577
  10  21.7511
  11  3.83142e-06
  12  0.000349913
  13  11.9506
  14  0.000457783
  15  4.03544
  16  3.94541
  17  9.70401e-05
  18  0.766541
  19  2.3705e-07
  20  9.25721e-08
  21  12.6127
  22  3.85208e-07
  23  0.253189
  24  0.147284
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.353e+01  1.195e+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:  9.985e-01  1.473e-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.114e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 5.50e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/255347/likelihoodResults_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.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) = 7597.27526536
delta logL = 0.0117209538757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7597.27026489
delta logL = 0.0167214159292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.826       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5404       1.0000          .0000       10.000    
     3 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99540       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=   7597.270     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      252 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.828        14.263        .10402E-03   -.12400E-02
   2  Index         2.5407        .77020        .10068E-01   -.35647E-03
   3  Normalizat    1.1194        .24168        .31457E-03    .53332E-03
   4  Prefactor     .99554        .14725        .20200E-03    .10286E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8282
  Index      = 2.5407
  Normalizat = 1.11944
  Prefactor  = 0.995538
 **********
 **   18 **HESSE 
 **********

 FCN=   7597.270     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.828        13.882        .20804E-04   -1.4938    
   2  Index         2.5407        .74950        .40272E-03   -.51422    
   3  Normalizat    1.1194        .24179        .62914E-04   -.89130    
   4  Prefactor     .99554        .14727        .40399E-04   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56743e-09
Minuit parameter uncertainties:
  1  13.8845
  2  0.753249
  3  0.242033
  4  0.147333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255347': 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) = 7597.27026429
delta logL = 0.0167220234189

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.483e+01  1.388e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.541e+00  7.532e-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:  9.955e-01  1.473e-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.119e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.54 +/- 0.75
Photon Flux (Free Index): 5.93e-08 +/- 5.36e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.58e-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/255347/cmap_HighResolution_256176001_256435201_4FGL_J2219.2-0342_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='1.65e-05', photon_flux_error='5.50e-08', dlogl='1.67e-02', energy_flux='1.52e-05', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-09-28 09:11:40.095833', photon_index_error2='0.75', photon_index2='2.54', ts='1.83', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.58e-05', EG='1.11', time_epoch_completed='1632845500.1', return_code='0', job_id='255347', GAL2='1.00', EG2='1.12', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.36e-08', ts2='1.86', photon_index='2.68' WHERE bin_id='65' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 255347: <4FGL_J2219.2-0342_daily_bin65> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin65> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:29 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:30 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:30 2021
Terminated at Tue Sep 28 09:11:40 2021
Results reported at Tue Sep 28 09:11:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin65 334.823 -3.7102 256176001 256435201 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 :                                   758.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

