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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin634
RA = 334.823, Dec = -3.7102
tmin = 403660801, tmax = 403920001
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='258331', job_status='RUN', time_executed='2021-09-28 09:05:55.258201', time_epoch_executed='1632845155.26' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258331/ft1_4FGL_J2219.2-0342_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258331/ft2_4FGL_J2219.2-0342_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258331/ft1_4FGL_J2219.2-0342_daily_bin634.fits outfile=/scratch/kocevski/258331/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin634.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.67
user 7.33
sys 0.32

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258331/ft1_filtered_4FGL_J2219.2-0342_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/258331/ft2_4FGL_J2219.2-0342_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/258331/ltcube_403660801_403920001_4FGL_J2219.2-0342_daily_bin634.fits outfile=/scratch/kocevski/258331/expmap_403660801_403920001_4FGL_J2219.2-0342_daily_bin634.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/258331/ltcube_403660801_403920001_4FGL_J2219.2-0342_daily_bin634.fits
.....................!
real 193.28
user 187.10
sys 5.82

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258331/ft1_filtered_4FGL_J2219.2-0342_daily_bin634.fits scfile=/scratch/kocevski/258331/ft2_4FGL_J2219.2-0342_daily_bin634.fits outfile=/scratch/kocevski/258331/cmap_HighResolution_403660801_403920001_4FGL_J2219.2-0342_daily_bin634.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258331/ft1_filtered_4FGL_J2219.2-0342_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/258331/ft2_4FGL_J2219.2-0342_daily_bin634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258331/Model_4FGL_J2219.2-0342_daily_bin634.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/258331/ft1_filtered_4FGL_J2219.2-0342_daily_bin634.fits.....................!
real 44.03
user 42.67
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6387       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16648E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.024       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1357       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.680       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6884       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99668       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68296       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=   3988.274     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2700 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4791         .0000    ** at limit **
   2  Prefactor     43.005        46.140         .0000       -.10568E-03
   3  Prefactor     62.559        54.118         .0000       -.14908E-03
   4  Prefactor     .10000E-03    56.942         .0000    ** at limit **
   5  Prefactor     2.6391        5.8043         .0000        .73655E-03
   6  Prefactor     .10000E-03    4.7261         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.5702         .0000    ** at limit **
   8  Prefactor     .10000E-03    15.585         .0000    ** at limit **
   9  Prefactor     .10000E-03    5.7215         .0000    ** at limit **
  10  Prefactor     .10000E-03    9.0936         .0000    ** at limit **
  11  Prefactor     14.410        13.938         .0000        .16536E-03
  12  Prefactor     25.822        33.252         .0000       -.53971E-04
  13  Prefactor     25.297        14.284         .0000        .12490E-04
  14  Prefactor     .10001E-03    246.37         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.5525         .0000    ** at limit **
  16  norm          10.024        5.1604         .0000        .49284E-04
  17  Prefactor     .10000E-03    46.143         .0000    ** at limit **
  18  norm          1.1357        1.1048         .0000       -.64099E-04
  19  Prefactor     .10000E-03    18.727         .0000    ** at limit **
  20  norm          .10000E-03    .67292         .0000    ** at limit **
  21  Prefactor     15.679        15.919         .0000        .16505E-04
  22  norm          3.6871        13.891         .0000        .22734E-02
  23  Normalizat    .99669        .24042         .0000        .19382E-04
  24  Prefactor     .68298        .13618         .0000        .45079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.0055
  Prefactor  = 62.5588
  Prefactor  = 0.0001
  Prefactor  = 2.63912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.41
  Prefactor  = 25.8224
  Prefactor  = 25.2971
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 10.0241
  Prefactor  = 0.0001
  norm       = 1.13574
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6789
  norm       = 3.68708
  Normalizat = 0.996691
  Prefactor  = 0.682984
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.274     FROM HESSE     STATUS=OK           395 CALLS     3095 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4897        .74911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.005        46.119        .61132E-04   -1.4395    
   3  Prefactor     62.559        54.119        .50734E-04   -1.4124    
   4  Prefactor     .10000E-03    57.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6391        5.7795        .21822E-03   -1.5383    
   6  Prefactor     .10000E-03    4.7531        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5747        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7262        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.410        13.954        .10552E-03   -1.4949    
  12  Prefactor     25.822        33.259        .78828E-04   -1.4691    
  13  Prefactor     25.297        14.304        .79644E-04   -1.4702    
  14  Prefactor     .10001E-03    247.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5567        .76808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.024        5.1756        .97900E-04   -1.5075    
  17  Prefactor     .10000E-03    46.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1357        1.0990        .63634E-04   -1.5495    
  19  Prefactor     .10000E-03    18.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .92292        .10081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.679        15.906        .10115E-03   -1.4916    
  22  norm          3.6871        13.895        .10515E-02   -1.5324    
  23  Normalizat    .99669        .27987        .27156E-03   -.93141    
  24  Prefactor     .68298        .15861        .18942E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52153e-10
