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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1080
RA = 334.823, Dec = -3.7102
tmin = 519264001, tmax = 519523201
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='261092', job_status='RUN', time_executed='2021-09-28 09:15:28.380337', time_epoch_executed='1632845728.38' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261092/ft1_4FGL_J2219.2-0342_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261092/ft1_4FGL_J2219.2-0342_daily_bin1080.fits outfile=/scratch/kocevski/261092/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1080.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=519264001.0 tmax=519523201.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.49
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.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/261092/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1080.fits evtable="EVENTS" outfile="/scratch/kocevski/261092/ft1_filtered_4FGL_J2219.2-0342_daily_bin1080.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/261092/ft1_filtered_4FGL_J2219.2-0342_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/261092/ltcube_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.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/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits
.....................!
real 12.05
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261092/ft1_filtered_4FGL_J2219.2-0342_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/261092/ltcube_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.fits outfile=/scratch/kocevski/261092/expmap_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.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/261092/ltcube_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.fits
.....................!
real 191.37
user 185.79
sys 5.18

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/261092/ft1_filtered_4FGL_J2219.2-0342_daily_bin1080.fits scfile=/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits outfile=/scratch/kocevski/261092/cmap_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261092/ft1_filtered_4FGL_J2219.2-0342_daily_bin1080.fits scfile=/scratch/kocevski/261092/ft2_4FGL_J2219.2-0342_daily_bin1080.fits outfile=/scratch/kocevski/261092/cmap_HighResolution_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6360       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.365       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.68       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.608       1.0000         .10000E-03   10000.    
    20 'norm      '    .60107       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.260       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2449       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83554       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=   7249.583     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     3110 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1687        .89323E-03** at limit **
   2  Prefactor     51.656        42.880        .55804E-04    .16502E-04
   3  Prefactor     .10000E-03    74.538        .18142E-02** at limit **
   4  Prefactor     .10000E-03    10.256        .18142E-02** at limit **
   5  Prefactor     5.4358        6.2411        .86174E-03    .69908E-04
   6  Prefactor     2.6363        3.6390        .18592E-03    .67264E-06
   7  Prefactor     10.364        8.7988        .12446E-03    .12058E-04
   8  Prefactor     .10000E-03    11.172        .18142E-02** at limit **
   9  Prefactor     16.207        14.258        .99486E-04    .13713E-04
  10  Prefactor     .10000E-03    8.5836        .18142E-02** at limit **
  11  Prefactor     30.117        16.724        .73011E-04    .56056E-05
  12  Prefactor     26.103        28.954        .78414E-04    .11454E-04
  13  Prefactor     9.2471        8.7737        .13180E-03    .21910E-04
  14  Prefactor     106.62        88.029        .19468E-03   -.35623E-04
  15  Prefactor     .10000E-03    2.4866        .25843E-03** at limit **
  16  norm          4.4211        3.5512        .13600E-03   -.47648E-05
  17  Prefactor     .10000E-03    31.232        .18142E-02** at limit **
  18  norm          1.4984        .90896        .61032E-04    .40980E-05
  19  Prefactor     59.743        52.074        .51966E-04    .20302E-03
  20  norm          .59450        4.8929        .18046E-03    .36248E-03
  21  Prefactor     11.262        11.534        .11939E-03    .14093E-04
  22  norm          .10000E-03    4.9788        .18142E-02** at limit **
  23  Normalizat    1.2445        .26058        .30092E-03    .13578E-03
  24  Prefactor     .83578        .14702        .21190E-03    .57783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.6561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43577
  Prefactor  = 2.63626
  Prefactor  = 10.3639
  Prefactor  = 0.0001
  Prefactor  = 16.2066
  Prefactor  = 0.0001
  Prefactor  = 30.1166
  Prefactor  = 26.1033
  Prefactor  = 9.24707
  Prefactor  = 106.623
  Prefactor  = 0.0001
  norm       = 4.42112
  Prefactor  = 0.0001
  norm       = 1.4984
  Prefactor  = 59.7428
  norm       = 0.5945
  Prefactor  = 11.2617
  norm       = 0.0001
  Normalizat = 1.2445
  Prefactor  = 0.835775
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.583     FROM HESSE     STATUS=OK           375 CALLS     3485 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1688        .17865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.656        42.851        .22322E-05   -1.4269    
   3  Prefactor     .10000E-03    74.561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4358        6.2407        .34470E-04   -1.5242    
   6  Prefactor     2.6363        3.6389        .74367E-05   -1.5383    
   7  Prefactor     10.364        8.7985        .49782E-05   -1.5064    
   8  Prefactor     .10000E-03    11.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.207        14.257        .39794E-05   -1.4903    
  10  Prefactor     .10000E-03    8.5843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.117        16.723        .29205E-05   -1.4610    
  12  Prefactor     26.103        28.947        .31365E-05   -1.4686    
  13  Prefactor     9.2471        8.7735        .52719E-05   -1.5100    
  14  Prefactor     106.62        88.022        .77871E-05   -1.3639    
  15  Prefactor     .10000E-03    2.4866        .51687E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4211        3.5510        .54400E-05   -1.5287    
  17  Prefactor     .10000E-03    31.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4984        .90892        .24413E-05   -1.5463    
  19  Prefactor     59.743        51.579        .10393E-04   -1.4161    
  20  norm          .59450        4.7988        .72186E-05   -1.5554    
  21  Prefactor     11.262        11.534        .47755E-05   -1.5037    
  22  norm          .10000E-03    4.9794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2445        .26080        .12037E-04   -.85238    
  24  Prefactor     .83578        .14716        .84758E-05   -.98423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38238e-10
