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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1276
RA = 334.823, Dec = -3.7102
tmin = 570067201, tmax = 570326401
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='261402', job_status='RUN', time_executed='2021-09-28 09:19:32.286746', time_epoch_executed='1632845972.29' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261402

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261402/ft1_4FGL_J2219.2-0342_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261402/ft1_4FGL_J2219.2-0342_daily_bin1276.fits outfile=/scratch/kocevski/261402/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1276.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=570067201.0 tmax=570326401.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.60
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/261402/ltcube_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.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/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits
.....................!
real 11.72
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/261402/ltcube_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits outfile=/scratch/kocevski/261402/expmap_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.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/261402/ltcube_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits
.....................!
real 190.64
user 185.70
sys 4.62

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/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits scfile=/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits outfile=/scratch/kocevski/261402/cmap_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.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/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits scfile=/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits outfile=/scratch/kocevski/261402/cmap_HighResolution_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261402/Model_4FGL_J2219.2-0342_daily_bin1276.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/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits.....................!
real 54.60
user 53.35
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits', '/scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits', expMap='/scratch/kocevski/261402/expmap_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits', expCube='/scratch/kocevski/261402/ltcube_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261402/Model_4FGL_J2219.2-0342_daily_bin1276.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/261402/ft1_filtered_4FGL_J2219.2-0342_daily_bin1276.fits
Spacecraft file(s): /scratch/kocevski/261402/ft2_4FGL_J2219.2-0342_daily_bin1276.fits
Exposure map: /scratch/kocevski/261402/expmap_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits
Exposure cube: /scratch/kocevski/261402/ltcube_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261402/Model_4FGL_J2219.2-0342_daily_bin1276.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5337.94493059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4196       1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.30       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14417E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30698E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15782E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57535E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4490       1.0000         .10000E-03   10000.    
    19 'Prefactor '    93.589       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4975       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    26.488       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .40885       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2048       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=   5337.818     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2988 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4202        2.5843        .29010E-06   -.17570E-03
   2  Prefactor     104.30        59.696       -.28878E-07   -.62931E-04
   3  Prefactor     .11142E-03    213.09        .15421E-04** at limit **
   4  Prefactor     8.2504        281.77       -.32766E-05    .56028E-04
   5  Prefactor     .39982        82.134        .51474E-05    .38215E-03
   6  Prefactor     .10000E-03    3.7369       -.38430E-06** at limit **
   7  Prefactor     .10000E-03    6.0972       -.20312E-05** at limit **
   8  Prefactor     .10000E-03    14.124       -.18223E-05** at limit **
   9  Prefactor     .10000E-03    25.086       -.10002E-04** at limit **
  10  Prefactor     12.669        25.223        .93956E-06    .71351E-04
  11  Prefactor     3.4450        20.213        .17244E-06   -.93013E-05
  12  Prefactor     24.618        41.298        .48827E-06    .13019E-04
  13  Prefactor     1.9773        21.040       -.36099E-07    .93120E-05
  14  Prefactor     .10000E-03    982.22       -.20045E-04** at limit **
  15  Prefactor     .10001E-03    2.8861        .37918E-06** at limit **
  16  norm          8.0968        5.5716        .26501E-06    .71711E-04
  17  Prefactor     .10000E-03    288.69       -.90011E-05** at limit **
  18  norm          1.4491        1.2462        .15807E-07    .15997E-03
  19  Prefactor     93.587        71.028        .26219E-05    .52232E-04
  20  norm          4.4976        5.6822       -.76392E-06    .14328E-03
  21  Prefactor     .10000E-03    4.5525        .21345E-07** at limit **
  22  norm          26.494        16.658        .68611E-06    .83985E-04
  23  Normalizat    .40904        .31473       -.10940E-04   -.10872E-03
  24  Prefactor     1.2046        .16598        .30170E-05   -.22586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42021
  Prefactor  = 104.297
  Prefactor  = 0.000111423
  Prefactor  = 8.25045
  Prefactor  = 0.399818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.669
  Prefactor  = 3.44497
  Prefactor  = 24.6176
  Prefactor  = 1.97729
  Prefactor  = 0.000100003
  Prefactor  = 0.00010001
  norm       = 8.09675
  Prefactor  = 0.000100004
  norm       = 1.44915
  Prefactor  = 93.5868
  norm       = 4.49763
  Prefactor  = 0.0001
  norm       = 26.4941
  Normalizat = 0.409043
  Prefactor  = 1.20462
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.818     FROM HESSE     STATUS=OK           417 CALLS     3405 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4202        2.5669        .11512E-03   -1.5397    
   2  Prefactor     104.30        59.591        .39373E-04   -1.3662    
   3  Prefactor     .11142E-03    50.517        .14418       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2504        408.59        .13702E-03   -1.5133    
   5  Prefactor     .39982        137.62        .40679E-02   -1.5582    
   6  Prefactor     .10000E-03    3.7529        .13779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0976        .17595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.669        25.199        .11264E-03   -1.4996    
  11  Prefactor     3.4450        19.719        .21753E-03   -1.5337    
  12  Prefactor     24.618        41.139        .80713E-04   -1.4715    
  13  Prefactor     1.9773        20.410        .29457E-03   -1.5427    
  14  Prefactor     .10000E-03    995.15        .19803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    6.5228        .39431E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0968        5.5382        .13072E-03   -1.5139    
  17  Prefactor     .10000E-03    291.53        .21086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4491        1.2365        .73066E-04   -1.5467    
  19  Prefactor     93.587        73.923        .41543E-04   -1.3770    
  20  norm          4.4976        5.9099        .96746E-04   -1.5284    
  21  Prefactor     .10000E-03    4.5537        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          26.494        16.627        .77837E-04   -1.4678    
  23  Normalizat    .40904        .30883        .47322E-03   -1.1684    
  24  Prefactor     1.2046        .17126        .17293E-03   -.86189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.36308e-09
