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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin588
RA = 334.823, Dec = -3.7102
tmin = 391737601, tmax = 391996801
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='258266', job_status='RUN', time_executed='2021-09-28 09:09:37.985774', time_epoch_executed='1632845377.99' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258266

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258266/ft1_4FGL_J2219.2-0342_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258266/ft1_4FGL_J2219.2-0342_daily_bin588.fits outfile=/scratch/kocevski/258266/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin588.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=391737601.0 tmax=391996801.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.28
user 3.07
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.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/258266/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/258266/ft1_filtered_4FGL_J2219.2-0342_daily_bin588.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/258266/ft1_filtered_4FGL_J2219.2-0342_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/258266/ltcube_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.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/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits
.....................!
real 11.66
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258266/ft1_filtered_4FGL_J2219.2-0342_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/258266/ltcube_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.fits outfile=/scratch/kocevski/258266/expmap_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.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/258266/ltcube_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.fits
.....................!
real 191.33
user 186.61
sys 4.35

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/258266/ft1_filtered_4FGL_J2219.2-0342_daily_bin588.fits scfile=/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits outfile=/scratch/kocevski/258266/cmap_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258266/ft1_filtered_4FGL_J2219.2-0342_daily_bin588.fits scfile=/scratch/kocevski/258266/ft2_4FGL_J2219.2-0342_daily_bin588.fits outfile=/scratch/kocevski/258266/cmap_HighResolution_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    73.494       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.317       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14252E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.947       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4194       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43869E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3293       1.0000         .10000E-03   10000.    
    16 'norm      '    .69494E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.545       1.0000         .10000E-03   10000.    
    18 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.8814       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71782       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0296       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=   6771.044     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2771 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1179        2.5102        .17850E-06   -.31301E-03
   2  Prefactor     73.475        50.122       -.39633E-05    .12759E-04
   3  Prefactor     .10000E-03    13.373        .26675E-05** at limit **
   4  Prefactor     14.557        49.803       -.38787E-05    .12018E-05
   5  Prefactor     .10000E-03    4.2180        .17843E-06** at limit **
   6  Prefactor     19.320        7.7962       -.50120E-06   -.12437E-02
   7  Prefactor     .10000E-03    12.673       -.38726E-05** at limit **
   8  Prefactor     .10001E-03    39.156        .11013E-05** at limit **
   9  Prefactor     3.1676        18.336        .21838E-05   -.53379E-04
  10  Prefactor     .10000E-03    7.9151        .21701E-07** at limit **
  11  Prefactor     .10000E-03    11.363        .10584E-05** at limit **
  12  Prefactor     20.988        30.775       -.31044E-04   -.67092E-05
  13  Prefactor     5.4192        8.4172       -.61756E-06   -.35900E-04
  14  Prefactor     .10000E-03    356.20       -.12673E-04** at limit **
  15  Prefactor     4.3293        3.7342       -.15286E-05   -.86900E-05
  16  norm          .10004E-03    1.2300       -.15347E-05** at limit **
  17  Prefactor     42.642        60.239        .73094E-04    .89077E-04
  18  norm          .10000E-03    .33840       -.42691E-07** at limit **
  19  Prefactor     .10000E-03    5.3057       -.46342E-07** at limit **
  20  norm          .10000E-03    .50796       -.53262E-07** at limit **
  21  Prefactor     .10000E-03    2.6152       -.21645E-07** at limit **
  22  norm          7.8807        8.6766       -.31529E-06   -.38492E-04
  23  Normalizat    .71790        .20023        .22895E-05    .30763E-03
  24  Prefactor     1.0296        .11993       -.77341E-06    .72486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.11786
  Prefactor  = 73.4745
  Prefactor  = 0.0001
  Prefactor  = 14.5568
  Prefactor  = 0.0001
  Prefactor  = 19.32
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 3.16758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.988
  Prefactor  = 5.41916
  Prefactor  = 0.0001
  Prefactor  = 4.32927
  norm       = 0.000100037
  Prefactor  = 42.6418
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.88065
  Normalizat = 0.717902
  Prefactor  = 1.0296
 **********
 **   18 **HESSE 
 **********

 FCN=   6771.044     FROM HESSE     STATUS=OK           399 CALLS     3170 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1179        2.4901        .13389E-03   -1.5417    
   2  Prefactor     73.475        49.944        .46832E-04   -1.3992    
   3  Prefactor     .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.557        49.710        .10493E-03   -1.4945    
   5  Prefactor     .10000E-03    4.2270        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.320        7.8148        .45565E-03   -1.4829    
   7  Prefactor     .10000E-03    12.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    40.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1676        18.232        .22762E-03   -1.5352    
  10  Prefactor     .10000E-03    7.9262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.988        30.805        .87515E-04   -1.4791    
  13  Prefactor     5.4192        8.3843        .17262E-03   -1.5242    
  14  Prefactor     .10000E-03    369.85        .38755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3293        3.7174        .13718E-03   -1.5292    
  16  norm          .10004E-03    18.195        .17434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.642        60.152        .61460E-04   -1.4401    
  18  norm          .10000E-03    .62994        .93178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .53217        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6160        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.8807        8.6747        .14283E-03   -1.5146    
  23  Normalizat    .71790        .23156        .33501E-03   -1.0319    
  24  Prefactor     1.0296        .14096        .17606E-03   -.91749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28672e-09
