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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1026
RA = 334.823, Dec = -3.7102
tmin = 505267201, tmax = 505526401
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='259966', job_status='RUN', time_executed='2021-09-28 09:11:15.753775', time_epoch_executed='1632845475.75' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259966/ft1_4FGL_J2219.2-0342_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259966/ft1_4FGL_J2219.2-0342_daily_bin1026.fits outfile=/scratch/kocevski/259966/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1026.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=505267201.0 tmax=505526401.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.63
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.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/259966/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1026.fits evtable="EVENTS" outfile="/scratch/kocevski/259966/ft1_filtered_4FGL_J2219.2-0342_daily_bin1026.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/259966/ft1_filtered_4FGL_J2219.2-0342_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/259966/ltcube_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.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/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.fits
.....................!
real 12.08
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259966/ft1_filtered_4FGL_J2219.2-0342_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/259966/ltcube_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.fits outfile=/scratch/kocevski/259966/expmap_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.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/259966/ltcube_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.fits
.....................!
real 191.28
user 185.27
sys 5.61

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259966/ft1_filtered_4FGL_J2219.2-0342_daily_bin1026.fits scfile=/scratch/kocevski/259966/ft2_4FGL_J2219.2-0342_daily_bin1026.fits outfile=/scratch/kocevski/259966/cmap_HighResolution_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7885       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.910       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0451       1.0000         .10000E-03   10000.    
    12 'Prefactor '    123.22       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    86.575       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82518       1.0000         .10000E-03   10000.    
    16 'norm      '    4.7810       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .80401       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18357E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3806       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    27.077       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5331       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68034       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=   6558.694     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     3174 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7888        3.3464        .11673E-03   -.49768E-04
   2  Prefactor     42.127        47.403        .61767E-04    .11044E-05
   3  Prefactor     .10000E-03    17.812        .18142E-02** at limit **
   4  Prefactor     24.778        44.331        .80512E-04   -.21322E-04
   5  Prefactor     .10000E-03    2.2320        .11808E-02** at limit **
   6  Prefactor     .41921        16.138        .28194E-02    .38055E-03
   7  Prefactor     .10000E-03    6.5422        .18142E-02** at limit **
   8  Prefactor     .10000E-03    7.9596        .18142E-02** at limit **
   9  Prefactor     .10000E-03    13.163        .18142E-02** at limit **
  10  Prefactor     20.908        19.363        .87591E-04    .12590E-04
  11  Prefactor     3.0440        10.032        .23251E-03   -.54030E-04
  12  Prefactor     123.29        50.588        .18130E-03   -.17847E-03
  13  Prefactor     .10000E-03    2.3878        .12215E-02** at limit **
  14  Prefactor     86.600        74.233        .43178E-04   -.22275E-04
  15  Prefactor     .82537        2.2337        .19752E-03   -.83578E-03
  16  norm          4.7809        3.4273        .12116E-03    .76095E-04
  17  Prefactor     .10000E-03    40.181        .18142E-02** at limit **
  18  norm          .80403        .72476        .63644E-04   -.11361E-03
  19  Prefactor     .10012E-03    237.37        .71506E-02** at limit **
  20  norm          5.3798        2.1378        .70566E-04   -.13936E-03
  21  Prefactor     .10000E-03    4.9457        .17579E-02** at limit **
  22  norm          27.078        14.369        .76988E-04    .16539E-04
  23  Normalizat    1.5331        .27819        .28253E-03   -.16301E-03
  24  Prefactor     .68029        .15581        .23393E-03    .37763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78876
  Prefactor  = 42.1275
  Prefactor  = 0.0001
  Prefactor  = 24.7782
  Prefactor  = 0.0001
  Prefactor  = 0.419205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9081
  Prefactor  = 3.04396
  Prefactor  = 123.288
  Prefactor  = 0.0001
  Prefactor  = 86.6004
  Prefactor  = 0.825374
  norm       = 4.78089
  Prefactor  = 0.0001
  norm       = 0.804032
  Prefactor  = 0.000100116
  norm       = 5.37983
  Prefactor  = 0.0001
  norm       = 27.0781
  Normalizat = 1.53313
  Prefactor  = 0.68029
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.694     FROM HESSE     STATUS=OK           375 CALLS     3549 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7888        3.3462        .46692E-05   -1.5270    
   2  Prefactor     42.127        47.387        .24707E-05   -1.4409    
   3  Prefactor     .10000E-03    17.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.778        44.302        .32205E-05   -1.4712    
   5  Prefactor     .10000E-03    2.2320        .23615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41921        16.167        .11278E-03   -1.5578    
   7  Prefactor     .10000E-03    6.5438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.908        19.360        .35036E-05   -1.4793    
  11  Prefactor     3.0440        10.031        .93003E-05   -1.5359    
  12  Prefactor     123.29        50.579        .72519E-05   -1.3483    
  13  Prefactor     .10000E-03    2.3878        .24431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     86.600        74.233        .86355E-05   -1.3844    
  15  Prefactor     .82537        2.2335        .79008E-05   -1.5526    
  16  norm          4.7809        3.4270        .48466E-05   -1.5271    
  17  Prefactor     .10000E-03    40.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .80403        .72475        .25457E-05   -1.5529    
  19  Prefactor     .10012E-03    239.11        .28603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3798        2.0987        .28227E-05   -1.5244    
  21  Prefactor     .10000E-03    4.9459        .35158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          27.078        14.367        .30795E-05   -1.4667    
  23  Normalizat    1.5331        .27831        .56506E-04   -.76852    
  24  Prefactor     .68029        .15593        .46785E-04   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80552e-09
