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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1645
RA = 334.823, Dec = -3.7102
tmin = 665712001, tmax = 665971201
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='629206', job_status='RUN', time_executed='2022-02-08 00:38:28.488008', time_epoch_executed='1644309508.49' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629206/ft1_4FGL_J2219.2-0342_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629206/ft1_4FGL_J2219.2-0342_daily_bin1645.fits outfile=/scratch/kocevski/629206/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1645.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=665712001.0 tmax=665971201.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.61
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/629206/ltcube_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.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/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits
.....................!
real 15.11
user 14.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/629206/ltcube_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.fits outfile=/scratch/kocevski/629206/expmap_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.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/629206/ltcube_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.fits
.....................!
real 190.90
user 186.26
sys 4.27

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/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits scfile=/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits outfile=/scratch/kocevski/629206/cmap_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits scfile=/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits outfile=/scratch/kocevski/629206/cmap_HighResolution_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629206/ft2_4FGL_J2219.2-0342_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629206/Model_4FGL_J2219.2-0342_daily_bin1645.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/629206/ft1_filtered_4FGL_J2219.2-0342_daily_bin1645.fits.....................!
real 68.42
user 67.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.566       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.090       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54564E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.075       1.0000         .10000E-03   10000.    
    20 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    49.828       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66779       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2245       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=   6884.575     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3526 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2183        3.4326        .11603E-03   -.25866E-04
   2  Prefactor     28.563        48.660        .74958E-04    .85601E-04
   3  Prefactor     .10000E-03    11.572        .18142E-02** at limit **
   4  Prefactor     .10000E-03    55.936        .18142E-02** at limit **
   5  Prefactor     .10000E-03    7.6499        .18142E-02** at limit **
   6  Prefactor     25.090        10.126        .79973E-04   -.14927E-04
   7  Prefactor     .10000E-03    4.6239        .17406E-02** at limit **
   8  Prefactor     .10000E-03    24.966        .18142E-02** at limit **
   9  Prefactor     11.132        17.901        .12008E-03    .20195E-03
  10  Prefactor     .10000E-03    12.377        .18142E-02** at limit **
  11  Prefactor     1.9545        19.281        .14842E-02   -.12764E-03
  12  Prefactor     .10000E-03    17.540        .18142E-02** at limit **
  13  Prefactor     22.997        14.735        .83526E-04    .28801E-03
  14  Prefactor     .10052E-03    64.389        .20366    ** at limit **
  15  Prefactor     .10000E-03    3.6561        .30475E-03** at limit **
  16  norm          14.378        5.4094        .10563E-03    .26476E-04
  17  Prefactor     .10000E-03    22.146        .18142E-02** at limit **
  18  norm          .10000E-03    .30370        .44325E-03** at limit **
  19  Prefactor     16.039        14.600        .99896E-04    .11300E-02
  20  norm          .10000E-03    5.1936        .12901E-02** at limit **
  21  Prefactor     .10000E-03    4.1328        .16464E-02** at limit **
  22  norm          49.825        20.590        .56811E-04    .41424E-04
  23  Normalizat    .66779        .28048        .41266E-03    .38644E-03
  24  Prefactor     1.2244        .15995        .18985E-03    .66753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21833
  Prefactor  = 28.5633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0904
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.1318
  Prefactor  = 0.0001
  Prefactor  = 1.95453
  Prefactor  = 0.0001
  Prefactor  = 22.9971
  Prefactor  = 0.000100518
  Prefactor  = 0.0001
  norm       = 14.3781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0391
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 49.8248
  Normalizat = 0.66779
  Prefactor  = 1.22443
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.575     FROM HESSE     STATUS=OK           385 CALLS     3911 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2183        3.4324        .46413E-05   -1.5251    
   2  Prefactor     28.563        48.657        .14992E-04   -1.4639    
   3  Prefactor     .10000E-03    11.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.090        10.125        .31989E-05   -1.4706    
   7  Prefactor     .10000E-03    4.6242        .34812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.132        17.898        .48030E-05   -1.5041    
  10  Prefactor     .10000E-03    12.379        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9545        19.234        .59367E-04   -1.5428    
  12  Prefactor     .10000E-03    17.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.997        14.734        .33410E-05   -1.4748    
  14  Prefactor     .10052E-03    66.612        .19829       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6563        .60951E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.378        5.4089        .42252E-05   -1.4949    
  17  Prefactor     .10000E-03    22.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .30371        .88649E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.039        14.462        .19979E-04   -1.4907    
  20  norm          .10000E-03    5.2022        .25802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1329        .32928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          49.825        20.589        .22724E-05   -1.4295    
  23  Normalizat    .66779        .28048        .16506E-04   -1.0518    
  24  Prefactor     1.2244        .16003        .37970E-04   -.85583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5264e-09
