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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin6
RA = 334.823, Dec = -3.7102
tmin = 240883201, tmax = 241142401
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='255260', job_status='RUN', time_executed='2021-09-28 08:57:17.989731', time_epoch_executed='1632844637.99' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255260/ft1_4FGL_J2219.2-0342_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255260/ft1_4FGL_J2219.2-0342_daily_bin6.fits outfile=/scratch/kocevski/255260/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin6.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=240883201.0 tmax=241142401.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.50
user 1.34
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255260/ft1_filtered_4FGL_J2219.2-0342_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/255260/ltcube_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.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/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits
.....................!
real 12.72
user 12.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255260/ft1_filtered_4FGL_J2219.2-0342_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/255260/ltcube_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.fits outfile=/scratch/kocevski/255260/expmap_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.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/255260/ltcube_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.fits
.....................!
real 189.74
user 184.85
sys 4.44

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/255260/ft1_filtered_4FGL_J2219.2-0342_daily_bin6.fits scfile=/scratch/kocevski/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits outfile=/scratch/kocevski/255260/cmap_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255260/ft1_filtered_4FGL_J2219.2-0342_daily_bin6.fits scfile=/scratch/kocevski/255260/ft2_4FGL_J2219.2-0342_daily_bin6.fits outfile=/scratch/kocevski/255260/cmap_HighResolution_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .98417E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.163       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.338       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0613       1.0000         .10000E-03   10000.    
    16 'norm      '    14.739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
    18 'norm      '    .30246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4601       1.0000         .10000E-03   10000.    
    22 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80608       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=   8984.117     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     3173 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .82580        .15754E-06** at limit **
   2  Prefactor     41.998        28.628       -.13874E-05   -.27713E-03
   3  Prefactor     33.771        28.138       -.25543E-05   -.44107E-03
   4  Prefactor     .10310E-03    28.540       -.34749E-05** at limit **
   5  Prefactor     .10000E-03    3.3297        .72137E-07** at limit **
   6  Prefactor     .10000E-03    4.1371       -.54763E-07** at limit **
   7  Prefactor     .10000E-03    14.466        .39719E-06** at limit **
   8  Prefactor     23.161        15.127        .17130E-05    .74743E-03
   9  Prefactor     .10000E-03    8.4805       -.30630E-07** at limit **
  10  Prefactor     .10000E-03    4.3958        .32558E-07** at limit **
  11  Prefactor     5.7409        8.7073        .29555E-05   -.96544E-03
  12  Prefactor     7.9483        21.179        .28562E-05    .21015E-03
  13  Prefactor     5.2778        7.4495        .16804E-06   -.58672E-04
  14  Prefactor     13.336        56.844       -.20685E-05   -.15910E-04
  15  Prefactor     5.0619        3.5552       -.15603E-07   -.22533E-03
  16  norm          14.739        4.1284        .21614E-06    .46838E-03
  17  Prefactor     11.135        41.139       -.36848E-05   -.87465E-04
  18  norm          .30189        .60633        .14889E-06   -.39853E-04
  19  Prefactor     .10000E-03    7.4053        .25995E-07** at limit **
  20  norm          .10000E-03    .30898       -.88949E-08** at limit **
  21  Prefactor     4.4601        5.2131        .38209E-07   -.32281E-04
  22  norm          .10000E-03    15.535       -.17622E-06** at limit **
  23  Normalizat    1.0265        .16799       -.65699E-06    .13505E-03
  24  Prefactor     .80625        .97641E-01    .16092E-07    .14445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.9975
  Prefactor  = 33.7707
  Prefactor  = 0.000103099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74087
  Prefactor  = 7.94833
  Prefactor  = 5.27783
  Prefactor  = 13.336
  Prefactor  = 5.06194
  norm       = 14.7394
  Prefactor  = 11.1353
  norm       = 0.301892
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.46011
  norm       = 0.0001
  Normalizat = 1.02651
  Prefactor  = 0.806251
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.117     FROM HESSE     STATUS=OK           409 CALLS     3582 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4446        .16709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.998        28.932        .61866E-04   -1.4411    
   3  Prefactor     33.771        28.951        .68977E-04   -1.4545    
   4  Prefactor     .10310E-03    27.529        .14343       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3541        .16857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.999        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.161        15.340        .83228E-04   -1.4745    
   9  Prefactor     .10000E-03    8.5320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7409        10.434        .83827E-03   -1.5229    
  12  Prefactor     7.9483        21.254        .14221E-03   -1.5144    
  13  Prefactor     5.2778        7.4337        .17496E-03   -1.5248    
  14  Prefactor     13.336        56.692        .10968E-03   -1.4977    
  15  Prefactor     5.0619        3.5450        .13879E-03   -1.5258    
  16  norm          14.739        4.1431        .94183E-04   -1.4940    
  17  Prefactor     11.135        41.425        .12000E-03   -1.5040    
  18  norm          .30189        .47755        .10211E-02   -1.5598    
  19  Prefactor     .10000E-03    7.4455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .31324        .51422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4601        5.2090        .19066E-03   -1.5286    
  22  norm          .10000E-03    16.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0265        .20216        .28173E-03   -.92147    
  24  Prefactor     .80625        .11690        .18996E-03   -.99498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58587e-09
