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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1133
RA = 334.823, Dec = -3.7102
tmin = 533001601, tmax = 533260801
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='261178', job_status='RUN', time_executed='2021-09-28 09:17:53.401291', time_epoch_executed='1632845873.4' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261178/ft1_4FGL_J2219.2-0342_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261178/ft1_4FGL_J2219.2-0342_daily_bin1133.fits outfile=/scratch/kocevski/261178/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1133.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=533001601.0 tmax=533260801.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.50
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.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/261178/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1133.fits evtable="EVENTS" outfile="/scratch/kocevski/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.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.46
user 0.32
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/261178/ltcube_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.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/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits
.....................!
real 11.97
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/261178/ltcube_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.fits outfile=/scratch/kocevski/261178/expmap_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.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/261178/ltcube_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.fits
.....................!
real 189.82
user 185.27
sys 4.14

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/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits outfile=/scratch/kocevski/261178/cmap_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits outfile=/scratch/kocevski/261178/cmap_HighResolution_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/261178/ft2_4FGL_J2219.2-0342_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261178/Model_4FGL_J2219.2-0342_daily_bin1133.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/261178/ft1_filtered_4FGL_J2219.2-0342_daily_bin1133.fits.....................!
real 65.74
user 64.36
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.290       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5527       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.396       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.474       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.186       1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.01       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1431       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .35794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.352       1.0000         .10000E-03   10000.    
    20 'norm      '    28.500       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6429       1.0000         .10000E-03   10000.    
    22 'norm      '    3.4192       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81038       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0778       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=   6670.905     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2693 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7956        2.3978        .14427E-06    .11569E-03
   2  Prefactor     13.292        41.081        .20564E-05    .52549E-05
   3  Prefactor     14.358        54.379       -.15236E-04   -.31667E-03
   4  Prefactor     .10000E-03    15.525       -.17235E-07** at limit **
   5  Prefactor     7.9143        8.4715        .19408E-06   -.50374E-05
   6  Prefactor     6.5523        8.8204        .37282E-05   -.41565E-03
   7  Prefactor     .10000E-03    4.3833       -.14849E-06** at limit **
   8  Prefactor     41.394        25.374        .26886E-06   -.33273E-04
   9  Prefactor     .10000E-03    5.0481        .87119E-07** at limit **
  10  Prefactor     .10000E-03    6.4205        .85803E-07** at limit **
  11  Prefactor     15.473        15.740       -.35557E-06   -.64348E-04
  12  Prefactor     56.319        33.505        .21596E-06   -.12323E-04
  13  Prefactor     24.187        14.306        .40870E-06   -.81974E-05
  14  Prefactor     105.00        89.659       -.10758E-05   -.69225E-04
  15  Prefactor     .10000E-03    4.2547        .37597E-06** at limit **
  16  norm          4.1428        4.3503        .19482E-06   -.21278E-03
  17  Prefactor     .10000E-03    31.216        .16137E-06** at limit **
  18  norm          .35848        .91224        .91376E-06    .94160E-03
  19  Prefactor     61.385        112.77        .75646E-05   -.48092E-05
  20  norm          28.496        9.6287       -.96246E-06   -.29813E-03
  21  Prefactor     9.6431        11.296        .14766E-06   -.16260E-04
  22  norm          3.4193        13.451        .12018E-04   -.31652E-03
  23  Normalizat    .81024        .26815       -.53039E-05   -.36376E-04
  24  Prefactor     1.0779        .14755        .10723E-05   -.26526E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79558
  Prefactor  = 13.2915
  Prefactor  = 14.3582
  Prefactor  = 0.0001
  Prefactor  = 7.91428
  Prefactor  = 6.55234
  Prefactor  = 0.0001
  Prefactor  = 41.3944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4734
  Prefactor  = 56.3186
  Prefactor  = 24.1872
  Prefactor  = 105.002
  Prefactor  = 0.0001
  norm       = 4.14276
  Prefactor  = 0.0001
  norm       = 0.358477
  Prefactor  = 61.3848
  norm       = 28.4961
  Prefactor  = 9.64312
  norm       = 3.41931
  Normalizat = 0.810242
  Prefactor  = 1.07785
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.905     FROM HESSE     STATUS=OK           401 CALLS     3094 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7956        2.3947        .11179E-03   -1.5374    
   2  Prefactor     13.292        41.065        .10987E-03   -1.4979    
   3  Prefactor     14.358        58.754        .10549E-03   -1.4950    
   4  Prefactor     .10000E-03    15.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9143        8.4735        .14252E-03   -1.5145    
   6  Prefactor     6.5523        8.8744        .78387E-03   -1.5196    
   7  Prefactor     .10000E-03    4.3915        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.394        25.390        .62303E-04   -1.4420    
   9  Prefactor     .10000E-03    5.0514        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.473        15.754        .10182E-03   -1.4921    
  12  Prefactor     56.319        33.512        .53453E-04   -1.4206    
  13  Prefactor     24.187        14.309        .81452E-04   -1.4724    
  14  Prefactor     105.00        89.668        .39241E-04   -1.3655    
  15  Prefactor     .10000E-03    4.3112        .16405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1428        4.3418        .16402E-03   -1.5301    
  17  Prefactor     .10000E-03    31.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .35848        .79635        .12112E-02   -1.5588    
  19  Prefactor     61.385        117.13        .51227E-04   -1.4139    
  20  norm          28.496        10.075        .63686E-04   -1.4640    
  21  Prefactor     9.6431        11.294        .12905E-03   -1.5087    
  22  norm          3.4193        13.647        .10938E-02   -1.5338    
  23  Normalizat    .81024        .30590        .39341E-03   -.99690    
  24  Prefactor     1.0779        .17006        .20565E-03   -.90178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68565e-09
