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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1084
RA = 334.823, Dec = -3.7102
tmin = 520300801, tmax = 520560001
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='261097', job_status='RUN', time_executed='2021-09-28 09:16:56.267356', time_epoch_executed='1632845816.27' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261097/ft1_4FGL_J2219.2-0342_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261097/ft1_4FGL_J2219.2-0342_daily_bin1084.fits outfile=/scratch/kocevski/261097/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1084.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.18
user 5.91
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/261097/ltcube_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.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/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits
.....................!
real 12.14
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/261097/ltcube_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.fits outfile=/scratch/kocevski/261097/expmap_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.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/261097/ltcube_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.fits
.....................!
real 190.30
user 184.80
sys 5.11

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/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits scfile=/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits outfile=/scratch/kocevski/261097/cmap_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits scfile=/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits outfile=/scratch/kocevski/261097/cmap_HighResolution_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/261097/ft2_4FGL_J2219.2-0342_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261097/Model_4FGL_J2219.2-0342_daily_bin1084.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/261097/ft1_filtered_4FGL_J2219.2-0342_daily_bin1084.fits.....................!
real 95.02
user 93.56
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8524       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.738       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9317       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5682       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.117       1.0000         .10000E-03   10000.    
    22 'norm      '    10.835       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85160       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=   9816.980     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2402 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78914        1.9591        .14444E-05   -.97856E-04
   2  Prefactor     5.1229        17.208       -.90472E-06   -.46768E-04
   3  Prefactor     .10000E-03    20.386        .83147E-06** at limit **
   4  Prefactor     16.440        28.737       -.34459E-05   -.23580E-03
   5  Prefactor     6.7425        8.1560        .42814E-05   -.33373E-03
   6  Prefactor     .10000E-03    3.6004        .33071E-06** at limit **
   7  Prefactor     .10000E-03    10.316        .18030E-06** at limit **
   8  Prefactor     35.088        20.338       -.25664E-06    .53320E-04
   9  Prefactor     16.814        15.165       -.12589E-06    .80675E-04
  10  Prefactor     3.2946        21.205        .13675E-05   -.58612E-04
  11  Prefactor     1.0458        6.4896       -.16555E-06    .31025E-03
  12  Prefactor     3.8237        70.037       -.49411E-06   -.89555E-04
  13  Prefactor     10.103        9.8006        .38159E-06   -.26295E-04
  14  Prefactor     63.745        54.361        .93388E-07    .52166E-04
  15  Prefactor     .10000E-03    1.9203        .84554E-07** at limit **
  16  norm          2.9902        2.8261        .24095E-06   -.19786E-04
  17  Prefactor     5.9222        105.70        .66685E-06   -.20915E-04
  18  norm          5.5684        1.3524       -.71500E-08    .19913E-04
  19  Prefactor     .10000E-03    18.595       -.78362E-06** at limit **
  20  norm          .10000E-03    .42866        .62121E-07** at limit **
  21  Prefactor     12.117        12.188        .13425E-06   -.11898E-04
  22  norm          10.834        12.034        .32237E-06   -.28888E-05
  23  Normalizat    1.3380        .19021       -.20667E-05   -.84075E-04
  24  Prefactor     .85173        .10797       -.49867E-06   -.21631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.789141
  Prefactor  = 5.12285
  Prefactor  = 0.000100001
  Prefactor  = 16.4401
  Prefactor  = 6.74246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0881
  Prefactor  = 16.8137
  Prefactor  = 3.29464
  Prefactor  = 1.04581
  Prefactor  = 3.82369
  Prefactor  = 10.1035
  Prefactor  = 63.7452
  Prefactor  = 0.0001
  norm       = 2.99016
  Prefactor  = 5.92217
  norm       = 5.56836
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.1165
  norm       = 10.8343
  Normalizat = 1.33799
  Prefactor  = 0.851733
 **********
 **   18 **HESSE 
 **********

 FCN=   9816.980     FROM HESSE     STATUS=OK           411 CALLS     2813 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78914        1.9510        .20327E-03   -1.5530    
   2  Prefactor     5.1229        17.105        .17768E-03   -1.5255    
   3  Prefactor     .10000E-03    20.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.440        28.838        .98693E-04   -1.4897    
   5  Prefactor     6.7425        8.1227        .77277E-03   -1.5189    
   6  Prefactor     .10000E-03    3.7000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.088        20.321        .67659E-04   -1.4523    
   9  Prefactor     16.814        15.003        .97711E-04   -1.4888    
  10  Prefactor     3.2946        20.706        .22226E-03   -1.5345    
  11  Prefactor     1.0458        22.453        .46223E-02   -1.5503    
  12  Prefactor     3.8237        71.050        .20561E-03   -1.5317    
  13  Prefactor     10.103        9.8038        .12606E-03   -1.5072    
  14  Prefactor     63.745        54.273        .25132E-03   -1.4109    
  15  Prefactor     .10000E-03    1.9620        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9902        2.8158        .15299E-03   -1.5362    
  17  Prefactor     5.9222        105.72        .16488E-03   -1.5221    
  18  norm          5.5684        1.3506        .54767E-04   -1.5236    
  19  Prefactor     .10000E-03    18.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .77490        .12575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.117        12.162        .11508E-03   -1.5012    
  22  norm          10.834        12.036        .12171E-03   -1.5050    
  23  Normalizat    1.3380        .22390        .29698E-03   -.82439    
  24  Prefactor     .85173        .12795        .21442E-03   -.97849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15762e-09
