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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1648
RA = 334.823, Dec = -3.7102
tmin = 666489601, tmax = 666748801
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='44983', job_status='RUN', time_executed='2022-02-17 02:33:38.407379', time_epoch_executed='1645094018.41' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1648'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44983/ft1_4FGL_J2219.2-0342_daily_bin1648.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44983/ft1_4FGL_J2219.2-0342_daily_bin1648.fits outfile=/scratch/kocevski/44983/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1648.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=666489601.0 tmax=666748801.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.18
user 2.95
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/44983/ft1_filtered_4FGL_J2219.2-0342_daily_bin1648.fits" evtable="EVENTS" scfile=/scratch/kocevski/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits sctable="SC_DATA" outfile=/scratch/kocevski/44983/ltcube_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.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/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits
.....................!
real 13.82
user 13.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44983/ft1_filtered_4FGL_J2219.2-0342_daily_bin1648.fits evtable="EVENTS" scfile=/scratch/kocevski/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits sctable="SC_DATA" expcube=/scratch/kocevski/44983/ltcube_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.fits outfile=/scratch/kocevski/44983/expmap_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.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/44983/ltcube_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.fits
.....................!
real 192.12
user 186.21
sys 5.47

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/44983/ft1_filtered_4FGL_J2219.2-0342_daily_bin1648.fits scfile=/scratch/kocevski/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits outfile=/scratch/kocevski/44983/cmap_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44983/ft1_filtered_4FGL_J2219.2-0342_daily_bin1648.fits scfile=/scratch/kocevski/44983/ft2_4FGL_J2219.2-0342_daily_bin1648.fits outfile=/scratch/kocevski/44983/cmap_HighResolution_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.452       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15719E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    170.68       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    117.05       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    151.76       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    154.26       1.0000         .10000E-03   10000.    
    18 'norm      '    .26862E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7010       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    30.037       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2246.170     FROM MIGRAD    STATUS=CONVERGED    255 CALLS     2164 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8343        .19771E-06** at limit **
   2  Prefactor     25.173        68.095        .26495E-06   -.76739E-02
   3  Prefactor     .10000E-03    164.66        .17264E-04** at limit **
   4  Prefactor     19.366        62.209        .42876E-04    .18836E-01
   5  Prefactor     .10002E-03    82.048       -.12571E-03** at limit **
   6  Prefactor     175.34        81.698        .85264E-06    .44022E-02
   7  Prefactor     13.472        27.300        .45202E-06   -.32975E-04
   8  Prefactor     .10000E-03    6.2513       -.25926E-06** at limit **
   9  Prefactor     119.74        53.817       -.18190E-05    .94679E-03
  10  Prefactor     .10000E-03    12.882        .16037E-05** at limit **
  11  Prefactor     167.76        231.02       -.18594E-04    .75754E-02
  12  Prefactor     .10000E-03    8.8550       -.82500E-06** at limit **
  13  Prefactor     85.521        47.306       -.36375E-05    .70272E-03
  14  Prefactor     .19490E-02    463.06        .39227E-05** at limit **
  15  Prefactor     .10000E-03    6.6443        .26064E-06** at limit **
  16  norm          .10000E-03    15.354        .10370E-05** at limit **
  17  Prefactor     168.25        292.89        .63476E-04   -.10238E-01
  18  norm          .10000E-03    64.245       -.34985E-05** at limit **
  19  Prefactor     .10000E-03    235.67        .22213E-04** at limit **
  20  norm          .10000E-03    18.400       -.49779E-07** at limit **
  21  Prefactor     .10000E-03    39.113       -.89429E-06** at limit **
  22  norm          28.581        28.160       -.35268E-05    .88761E-04
  23  Normalizat    .10000E-01    .24390        .15256E-05** at limit **
  24  Prefactor     1.1282        .13734       -.77062E-05   -.53623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.1726
  Prefactor  = 0.000100001
  Prefactor  = 19.3656
  Prefactor  = 0.000100024
  Prefactor  = 175.339
  Prefactor  = 13.4718
  Prefactor  = 0.0001
  Prefactor  = 119.735
  Prefactor  = 0.0001
  Prefactor  = 167.764
  Prefactor  = 0.0001
  Prefactor  = 85.5213
  Prefactor  = 0.00194903
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 168.248
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.581
  Normalizat = 0.01
  Prefactor  = 1.12822
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.170     FROM HESSE     STATUS=OK           441 CALLS     2605 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8348        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.173        75.847        .19851E-02   -1.4704    
   3  Prefactor     .10000E-03    164.69        .96475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.366        198.73        .20354E-02   -1.4828    
   5  Prefactor     .10002E-03    26.015        .59847E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     175.34        81.761        .77206E-03   -1.3052    
   7  Prefactor     13.472        27.157        .27115E-02   -1.4974    
   8  Prefactor     .10000E-03    6.2676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     119.74        53.769        .92975E-03   -1.3515    
  10  Prefactor     .10000E-03    12.895        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     167.76        237.23        .81797E-03   -1.3110    
  12  Prefactor     .10000E-03    8.8686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     85.521        47.390        .10834E-02   -1.3856    
  14  Prefactor     .19490E-02    514.43        .43709E-02   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5901        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    15.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     168.25        321.58        .81143E-03   -1.3106    
  18  norm          .10000E-03    64.225        .10718E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    235.82        .80630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          28.581        28.208        .18276E-02   -1.4638    
  23  Normalizat    .10000E-01    .20843        .21914       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1282        .14765        .36600E-01   -.88570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54597e-05