Minuit parameter uncertainties:
  1  3.92984e-05
  2  28.9419
  3  28.9626
  4  0.0184814
  5  1.69839e-05
  6  2.99329e-06
  7  6.99574e-05
  8  15.3428
  9  6.23978e-06
  10  1.00254e-06
  11  10.4375
  12  21.2745
  13  7.43501
  14  55.0815
  15  3.54518
  16  4.1432
  17  41.5323
  18  0.477559
  19  1.19655e-06
  20  2.65793e-07
  21  5.20958
  22  2.25411e-05
  23  0.202315
  24  0.11694
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.278e+00  7.435e+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.063e-01  1.169e-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.027e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/255260/likelihoodResults_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.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) = 8984.11717125
delta logL = 2.50900375249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8984.11716367
delta logL = 3.26748431689e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2931       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6725       1.0000          .0000       10.000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80617       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=   8984.117     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      271 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2942        7.7211        .17470E-03   -.81918E-03
   2  Index         2.6729        1.1419        .12244E-01   -.17142E-03
   3  Normalizat    1.0267        .19236        .28171E-03    .10429E-02
   4  Prefactor     .80617        .11590        .18997E-03    .15865E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29421
  Index      = 2.67294
  Normalizat = 1.02672
  Prefactor  = 0.806166
 **********
 **   18 **HESSE 
 **********

 FCN=   8984.117     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2942        7.5762        .69879E-05   -1.5248    
   2  Index         2.6729        1.1205        .48977E-03   -.48410    
   3  Normalizat    1.0267        .19247        .56341E-04   -.92140    
   4  Prefactor     .80617        .11594        .37994E-04   -.99501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78735e-09
Minuit parameter uncertainties:
  1  7.57755
  2  1.13288
  3  0.192603
  4  0.115979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255260': 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) = 8984.11716353
delta logL = 3.28160404024e-05

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.294e+00  7.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.673e+00  1.133e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  8.062e-01  1.160e-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.027e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/255260/cmap_HighResolution_240883201_241142401_4FGL_J2219.2-0342_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 09:11:17.956928', job_id='255260', GAL2='0.81', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632845477.96', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.28e-05', ts2='0.67', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='6' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 255260: <4FGL_J2219.2-0342_daily_bin6> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin6> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:22 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:23 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:23 2021
Terminated at Tue Sep 28 09:11:18 2021
Results reported at Tue Sep 28 09:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin6 334.823 -3.7102 240883201 241142401 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 :                                   841.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