Minuit parameter uncertainties:
  1  3.34628
  2  47.4293
  3  1.39152e-05
  4  44.3605
  5  9.78212e-06
  6  5.20746
  7  6.66729e-06
  8  5.95066e-05
  9  2.0416e-05
  10  19.3662
  11  10.0363
  12  50.597
  13  6.39014e-06
  14  74.3123
  15  2.23371
  16  3.42716
  17  6.13667e-05
  18  0.724756
  19  0.0105693
  20  2.09869
  21  1.69464e-06
  22  14.3687
  23  0.278584
  24  0.156027
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.390e-06  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:  6.803e-01  1.560e-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.533e+00  2.786e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259966/likelihoodResults_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.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) = 6558.6961373
delta logL = -0.00195265382445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.69418457
delta logL = 7.11479515303e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6699       1.0000          .0000       10.000    
     3 'Normalizat'    1.5331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68031       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=   6558.694     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.156        .12294E-01** at limit **
   2  Index         2.1677        5.6469        .50000       -.14054E-06
   3  Normalizat    1.5331        .17441E-01    .28253E-03   -.83173E-04
   4  Prefactor     .68028        .10127E-01    .23392E-03   -.90639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16766
  Normalizat = 1.53314
  Prefactor  = 0.680284
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.694     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    208.69        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1677        8.0682        .50000       -.60221    
   3  Normalizat    1.5331        .54847E-01    .11301E-04   -.76851    
   4  Prefactor     .68028        .31847E-01    .93570E-05   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19946e-09
Minuit parameter uncertainties:
  1  9.0791e-05
  2  893.676
  3  0.0548494
  4  0.0318481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259966': 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) = 6558.69418177
delta logL = 2.87682451017e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  9.079e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.168e+00  8.937e+02  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:  6.803e-01  3.185e-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.533e+00  5.485e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/259966/cmap_HighResolution_505267201_505526401_4FGL_J2219.2-0342_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-28 09:22:57.059879', job_id='259966', GAL2='0.68', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1632846177.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1026' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:22:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 259966: <4FGL_J2219.2-0342_daily_bin1026> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1026> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:56 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:10:58 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:10:58 2021
Terminated at Tue Sep 28 09:22:57 2021
Results reported at Tue Sep 28 09:22:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1026 334.823 -3.7102 505267201 505526401 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

