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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1390
RA = 334.823, Dec = -3.7102
tmin = 599616001, tmax = 599875201
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='261579', job_status='RUN', time_executed='2021-09-28 09:16:09.526240', time_epoch_executed='1632845769.53' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261579/ft1_4FGL_J2219.2-0342_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261579/ft1_4FGL_J2219.2-0342_daily_bin1390.fits outfile=/scratch/kocevski/261579/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1390.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=599616001.0 tmax=599875201.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 2.53
user 2.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.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/261579/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/261579/ft1_filtered_4FGL_J2219.2-0342_daily_bin1390.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/261579/ft1_filtered_4FGL_J2219.2-0342_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/261579/ltcube_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.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/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.fits
.....................!
real 13.47
user 13.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261579/ft1_filtered_4FGL_J2219.2-0342_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/261579/ltcube_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.fits outfile=/scratch/kocevski/261579/expmap_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.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/261579/ltcube_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.fits
.....................!
real 191.48
user 186.15
sys 5.00

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261579/ft1_filtered_4FGL_J2219.2-0342_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/261579/ft2_4FGL_J2219.2-0342_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261579/Model_4FGL_J2219.2-0342_daily_bin1390.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/261579/ft1_filtered_4FGL_J2219.2-0342_daily_bin1390.fits.....................!
real 73.66
user 72.31
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13623E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.2960       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .91369E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5433       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.044       1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1334       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84069       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=   8200.056     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2766 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2549       -.12750E-05** at limit **
   2  Prefactor     34.754        36.382        .25029E-05    .12890E-03
   3  Prefactor     .10000E-03    38.415        .92182E-06** at limit **
   4  Prefactor     .10000E-03    27.188       -.29891E-06** at limit **
   5  Prefactor     .10000E-03    3.1680       -.34547E-06** at limit **
   6  Prefactor     .10000E-03    4.6802        .38428E-07** at limit **
   7  Prefactor     1.7611        20.922        .14300E-04   -.11453E-03
   8  Prefactor     27.604        17.646       -.19283E-06    .12422E-05
   9  Prefactor     12.438        18.183       -.29458E-05   -.10820E-04
  10  Prefactor     2.7859        30.366        .67213E-05   -.49908E-04
  11  Prefactor     1.1863        27.264        .12922E-05   -.53299E-04
  12  Prefactor     9.1530        25.593        .81146E-06   -.42470E-05
  13  Prefactor     1.3144        9.0103        .11422E-05   -.21629E-04
  14  Prefactor     40.627        66.511        .73596E-05   -.10337E-03
  15  Prefactor     .10000E-03    2.9732        .48120E-08** at limit **
  16  norm          .10000E-03    1.3318       -.34103E-06** at limit **
  17  Prefactor     .10000E-03    139.98        .14931E-05** at limit **
  18  norm          4.2963        1.4195        .17115E-07    .64513E-03
  19  Prefactor     .10000E-03    86.192       -.72809E-05** at limit **
  20  norm          5.5463        1.9529        .67894E-06    .41447E-02
  21  Prefactor     27.044        12.487        .49856E-07    .13085E-03
  22  norm          .10000E-03    4.8041        .10492E-06** at limit **
  23  Normalizat    1.1333        .18724        .12736E-06    .37784E-03
  24  Prefactor     .84081        .10882       -.15043E-05    .39587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.7542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76108
  Prefactor  = 27.6039
  Prefactor  = 12.4384
  Prefactor  = 2.78594
  Prefactor  = 1.18634
  Prefactor  = 9.153
  Prefactor  = 1.31437
  Prefactor  = 40.6269
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29634
  Prefactor  = 0.000100001
  norm       = 5.54631
  Prefactor  = 27.0445
  norm       = 0.0001
  Normalizat = 1.13327
  Prefactor  = 0.840814
 **********
 **   18 **HESSE 
 **********

 FCN=   8200.056     FROM HESSE     STATUS=OK           391 CALLS     3157 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1123        .19155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.754        35.962        .67940E-04   -1.4528    
   3  Prefactor     .10000E-03    38.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.133        .31208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7611        21.250        .15781E-02   -1.5443    
   8  Prefactor     27.604        17.607        .76251E-04   -1.4657    
   9  Prefactor     12.438        18.127        .11358E-03   -1.5002    
  10  Prefactor     2.7859        29.204        .12190E-02   -1.5374    
  11  Prefactor     1.1863        28.021        .42030E-03   -1.5490    
  12  Prefactor     9.1530        25.548        .13246E-03   -1.5103    
  13  Prefactor     1.3144        8.9070        .38651E-03   -1.5479    
  14  Prefactor     40.627        65.845        .62845E-04   -1.4432    
  15  Prefactor     .10000E-03    3.0761        .30394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3702        .20415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    140.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.2963        1.4189        .59737E-04   -1.5293    
  19  Prefactor     .10000E-03    88.319        .41641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5463        1.9714        .72739E-04   -1.5237    
  21  Prefactor     27.044        12.486        .77034E-04   -1.4667    
  22  norm          .10000E-03    4.8357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1333        .22345        .28771E-03   -.88691    
  24  Prefactor     .84081        .12945        .19692E-03   -.98241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82262e-09
Minuit parameter uncertainties:
  1  2.3276e-05
  2  35.9843
  3  0.000108129
  4  6.98946e-06
  5  3.39887e-05
  6  4.33829e-06
  7  12.24
  8  17.6103
  9  18.1346
  10  18.0509
  11  11.5369
  12  25.5783
  13  6.84431
  14  65.9636
  15  4.10643e-06
  16  1.80566e-05
  17  0.000342207
  18  1.41896
  19  0.000575235
  20  1.97139
  21  12.4875
  22  9.29978e-06
  23  0.223636
  24  0.129501
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.314e+00  6.844e+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.408e-01  1.295e-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.133e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261579/likelihoodResults_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.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) = 8200.04283756
delta logL = 0.0136328534736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8200.04236969
delta logL = 0.0141007188104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4426       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0932       1.0000          .0000       10.000    
     3 'Normalizat'    1.1284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84225       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8200.042     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      256 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4419        8.4343        .17954E-02   -.10268E-02
   2  Index         3.0886        2.6198        .25062E-01    .48602E-04
   3  Normalizat    1.1284        .21761        .28827E-03    .26345E-04
   4  Prefactor     .84225        .12920        .19677E-03    .40098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44187
  Index      = 3.08855
  Normalizat = 1.12843
  Prefactor  = 0.842255
 **********
 **   18 **HESSE 
 **********

 FCN=   8200.042     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4419        6.4923        .71815E-04   -1.5468    
   2  Index         3.0886        2.3357        .10025E-02   -.39227    
   3  Normalizat    1.1284        .21801        .11531E-04   -.88844    
   4  Prefactor     .84225        .12929        .78706E-05   -.98189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38244e-09
Minuit parameter uncertainties:
  1  6.12008
  2  2.44871
  3  0.218187
  4  0.129336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261579': 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) = 8200.04236747
delta logL = 0.0141029419665

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.442e+00  6.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.089e+00  2.449e+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.423e-01  1.293e-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.128e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/261579/cmap_HighResolution_599616001_599875201_4FGL_J2219.2-0342_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-28 09:28:40.821138', job_id='261579', GAL2='0.84', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632846520.82', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1390' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 261579: <4FGL_J2219.2-0342_daily_bin1390> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1390> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:54 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:55 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:15:55 2021
Terminated at Tue Sep 28 09:28:41 2021
Results reported at Tue Sep 28 09:28:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1390 334.823 -3.7102 599616001 599875201 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

