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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1059
RA = 334.823, Dec = -3.7102
tmin = 513820801, tmax = 514080001
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='260016', job_status='RUN', time_executed='2021-09-28 09:12:09.112804', time_epoch_executed='1632845529.11' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260016/ft1_4FGL_J2219.2-0342_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260016/ft1_4FGL_J2219.2-0342_daily_bin1059.fits outfile=/scratch/kocevski/260016/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1059.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=513820801.0 tmax=514080001.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.75
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.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/260016/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/260016/ltcube_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.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/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits
.....................!
real 11.89
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/260016/ltcube_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.fits outfile=/scratch/kocevski/260016/expmap_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.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/260016/ltcube_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.fits
.....................!
real 193.58
user 187.25
sys 6.02

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/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits outfile=/scratch/kocevski/260016/cmap_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits outfile=/scratch/kocevski/260016/cmap_HighResolution_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.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/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/260016/ft2_4FGL_J2219.2-0342_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260016/Model_4FGL_J2219.2-0342_daily_bin1059.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/260016/ft1_filtered_4FGL_J2219.2-0342_daily_bin1059.fits.....................!
real 60.38
user 59.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16465E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30418E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12373E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .16480       1.0000         .10000E-03   10000.    
    19 'Prefactor '    89.664       1.0000         .10000E-03   10000.    
    20 'norm      '    12.257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.062       1.0000         .10000E-03   10000.    
    22 'norm      '    .37954       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60635       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2747       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=   6130.762     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2902 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44486E-02    1.5972        .47049E-05   -.68712E-03
   2  Prefactor     17.554        36.714        .13523E-05    .71177E-04
   3  Prefactor     .10000E-03    24.744        .85082E-06** at limit **
   4  Prefactor     .10000E-03    13.042       -.13451E-07** at limit **
   5  Prefactor     8.6886        6.7931        .90414E-06    .30601E-03
   6  Prefactor     .10001E-03    3.8817        .27473E-05** at limit **
   7  Prefactor     .37727        110.30       -.80309E-04    .27567E-04
   8  Prefactor     .10000E-03    9.9752       -.52442E-06** at limit **
   9  Prefactor     .10000E-03    18.018       -.19307E-05** at limit **
  10  Prefactor     24.920        16.673        .42582E-07   -.57139E-04
  11  Prefactor     7.9040        15.318       -.34985E-06    .16715E-03
  12  Prefactor     .10000E-03    65.898        .12371E-04** at limit **
  13  Prefactor     .10000E-03    2.7513       -.27536E-06** at limit **
  14  Prefactor     .10000E-03    326.87        .28419E-04** at limit **
  15  Prefactor     .10000E-03    2.6382       -.71173E-06** at limit **
  16  norm          8.0260        4.7133       -.28603E-06   -.16086E-03
  17  Prefactor     .10000E-03    37.132       -.39830E-05** at limit **
  18  norm          .16478        .84506       -.22578E-05    .51812E-03
  19  Prefactor     89.646        92.397        .26961E-05    .27338E-03
  20  norm          12.259        7.4258       -.33082E-06    .25658E-02
  21  Prefactor     11.058        12.532       -.47087E-06    .44837E-05
  22  norm          .36545        11.338        .49238E-05    .61616E-04
  23  Normalizat    .60623        .25662        .69130E-05    .49180E-03
  24  Prefactor     1.2747        .15162        .16193E-05    .65794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00444861
  Prefactor  = 17.5535
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68856
  Prefactor  = 0.000100011
  Prefactor  = 0.377271
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.9197
  Prefactor  = 7.90396
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.02596
  Prefactor  = 0.000100001
  norm       = 0.164781
  Prefactor  = 89.6457
  norm       = 12.259
  Prefactor  = 11.0583
  norm       = 0.365451
  Normalizat = 0.606229
  Prefactor  = 1.27466
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.762     FROM HESSE     STATUS=OK           407 CALLS     3309 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44486E-02    1.8148        .31384E-01   -1.5695    
   2  Prefactor     17.554        36.628        .95726E-04   -1.4870    
   3  Prefactor     .10000E-03    24.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.6886        6.8024        .13598E-03   -1.5118    
   6  Prefactor     .10001E-03    24.108        .28732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .37727        114.88        .43706E-02   -1.5585    
   8  Prefactor     .10000E-03    10.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.920        16.671        .80217E-04   -1.4709    
  11  Prefactor     7.9040        15.296        .14264E-03   -1.5146    
  12  Prefactor     .10000E-03    66.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7550        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    330.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6892        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0260        4.7153        .12266E-03   -1.5141    
  17  Prefactor     .10000E-03    37.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16478        .85222        .14244E-03   -1.5627    
  19  Prefactor     89.646        98.080        .42434E-04   -1.3811    
  20  norm          12.259        7.8977        .77007E-04   -1.5008    
  21  Prefactor     11.058        12.530        .12045E-03   -1.5043    
  22  norm          .36545        145.72        .48095E-02   -1.5587    
  23  Normalizat    .60623        .28287        .41197E-03   -1.0772    
  24  Prefactor     1.2747        .16779        .18339E-03   -.84064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58191e-09
Minuit parameter uncertainties:
  1  0.177679
  2  36.6745
  3  4.804e-05
  4  6.53517e-05
  5  6.80301
  6  0.00105199
  7  13.1905
  8  7.80773e-05
  9  0.000193029
  10  16.6746
  11  15.3036
  12  0.000600447
  13  1.90706e-05
  14  0.000754821
  15  6.28748e-05
  16  4.71551
  17  0.000446146
  18  0.749268
  19  98.2579
  20  7.89838
  21  12.5335
  22  14.6289
  23  0.283549
  24  0.16786
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.907e-05  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.275e+00  1.679e-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.062e-01  2.835e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260016/likelihoodResults_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.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) = 6130.76353186
delta logL = -0.00170597960823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6130.76182585
delta logL = 3.01288309856e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6675       1.0000          .0000       10.000    
     3 'Normalizat'    .60613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2747       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=   6130.762     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      248 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.219        .12800E-01** at limit **
   2  Index         2.1244        5.5909        .50000       -.26700E-06
   3  Normalizat    .60622        .16969E-01    .41197E-03   -.84195E-04
   4  Prefactor     1.2747        .10678E-01    .18339E-03   -.18314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12445
  Normalizat = 0.606222
  Prefactor  = 1.27466
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.762     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    237.32        .13965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1244        6.9783        .50000       -.61274    
   3  Normalizat    .60622        .52453E-01    .16479E-04   -1.0772    
   4  Prefactor     1.2747        .33009E-01    .36679E-04   -.84064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45334e-09
Minuit parameter uncertainties:
  1  0.000639409
  2  885.056
  3  0.0524573
  4  0.0330099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260016': 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) = 6130.76182269
delta logL = 3.18677120958e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.394e-04  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.124e+00  8.851e+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:  1.275e+00  3.301e-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:  6.062e-01  5.246e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/260016/cmap_HighResolution_513820801_514080001_4FGL_J2219.2-0342_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 09:23:08.104901', job_id='260016', GAL2='1.27', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632846188.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1059' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:23:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 260016: <4FGL_J2219.2-0342_daily_bin1059> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1059 334.823 -3.7102 513820801 514080001 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 :                                   658.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             338.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