Minuit parameter uncertainties:
  1  2.39481
  2  41.1523
  3  58.1886
  4  4.54573e-06
  5  8.47482
  6  8.87621
  7  9.54802e-06
  8  25.397
  9  5.28643e-06
  10  4.20636e-06
  11  15.7578
  12  33.5228
  13  14.3105
  14  89.7844
  15  1.37152e-05
  16  4.34213
  17  2.65899e-05
  18  0.796375
  19  117.578
  20  10.0751
  21  11.2966
  22  13.6594
  23  0.306552
  24  0.170142
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.419e+01  1.431e+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.078e+00  1.701e-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:  8.102e-01  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.47
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 6.59e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.61e-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) = 6670.89641582
delta logL = 0.00833191694255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6670.89406377
delta logL = 0.0106839689397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.342       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7713       1.0000          .0000       10.000    
     3 'Normalizat'    .80171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0813       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=   6670.894     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.342        269.10        .20727E-02    .39957E-03
   2  Index         2.7715        6.3827        .21202        .60930E-04
   3  Normalizat    .80161        .11364        .89250E-01    .28454E-04
   4  Prefactor     1.0813        .63605E-01    .38345E-01    .22277E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3424
  Index      = 2.77152
  Normalizat = 0.801612
  Prefactor  = 1.08133
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.894     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.342        15.390        .82908E-04   -1.4741    
   2  Index         2.7715        .63212        .74730E-02   -.46195    
   3  Normalizat    .80161        .28750        .39532E-03   -1.0001    
   4  Prefactor     1.0813        .16847        .20536E-03   -.90066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4256e-10
Minuit parameter uncertainties:
  1  15.3925
  2  0.634237
  3  0.288048
  4  0.168553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261178': 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) = 6670.89406362
delta logL = 0.0106841227025

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.334e+01  1.539e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.772e+00  6.342e-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.081e+00  1.686e-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:  8.016e-01  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.43
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.77 +/- 0.63
Photon Flux (Free Index): 1.18e-07 +/- 7.93e-08
Energy Flux (Free Index): 2.69e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/261178/cmap_HighResolution_533001601_533260801_4FGL_J2219.2-0342_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='2.69e-05', photon_flux_error='6.59e-08', dlogl='1.07e-02', energy_flux='2.72e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-28 09:27:57.767456', photon_index_error2='0.63', photon_index2='2.77', ts='5.47', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.81', time_epoch_completed='1632846477.77', return_code='0', job_id='261178', GAL2='1.08', EG2='0.80', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.93e-08', ts2='5.43', photon_index='2.68' WHERE bin_id='1133' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 261178: <4FGL_J2219.2-0342_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1133 334.823 -3.7102 533001601 533260801 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 :                                   604.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