Minuit parameter uncertainties:
  1  1.27332e-06
  2  76.1399
  3  0.000705423
  4  124.609
  5  0.00157042
  6  81.8136
  7  27.1819
  8  3.15094e-06
  9  53.7905
  10  1.38206e-05
  11  238.603
  12  1.02014e-05
  13  47.4109
  14  1.96771
  15  4.73901e-06
  16  7.32905e-06
  17  325.028
  18  6.61963e-06
  19  0.000695534
  20  2.24636e-05
  21  4.20208e-05
  22  28.2209
  23  3.49441e-07
  24  0.147707
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.552e+01  4.741e+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.128e+00  1.477e-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.000e-02  3.494e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.04
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.94e-07 +/- 2.18e-07
Energy Flux (Fixed Index): 9.62e-05 +/- 5.33e-05

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) = 2245.14317568
delta logL = 1.02659635724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2245.13072625
delta logL = 1.03904578965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.806       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0054       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1301       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=   2245.131     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      212 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.806        50.715        .10374E-02    .29274E-03
   2  Index         2.0053        .40407        .10982       -.11460E-04
   3  Normalizat    .10000E-01    .22386        .22503    ** at limit **
   4  Prefactor     1.1301        .13573        .36540E-01   -.21028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.8062
  Index      = 2.00531
  Normalizat = 0.01
  Prefactor  = 1.13013
 **********
 **   18 **HESSE 
 **********

 FCN=   2245.131     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.806        53.316        .20748E-03   -1.3768    
   2  Index         2.0053        .44119        .46742E-02   -.64217    
   3  Normalizat    .10000E-01    .27961        .11777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1301        .11600        .16668E-03   -.88509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33565e-10
Minuit parameter uncertainties:
  1  53.3432
  2  0.442083
  3  1.8624e-07
  4  0.116026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44983': 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) = 2245.13072622
delta logL = 1.03904581441

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.381e+01  5.334e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.005e+00  4.421e-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.130e+00  1.160e-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.000e-02  1.862e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.11
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.01 +/- 0.44
Photon Flux (Free Index): 2.41e-07 +/- 1.70e-07
Energy Flux (Free Index): 1.64e-04 +/- 1.36e-04

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/44983/cmap_HighResolution_666489601_666748801_4FGL_J2219.2-0342_daily_bin1648.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.94e-07', energy_flux2='1.64e-04', photon_flux_error='2.18e-07', dlogl='1.04e+00', energy_flux='9.62e-05', photon_flux2='2.41e-07', job_status='DONE', time_completed='2022-02-17 02:40:15.737766', photon_index_error2='0.44', photon_index2='2.01', ts='8.04', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.36e-04', EG='0.01', time_epoch_completed='1645094415.74', return_code='0', job_id='44983', GAL2='1.13', EG2='0.01', return_code2='0', energy_flux_error='5.33e-05', photon_flux_error2='1.70e-07', ts2='10.11', photon_index='2.68' WHERE bin_id='1648' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb 17 02:40:15 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 44983: <4FGL_J2219.2-0342_daily_bin1648> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1648> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Feb 17 02:30:20 2022
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb 17 02:33:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb 17 02:33:25 2022
Terminated at Thu Feb 17 02:40:16 2022
Results reported at Thu Feb 17 02:40:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1648 334.823 -3.7102 666489601 666748801 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 :                                   400.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             351.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   411 sec.
    Turnaround time :                            596 sec.

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