Minuit parameter uncertainties:
  1  2.49027
  2  49.9721
  3  2.08931e-06
  4  49.8524
  5  3.33026e-05
  6  7.81518
  7  5.20921e-05
  8  0.00106333
  9  15.2056
  10  1.75926e-05
  11  1.96482e-05
  12  30.8288
  13  8.38607
  14  0.000616429
  15  3.7176
  16  0.00164205
  17  60.2376
  18  4.03562e-06
  19  1.23713e-05
  20  3.41228e-06
  21  2.91594e-06
  22  8.67608
  23  0.231872
  24  0.141009
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.419e+00  8.386e+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:  1.030e+00  1.410e-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:  7.179e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258266/likelihoodResults_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.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) = 6770.92103058
delta logL = 0.123065574384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6770.91327261
delta logL = 0.130823544037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3491       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0967       1.0000          .0000       10.000    
     3 'Normalizat'    .73190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   6770.913     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3539        10.155        .39824E-02    .69376E-04
   2  Index         2.0977        .82352        .25260       -.50311E-04
   3  Normalizat    .73196        .19154        .75004E-01    .28807E-04
   4  Prefactor     1.0228        .11926        .41875E-01   -.10869E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35395
  Index      = 2.09765
  Normalizat = 0.731957
  Prefactor  = 1.02275
 **********
 **   18 **HESSE 
 **********

 FCN=   6770.913     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3539        8.7529        .15930E-03   -1.5204    
   2  Index         2.0977        .93444        .13796E-01   -.61930    
   3  Normalizat    .73196        .22445        .33201E-03   -1.0264    
   4  Prefactor     1.0228        .13997        .17656E-03   -.91975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18232e-09
Minuit parameter uncertainties:
  1  8.7547
  2  0.942844
  3  0.22473
  4  0.140022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258266': 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) = 6770.91327195
delta logL = 0.130824203916

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  6.354e+00  8.755e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.098e+00  9.428e-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.023e+00  1.400e-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:  7.320e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/258266/cmap_HighResolution_391737601_391996801_4FGL_J2219.2-0342_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-28 09:20:50.246949', job_id='258266', GAL2='1.02', fit_tolerance='1e-08', EG2='0.73', EG='0.72', time_epoch_completed='1632846050.25', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.31e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='588' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:20:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 258266: <4FGL_J2219.2-0342_daily_bin588> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin588> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:40 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:41 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:05:41 2021
Terminated at Tue Sep 28 09:20:51 2021
Results reported at Tue Sep 28 09:20:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin588 334.823 -3.7102 391737601 391996801 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 :                                   672.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