Minuit parameter uncertainties:
  1  1.9512
  2  17.121
  3  0.000326341
  4  28.8629
  5  8.12398
  6  2.36093e-05
  7  5.8238e-06
  8  20.3252
  9  15.0061
  10  16.5273
  11  9.69528
  12  33.0102
  13  9.80535
  14  54.3156
  15  6.25842e-06
  16  2.81589
  17  50.1478
  18  1.3506
  19  0.000244138
  20  8.36552e-06
  21  12.1642
  22  12.0383
  23  0.224063
  24  0.127997
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.010e+01  9.805e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.517e-01  1.280e-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.338e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/261097/likelihoodResults_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.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) = 9816.97504706
delta logL = 0.0044611477515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9816.97350814
delta logL = 0.00600007466892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5888       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7964       1.0000          .0000       10.000    
     3 'Normalizat'    1.3332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85385       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=   9816.974     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5825        271.71        .32354E-02    .90567E-04
   2  Index         2.7979        5.9913        .22616        .74978E-04
   3  Normalizat    1.3332        .79414E-01    .67231E-01    .12250E-04
   4  Prefactor     .85386        .42224E-01    .44414E-01    .14637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.58246
  Index      = 2.79786
  Normalizat = 1.33323
  Prefactor  = 0.853858
 **********
 **   18 **HESSE 
 **********

 FCN=   9816.974     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5825        11.429        .12941E-03   -1.5089    
   2  Index         2.7979        1.1440        .14088E-01   -.45607    
   3  Normalizat    1.3332        .21861        .29742E-03   -.82580    
   4  Prefactor     .85386        .12782        .21419E-03   -.97773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57201e-12
Minuit parameter uncertainties:
  1  11.432
  2  1.15679
  3  0.218759
  4  0.12786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261097': 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) = 9816.9735072
delta logL = 0.00600101290001

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.582e+00  1.143e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.798e+00  1.157e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.539e-01  1.279e-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.333e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.80 +/- 1.16
Photon Flux (Free Index): 4.98e-08 +/- 5.40e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.10e-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/261097/cmap_HighResolution_520300801_520560001_4FGL_J2219.2-0342_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.12e-05', photon_flux_error='4.51e-08', dlogl='6.00e-03', energy_flux='1.14e-05', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-28 09:30:37.341693', photon_index_error2='1.16', photon_index2='2.80', ts='1.53', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.10e-05', EG='1.34', time_epoch_completed='1632846637.34', return_code='0', job_id='261097', GAL2='0.85', EG2='1.33', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.40e-08', ts2='1.54', photon_index='2.68' WHERE bin_id='1084' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:30:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 261097: <4FGL_J2219.2-0342_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1084> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:12 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:15:13 2021
Terminated at Tue Sep 28 09:30:37 2021
Results reported at Tue Sep 28 09:30:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1084 334.823 -3.7102 520300801 520560001 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 :                                   820.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

