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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1204
RA = 334.823, Dec = -3.7102
tmin = 551404801, tmax = 551664001
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='261290', job_status='RUN', time_executed='2021-09-28 09:19:12.130161', time_epoch_executed='1632845952.13' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261290/ft1_4FGL_J2219.2-0342_daily_bin1204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261290/ft1_4FGL_J2219.2-0342_daily_bin1204.fits outfile=/scratch/kocevski/261290/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1204.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=551404801.0 tmax=551664001.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.56
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits" evtable="EVENTS" scfile=/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits sctable="SC_DATA" outfile=/scratch/kocevski/261290/ltcube_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.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/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits sctable="SC_DATA" expcube=/scratch/kocevski/261290/ltcube_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.fits outfile=/scratch/kocevski/261290/expmap_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.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/261290/ltcube_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.fits
.....................!
real 191.07
user 185.58
sys 5.15

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/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits scfile=/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits outfile=/scratch/kocevski/261290/cmap_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits scfile=/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits outfile=/scratch/kocevski/261290/cmap_HighResolution_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits evtable="EVENTS" scfile=/scratch/kocevski/261290/ft2_4FGL_J2219.2-0342_daily_bin1204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261290/Model_4FGL_J2219.2-0342_daily_bin1204.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/261290/ft1_filtered_4FGL_J2219.2-0342_daily_bin1204.fits.....................!
real 65.12
user 63.71
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    63.065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9259       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35101       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36585       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22565       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    190.33       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    149.13       1.0000         .10000E-03   10000.    
    20 'norm      '    .62503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3144       1.0000         .10000E-03   10000.    
    22 'norm      '    .61394E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95425       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83076       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=   6652.202     FROM MIGRAD    STATUS=CONVERGED   1015 CALLS     3301 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9865        .16826E-02** at limit **
   2  Prefactor     .10000E-03    77.577        .36285E-03** at limit **
   3  Prefactor     .10000E-03    17.862        .18142E-02** at limit **
   4  Prefactor     63.091        59.466        .50530E-04   -.68891E-04
   5  Prefactor     1.9646        8.1537        .29520E-03    .22511E-03
   6  Prefactor     5.9324        8.8983        .16496E-03    .14039E-03
   7  Prefactor     .10000E-03    3.5483        .14981E-02** at limit **
   8  Prefactor     14.462        19.426        .10524E-03   -.91823E-04
   9  Prefactor     27.650        19.211        .76078E-04   -.13957E-03
  10  Prefactor     .57369        188.09        .56499E-02    .50780E-04
  11  Prefactor     .28579        21.951        .91315E-01    .26361E-03
  12  Prefactor     7.7896        21.137        .14363E-03    .53031E-05
  13  Prefactor     18.474        11.471        .93214E-04    .23917E-03
  14  Prefactor     .10000E-03    69.348        .18142E-02** at limit **
  15  Prefactor     .22083        8.2682        .21404E-02    .88452E-03
  16  norm          1.5348        5.0848        .30326E-03   -.12596E-03
  17  Prefactor     190.26        112.54        .14637E-03   -.50564E-04
  18  norm          2.2306        1.8199        .95349E-04   -.50030E-03
  19  Prefactor     149.33        103.46        .16501E-03    .48366E-04
  20  norm          .61614        17.162        .31604E-02    .28130E-03
  21  Prefactor     9.3116        11.106        .13132E-03   -.31946E-04
  22  norm          .10001E-03    11.122        .74378E-01** at limit **
  23  Normalizat    .95432        .27140        .31328E-03    .12701E-03
  24  Prefactor     .83074        .14390        .19100E-03   -.29317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 63.0909
  Prefactor  = 1.96462
  Prefactor  = 5.93238
  Prefactor  = 0.0001
  Prefactor  = 14.4622
  Prefactor  = 27.6505
  Prefactor  = 0.573688
  Prefactor  = 0.285785
  Prefactor  = 7.78958
  Prefactor  = 18.4738
  Prefactor  = 0.000100002
  Prefactor  = 0.220828
  norm       = 1.53476
  Prefactor  = 190.259
  norm       = 2.23058
  Prefactor  = 149.329
  norm       = 0.616139
  Prefactor  = 9.31158
  norm       = 0.000100012
  Normalizat = 0.954316
  Prefactor  = 0.83074
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.202     FROM HESSE     STATUS=OK           399 CALLS     3700 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9913        .33651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.579        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     63.091        59.365        .10106E-04   -1.4118    
   5  Prefactor     1.9646        8.1238        .11808E-04   -1.5428    
   6  Prefactor     5.9324        8.8893        .65984E-05   -1.5221    
   7  Prefactor     .10000E-03    3.5486        .29962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.462        19.378        .42096E-05   -1.4947    
   9  Prefactor     27.650        18.420        .30431E-05   -1.4656    
  10  Prefactor     .57369        171.51        .22600E-03   -1.5556    
  11  Prefactor     .28579        20.310        .95904E-01   -1.5601    
  12  Prefactor     7.7896        21.133        .57453E-05   -1.5150    
  13  Prefactor     18.474        11.441        .37286E-05   -1.4848    
  14  Prefactor     .10000E-03    69.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22083        8.2136        .85616E-04   -1.5614    
  16  norm          1.5348        5.0775        .12131E-04   -1.5460    
  17  Prefactor     190.26        112.36        .29274E-04   -1.2940    
  18  norm          2.2306        1.8190        .38140E-05   -1.5409    
  19  Prefactor     149.33        88.244        .66004E-05   -1.3258    
  20  norm          .61614        12.472        .12642E-03   -1.5551    
  21  Prefactor     9.3116        11.105        .52526E-05   -1.5098    
  22  norm          .10001E-03    10.370        .78283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .95432        .26996        .12531E-04   -.94577    
  24  Prefactor     .83074        .14388        .38200E-04   -.98605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50016e-09