Minuit parameter uncertainties:
  1  2.14832e-07
  2  42.877
  3  9.37073e-05
  4  8.5603e-06
  5  6.24144
  6  3.63924
  7  8.79958
  8  2.64173e-06
  9  14.2604
  10  7.45655e-06
  11  16.7261
  12  28.9624
  13  8.77474
  14  88.1298
  15  7.01879e-06
  16  3.55113
  17  2.86836e-05
  18  0.90893
  19  51.6175
  20  3.37817
  21  11.5365
  22  5.74065e-06
  23  0.261076
  24  0.147231
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.247e+00  8.775e+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.358e-01  1.472e-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.245e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.87e-06

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

Saving results to:
/scratch/kocevski/261092/likelihoodResults_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.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) = 7248.61603494
delta logL = 0.967382499653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7248.58178954
delta logL = 1.00162789779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.958       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7374       1.0000          .0000       10.000    
     3 'Normalizat'    1.2754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81931       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=   7248.582     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.964        9.1623        .28961E-02    .42941E-03
   2  Index         1.7377        .34828        .20748       -.84615E-04
   3  Normalizat    1.2755        .20570        .67271E-01    .16178E-03
   4  Prefactor     .81926        .12202        .43968E-01    .83427E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9641
  Index      = 1.73769
  Normalizat = 1.27549
  Prefactor  = 0.819259
 **********
 **   18 **HESSE 
 **********

 FCN=   7248.582     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.964        10.821        .57923E-03   -1.5016    
   2  Index         1.7377        .49551        .76237E-02   -.71083    
   3  Normalizat    1.2755        .24315        .29761E-03   -.84301    
   4  Prefactor     .81926        .14422        .21362E-03   -.99022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33114e-09
Minuit parameter uncertainties:
  1  10.823
  2  0.496936
  3  0.24337
  4  0.144291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261092': 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) = 7248.5817893
delta logL = 1.00162813829

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.196e+01  1.082e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.738e+00  4.969e-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.193e-01  1.443e-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.275e+00  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.74 +/- 0.50
Photon Flux (Free Index): 2.70e-08 +/- 2.68e-08
Energy Flux (Free Index): 3.91e-05 +/- 4.67e-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/261092/cmap_HighResolution_519264001_519523201_4FGL_J2219.2-0342_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='3.91e-05', photon_flux_error='4.04e-08', dlogl='1.00e+00', energy_flux='1.04e-05', photon_flux2='2.70e-08', job_status='DONE', time_completed='2021-09-28 09:27:40.868836', photon_index_error2='0.50', photon_index2='1.74', ts='1.80', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='4.67e-05', EG='1.24', time_epoch_completed='1632846460.87', return_code='0', job_id='261092', GAL2='0.82', EG2='1.28', return_code2='0', energy_flux_error='9.87e-06', photon_flux_error2='2.68e-08', ts2='3.80', photon_index='2.68' WHERE bin_id='1080' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 261092: <4FGL_J2219.2-0342_daily_bin1080> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1080> 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) <bullet0251>, 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:27:41 2021
Results reported at Tue Sep 28 09:27:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1080 334.823 -3.7102 519264001 519523201 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 :                                   732.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            749 sec.

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