Minuit parameter uncertainties:
  1  2.56699
  2  59.6247
  3  0.048085
  4  116.976
  5  14.8684
  6  2.90214e-06
  7  3.54717e-05
  8  3.00499e-05
  9  0.000414599
  10  25.2198
  11  16.4922
  12  41.1869
  13  12.7105
  14  0.00349955
  15  0.000503542
  16  5.53856
  17  0.00227234
  18  1.23657
  19  73.9957
  20  5.91065
  21  1.66572e-06
  22  16.6298
  23  0.310132
  24  0.171343
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.977e+00  1.271e+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.205e+00  1.713e-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:  4.090e-01  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261402/likelihoodResults_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.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) = 5337.79688034
delta logL = 0.0211739318556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5337.7894158
delta logL = 0.0286384776819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1811       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8949       1.0000          .0000       10.000    
     3 'Normalizat'    .39194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2113       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=   5337.789     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      282 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1684        51.489        .25315E-03   -.10509E-04
   2  Index         3.9035        6.2144        .96649E-02    .36156E-04
   3  Normalizat    .39170        .28535        .48338E-03   -.11924E-04
   4  Prefactor     1.2114        .16972        .17251E-03    .96611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16835
  Index      = 3.90345
  Normalizat = 0.391701
  Prefactor  = 1.2114
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.789     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1684        14.401        .10126E-04   -1.5492    
   2  Index         3.9035        6.8904        .19330E-02   -.22111    
   3  Normalizat    .39170        .28332        .19335E-04   -1.1773    
   4  Prefactor     1.2114        .16753        .69005E-05   -.85981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28917e-11
Minuit parameter uncertainties:
  1  8.20583
  2  5.50115
  3  0.284363
  4  0.167602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261402': 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) = 5337.78941369
delta logL = 0.0286405828992

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.168e+00  8.206e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.903e+00  5.501e+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:  1.211e+00  1.676e-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:  3.917e-01  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 334.823 -3.710

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/261402/cmap_HighResolution_570067201_570326401_4FGL_J2219.2-0342_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-28 09:29:46.358407', job_id='261402', GAL2='1.21', fit_tolerance='1e-08', EG2='0.39', EG='0.41', time_epoch_completed='1632846586.36', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.86e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1276' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 261402: <4FGL_J2219.2-0342_daily_bin1276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1276 334.823 -3.7102 570067201 570326401 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 :                                   613.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             250.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