Minuit parameter uncertainties:
  1  1.1939e-05
  2  0.000494005
  3  2.41695e-05
  4  59.4212
  5  7.99171
  6  8.89127
  7  1.58908e-06
  8  19.3867
  9  18.424
  10  19.8948
  11  4.81928
  12  21.1533
  13  11.4425
  14  0.000714495
  15  2.69332
  16  5.07894
  17  112.484
  18  1.81901
  19  88.3216
  20  5.54512
  21  11.1075
  22  0.000714452
  23  0.270345
  24  0.143948
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.847e+01  1.144e+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:  8.307e-01  1.439e-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:  9.543e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.36
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.51e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.29e-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) = 6651.44101085
delta logL = 0.760786351676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6651.43067704
delta logL = 0.771120163608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.521       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8238       1.0000          .0000       10.000    
     3 'Normalizat'    .99289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81547       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=   6651.431     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      223 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.523        13.140        .42074E-05    .21908E-03
   2  Index         1.8237        .35843        .19629E-05   -.62438E-03
   3  Normalizat    .99287        .20443       -.61973E-06   -.39434E-04
   4  Prefactor     .81548        .11735       -.21173E-06   -.40457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5229
  Index      = 1.82374
  Normalizat = 0.992866
  Prefactor  = 0.815476
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.431     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.523        14.086        .88417E-04   -1.4802    
   2  Index         1.8237        .52911        .75786E-02   -.68833    
   3  Normalizat    .99287        .24581        .30789E-03   -.93270    
   4  Prefactor     .81548        .14139        .19253E-03   -.99160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26862e-09
Minuit parameter uncertainties:
  1  14.0887
  2  0.530779
  3  0.246089
  4  0.141448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261290': 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) = 6651.43067702
delta logL = 0.771120182389

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.052e+01  1.409e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.824e+00  5.308e-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:  8.155e-01  1.414e-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:  9.929e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.82 +/- 0.53
Photon Flux (Free Index): 4.78e-08 +/- 3.96e-08
Energy Flux (Free Index): 5.33e-05 +/- 6.07e-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/261290/cmap_HighResolution_551404801_551664001_4FGL_J2219.2-0342_daily_bin1204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.51e-08', energy_flux2='5.33e-05', photon_flux_error='5.27e-08', dlogl='7.71e-01', energy_flux='2.08e-05', photon_flux2='4.78e-08', job_status='DONE', time_completed='2021-09-28 09:29:41.681860', photon_index_error2='0.53', photon_index2='1.82', ts='4.36', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='6.07e-05', EG='0.95', time_epoch_completed='1632846581.68', return_code='0', job_id='261290', GAL2='0.82', EG2='0.99', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.96e-08', ts2='5.90', photon_index='2.68' WHERE bin_id='1204' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 261290: <4FGL_J2219.2-0342_daily_bin1204> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1204> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:28 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:29 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:29 2021
Terminated at Tue Sep 28 09:29:42 2021
Results reported at Tue Sep 28 09:29:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1204 334.823 -3.7102 551404801 551664001 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

