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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin549
RA = 334.823, Dec = -3.7102
tmin = 381628801, tmax = 381888001
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='258210', job_status='RUN', time_executed='2021-09-28 09:08:50.144585', time_epoch_executed='1632845330.14' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258210

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258210/ft1_4FGL_J2219.2-0342_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258210/ft1_4FGL_J2219.2-0342_daily_bin549.fits outfile=/scratch/kocevski/258210/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin549.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=381628801.0 tmax=381888001.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.97
user 3.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.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/258210/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.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/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/258210/ltcube_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.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/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits
.....................!
real 11.80
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/258210/ltcube_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.fits outfile=/scratch/kocevski/258210/expmap_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.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/258210/ltcube_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.fits
.....................!
real 189.26
user 184.87
sys 4.07

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/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits outfile=/scratch/kocevski/258210/cmap_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.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/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits outfile=/scratch/kocevski/258210/cmap_HighResolution_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/258210/ft2_4FGL_J2219.2-0342_daily_bin549.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258210/Model_4FGL_J2219.2-0342_daily_bin549.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/258210/ft1_filtered_4FGL_J2219.2-0342_daily_bin549.fits.....................!
real 58.94
user 57.59
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64004       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.310       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9755       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7326       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20545       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1392       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3674       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15740E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .35656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3370       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52070E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.600       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2057       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95937       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=   5847.302     FROM MIGRAD    STATUS=CONVERGED    981 CALLS     3219 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64063        2.5184        .22918E-03    .60518E-05
   2  Prefactor     .10000E-03    15.285        .18142E-02** at limit **
   3  Prefactor     .10000E-03    19.899        .18142E-02** at limit **
   4  Prefactor     69.334        67.394        .48215E-04    .28059E-04
   5  Prefactor     13.061        9.8049        .11083E-03   -.10668E-04
   6  Prefactor     1.9765        9.9973        .29495E-03    .48180E-05
   7  Prefactor     6.7318        11.104        .15464E-03   -.27348E-04
   8  Prefactor     .10000E-03    32.279        .18142E-02** at limit **
   9  Prefactor     .19627        11.255        .83032E-01    .25395E-03
  10  Prefactor     9.1393        13.296        .13257E-03   -.21010E-04
  11  Prefactor     8.3675        15.963        .69295E-03   -.27842E-04
  12  Prefactor     .10001E-03    221.39        .36285E-03** at limit **
  13  Prefactor     7.2455        13.143        .14905E-03   -.47062E-04
  14  Prefactor     .10000E-03    28.115        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1.2671        .83966E-03** at limit **
  16  norm          .33338        9.3040        .21160E-02    .20013E-02
  17  Prefactor     .10000E-03    25.403        .18142E-02** at limit **
  18  norm          5.3361        1.8635        .59005E-04   -.34184E-03
  19  Prefactor     .10000E-03    21.211        .96948E-01** at limit **
  20  norm          .10000E-03    1.1475        .15601E-02** at limit **
  21  Prefactor     .10000E-03    6.0048        .18142E-02** at limit **
  22  norm          17.604        15.945        .95469E-04   -.22149E-04
  23  Normalizat    1.2052        .30580        .30995E-03   -.10945E-03
  24  Prefactor     .95953        .17080        .20357E-03    .86562E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.640632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.3337
  Prefactor  = 13.0607
  Prefactor  = 1.97649
  Prefactor  = 6.73179
  Prefactor  = 0.0001
  Prefactor  = 0.196265
  Prefactor  = 9.13932
  Prefactor  = 8.36753
  Prefactor  = 0.000100007
  Prefactor  = 7.24548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.333384
  Prefactor  = 0.0001
  norm       = 5.33614
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6041
  Normalizat = 1.20524
  Prefactor  = 0.959533
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.302     FROM HESSE     STATUS=OK           395 CALLS     3614 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64063        2.5179        .91673E-05   -1.5548    
   2  Prefactor     .10000E-03    15.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.334        67.390        .96430E-05   -1.4041    
   5  Prefactor     13.061        9.8045        .44333E-05   -1.4985    
   6  Prefactor     1.9765        9.9850        .11798E-04   -1.5427    
   7  Prefactor     6.7318        11.104        .61856E-05   -1.5189    
   8  Prefactor     .10000E-03    32.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19627        11.001        .84853E-01   -1.5619    
  10  Prefactor     9.1393        13.294        .53030E-05   -1.5103    
  11  Prefactor     8.3675        15.958        .27718E-04   -1.5129    
  12  Prefactor     .10001E-03    221.41        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2455        13.143        .59619E-05   -1.5170    
  14  Prefactor     .10000E-03    28.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2672        .16793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33338        9.2870        .42320E-03   -1.5593    
  17  Prefactor     .10000E-03    25.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3361        1.8635        .11801E-04   -1.5246    
  19  Prefactor     .10000E-03    20.202        .10055       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1484        .31203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.604        15.944        .38188E-05   -1.4869    
  23  Normalizat    1.2052        .30575        .12398E-04   -.86441    
  24  Prefactor     .95953        .17098        .81428E-05   -.94091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56598e-10
Minuit parameter uncertainties:
  1  2.51831
  2  1.04437e-05
  3  8.22537e-06
  4  67.4645
  5  9.80572
  6  8.88702
  7  11.1069
  8  2.73257e-06
  9  2.93856
  10  13.2984
  11  15.966
  12  0.00243921
  13  13.1484
  14  8.89768e-06
  15  2.88301e-06
  16  3.51925
  17  3.20326e-05
  18  1.86355
  19  0.000609819
  20  2.89769e-06
  21  4.47092e-06
  22  15.9474
  23  0.306206
  24  0.171073
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.245e+00  1.315e+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:  9.595e-01  1.711e-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.205e+00  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258210/likelihoodResults_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.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) = 5847.10563367
delta logL = 0.196826716793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5847.09580463
delta logL = 0.206655757018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0859       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9668       1.0000          .0000       10.000    
     3 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97954       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=   5847.096     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0809        94.139        .57719E-02    .55863E-03
   2  Index         3.9681        6.9748        .20607        .83775E-04
   3  Normalizat    1.1592        .65443E-01    .71251E-01    .11364E-04
   4  Prefactor     .97952        .38747E-01    .46011E-01    .14788E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08095
  Index      = 3.96808
  Normalizat = 1.15917
  Prefactor  = 0.979515
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0809        209.96        .15284E-03   -1.5357    
   2  Index         3.9681        5.2023        .10034E-01   -.20788    
   3  Normalizat    1.1592        .28178        .31529E-03   -.87874    
   4  Prefactor     .97952        .17438        .20172E-03   -.93415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33209e-09
Minuit parameter uncertainties:
  1  51.0546
  2  12.927
  3  0.282149
  4  0.174476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258210': 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) = 5847.09580449
delta logL = 0.206655895034

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.081e+00  5.105e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.968e+00  1.293e+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:  9.795e-01  1.745e-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.159e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.36
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/258210/cmap_HighResolution_381628801_381888001_4FGL_J2219.2-0342_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-28 09:19:45.418723', job_id='258210', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.21', time_epoch_completed='1632845985.42', return_code2='102', ts='0.36', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.07e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='549' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:19:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 258210: <4FGL_J2219.2-0342_daily_bin549> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin549> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:05:35 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:05:37 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:37 2021
Terminated at Tue Sep 28 09:19:46 2021
Results reported at Tue Sep 28 09:19:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin549 334.823 -3.7102 381628801 381888001 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 :                                   655.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

