/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 113 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin99
RA = 334.823, Dec = -3.7102
tmin = 264988801, tmax = 265248001
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='255403', job_status='RUN', time_executed='2021-09-28 08:57:37.480922', time_epoch_executed='1632844657.48' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255403/ft1_4FGL_J2219.2-0342_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255403/ft1_4FGL_J2219.2-0342_daily_bin99.fits outfile=/scratch/kocevski/255403/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin99.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=264988801.0 tmax=265248001.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 1.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/255403/ltcube_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.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/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits
.....................!
real 13.60
user 13.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/255403/ltcube_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.fits outfile=/scratch/kocevski/255403/expmap_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.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/255403/ltcube_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.fits
.....................!
real 192.53
user 187.00
sys 5.17

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/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits outfile=/scratch/kocevski/255403/cmap_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.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/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits outfile=/scratch/kocevski/255403/cmap_HighResolution_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.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/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J2219.2-0342_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255403/Model_4FGL_J2219.2-0342_daily_bin99.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/255403/ft1_filtered_4FGL_J2219.2-0342_daily_bin99.fits.....................!
real 79.60
user 78.28
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8249       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4854       1.0000         .10000E-03   10000.    
    16 'norm      '    20.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6835       1.0000         .10000E-03   10000.    
    20 'norm      '    .82271E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.9466       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1527       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8585.596     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2295 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .57520       -.59492E-06** at limit **
   2  Prefactor     .10163E-03    48.394       -.30155E-04** at limit **
   3  Prefactor     .10132E-03    25.650        .22279E-04** at limit **
   4  Prefactor     .10077E-03    17.534       -.22971E-04** at limit **
   5  Prefactor     .10000E-03    2.9270       -.70299E-06** at limit **
   6  Prefactor     .10000E-03    1.4171        .41167E-06** at limit **
   7  Prefactor     7.0679        1.0831       -.56666E-06   -.72570E-03
   8  Prefactor     2.6121        1.1217        .97268E-06    .85518E-04
   9  Prefactor     .10003E-03    17.420        .38604E-05** at limit **
  10  Prefactor     28.895        1.2747        .34808E-06   -.50060E-03
  11  Prefactor     .10000E-03    6.3878        .60794E-06** at limit **
  12  Prefactor     7.8258        1.0232        .28629E-06   -.10349E-03
  13  Prefactor     .10000E-03    3.5391        .11574E-05** at limit **
  14  Prefactor     32.207        3.3444       -.23937E-05    .64069E-02
  15  Prefactor     4.4857        3.5900       -.10220E-05   -.12475E-03
  16  norm          20.794        4.9055        .48161E-05    .30720E-02
  17  Prefactor     .10127E-03    17.669        .90760E-05** at limit **
  18  norm          .10000E-03    .61580       -.48990E-06** at limit **
  19  Prefactor     9.7135        6.8533        .59700E-05   -.51937E-03
  20  norm          .10032E-03    19.211        .28862E-04** at limit **
  21  Prefactor     .10000E-03    2.8621       -.11878E-05** at limit **
  22  norm          7.9477        1.0408        .86993E-08    .73743E-04
  23  Normalizat    1.1525        .21939       -.75980E-05    .44478E-04
  24  Prefactor     .90883        .13060        .29686E-05    .12940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101629
  Prefactor  = 0.000101316
  Prefactor  = 0.000100772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06787
  Prefactor  = 2.6121
  Prefactor  = 0.000100029
  Prefactor  = 28.895
  Prefactor  = 0.0001
  Prefactor  = 7.82577
  Prefactor  = 0.0001
  Prefactor  = 32.2072
  Prefactor  = 4.48565
  norm       = 20.7936
  Prefactor  = 0.000101272
  norm       = 0.0001
  Prefactor  = 9.71349
  norm       = 0.000100322
  Prefactor  = 0.0001
  norm       = 7.94772
  Normalizat = 1.1525
  Prefactor  = 0.908832
 **********
 **   18 **HESSE 
 **********

 FCN=   8585.596     FROM HESSE     STATUS=OK           453 CALLS     2748 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .57220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10163E-03    76.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10132E-03    57.479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10077E-03    22.407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0679        8.7955        .37721E-02   -1.5176    
   8  Prefactor     2.6121        15.114        .63101E-02   -1.5385    
   9  Prefactor     .10003E-03    17.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.895        17.760        .18636E-02   -1.4632    
  11  Prefactor     .10000E-03    6.3220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8258        17.726        .35836E-02   -1.5148    
  13  Prefactor     .10000E-03    3.5166        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.207        68.008        .17648E-02   -1.4572    
  15  Prefactor     4.4857        3.6025        .47528E-02   -1.5284    
  16  norm          20.794        4.9796        .21959E-02   -1.4796    
  17  Prefactor     .10127E-03    26.788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .35445        .30544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7135        20.602        .32194E-02   -1.5085    
  20  norm          .10032E-03    .72428        .49987E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.9477        9.6909        .35559E-02   -1.5144    
  23  Normalizat    1.1525        .18820        .67566E-01   -.88084    
  24  Prefactor     .90883        .10999        .45117E-01   -.95833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15783e-07
Minuit parameter uncertainties:
  1  6.08609e-07
  2  0.0223034
  3  0.0174089
  4  0.0083201
  5  2.08431e-06
  6  9.0858e-06
  7  8.79709
  8  12.5711
  9  0.00142949
  10  17.7633
  11  9.77408e-06
  12  17.7383
  13  2.04882e-05
  14  68.1725
  15  3.60271
  16  4.97968
  17  0.0116791
  18  2.27246e-06
  19  20.617
  20  0.000965134
  21  5.75404e-06
  22  9.69281
  23  0.188312
  24  0.110012
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.049e-05  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:  9.088e-01  1.100e-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.152e+00  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255403/likelihoodResults_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.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): 102
logL (Free Index) = 8585.59688117
delta logL = -0.00134628499291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8585.59553496
delta logL = -7.46586010791e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6745       1.0000          .0000       10.000    
     3 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90884       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=   8585.596     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    105.72        .17003E-02** at limit **
   2  Index         2.6178        7.7529        .50000        .14387E-04
   3  Normalizat    1.1525        .26252E-01    .29893E-03   -.39553E-05
   4  Prefactor     .90883        .15893E-01    .20000E-03   -.54570E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100585
  Index      = 2.61779
  Normalizat = 1.1525
  Prefactor  = 0.908831
 **********
 **   18 **HESSE 
 **********

 FCN=   8585.596     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-03    403.41        .34006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6178        6.2949        .50000       -.49660    
   3  Normalizat    1.1525        .58715E-01    .11957E-04   -.88084    
   4  Prefactor     .90883        .35547E-01    .79999E-05   -.95833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.01916e-08
Minuit parameter uncertainties:
  1  0.0309404
  2  1275.76
  3  0.0587181
  4  0.035548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255403': 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): 102
logL (Free Index) = 8585.59553472
delta logL = 1.67239704751e-07

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.006e-04  3.094e-02  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.618e+00  1.276e+03  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:  9.088e-01  3.555e-02  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.152e+00  5.872e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/255403/cmap_HighResolution_264988801_265248001_4FGL_J2219.2-0342_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-28 09:09:47.205806', job_id='255403', GAL2='0.91', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632845387.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='99' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 255403: <4FGL_J2219.2-0342_daily_bin99> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin99> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:32 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:34 2021
Terminated at Tue Sep 28 09:09:48 2021
Results reported at Tue Sep 28 09:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin99 334.823 -3.7102 264988801 265248001 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 :                                   730.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