Minuit parameter uncertainties:
  1  3.43255
  2  48.7247
  3  7.07706e-05
  4  0.000132016
  5  8.14323e-05
  6  10.1257
  7  1.34973e-05
  8  0.000238935
  9  17.9065
  10  2.94082e-05
  11  12.2676
  12  4.58933e-06
  13  14.736
  14  0.0117571
  15  8.20696e-05
  16  5.40912
  17  0.000168479
  18  1.84974e-06
  19  14.4647
  20  0.000114086
  21  5.92766e-06
  22  20.592
  23  0.281084
  24  0.160093
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.300e+01  1.474e+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:  1.224e+00  1.601e-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:  6.678e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 6.78e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.66e-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) = 6884.54906391
delta logL = 0.0257830964101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6884.53910134
delta logL = 0.0357456691854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9540       1.0000          .0000       10.000    
     3 'Normalizat'    .63415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2379       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6884.539     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.222        200.65        .21722E-02    .11354E-03
   2  Index         2.9584        6.4774        .22215        .82871E-04
   3  Normalizat    .63371        .10753        .95430E-01   -.19594E-05
   4  Prefactor     1.2379        .47236E-01    .33792E-01   -.80706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2223
  Index      = 2.95836
  Normalizat = 0.633707
  Prefactor  = 1.23792
 **********
 **   18 **HESSE 
 **********

 FCN=   6884.539     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.222        19.788        .86890E-04   -1.4786    
   2  Index         2.9584        1.2842        .81383E-02   -.42062    
   3  Normalizat    .63371        .30456        .42286E-03   -1.0657    
   4  Prefactor     1.2379        .17188        .18897E-03   -.85172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08243e-11
Minuit parameter uncertainties:
  1  19.7943
  2  1.30174
  3  0.305373
  4  0.171961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629206': 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) = 6884.53909222
delta logL = 0.0357547887661

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.122e+01  1.979e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.958e+00  1.302e+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:  1.238e+00  1.720e-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:  6.337e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.96 +/- 1.30
Photon Flux (Free Index): 1.31e-07 +/- 1.24e-07
Energy Flux (Free Index): 2.68e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/629206/cmap_HighResolution_665712001_665971201_4FGL_J2219.2-0342_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.68e-05', photon_flux_error='6.78e-08', dlogl='3.58e-02', energy_flux='2.59e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2022-02-08 00:49:38.963921', photon_index_error2='1.30', photon_index2='2.96', ts='4.04', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.67', time_epoch_completed='1644310178.96', return_code='0', job_id='629206', GAL2='1.24', EG2='0.63', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='1.24e-07', ts2='4.17', photon_index='2.68' WHERE bin_id='1645' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:49:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 629206: <4FGL_J2219.2-0342_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1645> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Feb  8 00:36:03 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:36:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:36:08 2022
Terminated at Tue Feb  8 00:49:39 2022
Results reported at Tue Feb  8 00:49:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1645 334.823 -3.7102 665712001 665971201 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 :                                   672.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            816 sec.

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