Minuit parameter uncertainties:
  1  4.14352e-06
  2  46.1572
  3  54.1618
  4  0.000309465
  5  5.78076
  6  2.76129e-06
  7  7.30979e-06
  8  1.61337e-05
  9  4.47711e-06
  10  1.07331e-05
  11  13.9574
  12  33.2825
  13  14.3058
  14  0.00288671
  15  5.64432e-06
  16  5.17585
  17  1.36087e-05
  18  1.09902
  19  1.97553e-06
  20  1.0628e-06
  21  15.9105
  22  13.907
  23  0.280281
  24  0.158713
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.530e+01  1.431e+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:  6.830e-01  1.587e-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:  9.967e-01  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 6.58e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.61e-05

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) = 3988.26540868
delta logL = 0.00826972976529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3988.26228377
delta logL = 0.0113946416996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.382       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5815       1.0000          .0000       10.000    
     3 'Normalizat'    1.0065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67874       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=   3988.262     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.378        16.409        .77993E-04    .13046E-04
   2  Index         2.5820        .65687        .68876E-02    .90996E-04
   3  Normalizat    1.0063        .27581        .27043E-03   -.45971E-04
   4  Prefactor     .67879        .15947        .18994E-03    .23313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3784
  Index      = 2.58201
  Normalizat = 1.00635
  Prefactor  = 0.678787
 **********
 **   18 **HESSE 
 **********

 FCN=   3988.262     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.378        16.222        .31197E-05   -1.4680    
   2  Index         2.5820        .64885        .13775E-02   -.50476    
   3  Normalizat    1.0063        .27590        .10817E-04   -.92818    
   4  Prefactor     .67879        .15953        .75975E-05   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0363e-11
Minuit parameter uncertainties:
  1  16.2243
  2  0.651252
  3  0.27629
  4  0.159639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258331': 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) = 3988.26228342
delta logL = 0.0113949915758

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.638e+01  1.622e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.582e+00  6.513e-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:  6.788e-01  1.596e-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.006e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.58 +/- 0.65
Photon Flux (Free Index): 1.10e-07 +/- 7.67e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.78e-05

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/258331/cmap_HighResolution_403660801_403920001_4FGL_J2219.2-0342_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.93e-05', photon_flux_error='6.58e-08', dlogl='1.14e-02', energy_flux='2.85e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-28 09:14:20.841260', photon_index_error2='0.65', photon_index2='2.58', ts='5.53', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='1.00', time_epoch_completed='1632845660.84', return_code='0', job_id='258331', GAL2='0.68', EG2='1.01', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='7.67e-08', ts2='5.52', photon_index='2.68' WHERE bin_id='634' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 258331: <4FGL_J2219.2-0342_daily_bin634> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin634 334.823 -3.7102 403660801 403920001 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 :                                   504.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            516 sec.

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

