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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1431
RA = 334.813, Dec = 18.1026
tmin = 610243201, tmax = 610502401
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='253995', job_status='RUN', time_executed='2021-09-28 08:51:04.260172', time_epoch_executed='1632844264.26' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253995

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253995/ft1_4FGL_J2219.2+1806_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253995/ft1_4FGL_J2219.2+1806_daily_bin1431.fits outfile=/scratch/kocevski/253995/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1431.fits ra=334.813 dec=18.1026 rad=12.0 tmin=610243201.0 tmax=610502401.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.93
user 3.69
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.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/253995/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.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/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/253995/ltcube_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.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/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits
.....................!
real 13.23
user 12.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/253995/ltcube_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits outfile=/scratch/kocevski/253995/expmap_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.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/253995/ltcube_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits
.....................!
real 190.07
user 184.59
sys 5.15

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2+1806 @ 334.813 18.1026

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits outfile=/scratch/kocevski/253995/cmap_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.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.813 yref=18.1026 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits outfile=/scratch/kocevski/253995/cmap_HighResolution_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.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.813 yref=18.1026 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/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253995/Model_4FGL_J2219.2+1806_daily_bin1431.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/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits.....................!
real 73.06
user 71.63
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits', '/scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits', expMap='/scratch/kocevski/253995/expmap_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits', expCube='/scratch/kocevski/253995/ltcube_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253995/Model_4FGL_J2219.2+1806_daily_bin1431.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2+1806'

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.275e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253995/ft1_filtered_4FGL_J2219.2+1806_daily_bin1431.fits
Spacecraft file(s): /scratch/kocevski/253995/ft2_4FGL_J2219.2+1806_daily_bin1431.fits
Exposure map: /scratch/kocevski/253995/expmap_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits
Exposure cube: /scratch/kocevski/253995/ltcube_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253995/Model_4FGL_J2219.2+1806_daily_bin1431.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) = 7346.27766186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5090       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81932E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16976       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7053       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2652       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7346.202     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2473 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0653       -.55284E-06** at limit **
   2  Prefactor     .10000E-03    29.461       -.63049E-05** at limit **
   3  norm          .13200        .92850       -.25440E-06   -.10178E-04
   4  Prefactor     .10000E-03    59.666       -.14168E-04** at limit **
   5  norm          1.5076        2.6184       -.80649E-06   -.88817E-03
   6  Prefactor     .10000E-03    17.427        .39153E-05** at limit **
   7  Prefactor     .10000E-03    38.281        .20581E-04** at limit **
   8  norm          .10000E-03    .29066        .42817E-07** at limit **
   9  Prefactor     .10000E-03    9.3031        .20880E-05** at limit **
  10  Prefactor     .10000E-03    3.3387       -.32690E-06** at limit **
  11  norm          .10000E-03    .96043       -.31298E-06** at limit **
  12  Prefactor     .10000E-03    5.4148       -.44634E-06** at limit **
  13  Prefactor     .10000E-03    28.269       -.10093E-04** at limit **
  14  Prefactor     .10000E-03    2.6752        .79282E-07** at limit **
  15  Prefactor     .16971        .12710        .39593E-07    .24324E-03
  16  Prefactor     .10000E-03    10.335       -.27827E-05** at limit **
  17  norm          1.7052        1.0726       -.48374E-07   -.31949E-04
  18  norm          1.6323        1.3983        .17901E-07   -.32765E-04
  19  Prefactor     .10000E-03    11.689        .53979E-06** at limit **
  20  Prefactor     16.069        9.4458       -.25638E-06   -.42122E-03
  21  Prefactor     .10000E-03    6.8552        .66859E-06** at limit **
  22  Prefactor     .30297        .13277        .55494E-08   -.90633E-03
  23  Prefactor     .10000E-03    2.3657       -.46256E-06** at limit **
  24  Normalizat    1.2651        .20161        .98256E-07    .10188E-03
  25  Prefactor     .82026        .10233        .25721E-06    .13039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.131999
  Prefactor  = 0.0001
  norm       = 1.50756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.169713
  Prefactor  = 0.0001
  norm       = 1.7052
  norm       = 1.63229
  Prefactor  = 0.0001
  Prefactor  = 16.0694
  Prefactor  = 0.0001
  Prefactor  = 0.302974
  Prefactor  = 0.0001
  Normalizat = 1.26513
  Prefactor  = 0.820262
 **********
 **   18 **HESSE 
 **********

 FCN=   7346.202     FROM HESSE     STATUS=OK           423 CALLS     2896 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13200        8.1507        .15626E-02   -1.5635    
   4  Prefactor     .10000E-03    59.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5076        2.6421        .17841E-03   -1.5462    
   6  Prefactor     .10000E-03    17.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .30173        .90137E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3408        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .96138        .82028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.597        .38192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6795        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16971        .12309        .25307E-04   -1.5626    
  16  Prefactor     .10000E-03    10.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7052        1.0728        .32202E-04   -1.5447    
  18  norm          1.6323        1.3996        .90202E-04   -1.5452    
  19  Prefactor     .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.069        9.4699        .49956E-03   -1.4906    
  21  Prefactor     .10000E-03    6.8605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .30297        .13126        .19782E-04   -1.5598    
  23  Prefactor     .10000E-03    2.3683        .12874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2651        .23870        .29127E-03   -.84613    
  25  Prefactor     .82026        .12275        .18230E-03   -.98986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49827e-08
Minuit parameter uncertainties:
  1  7.398e-06
  2  2.82702e-07
  3  2.074
  4  9.70441e-05
  5  2.64231
  6  3.18163e-06
  7  8.65113e-05
  8  2.81735e-07
  9  7.43757e-07
  10  5.24022e-07
  11  1.61017e-07
  12  0.000560035
  13  7.45863e-07
  14  5.43218e-07
  15  0.123091
  16  2.34038e-05
  17  1.07281
  18  1.39967
  19  3.08807e-06
  20  9.47075
  21  1.90982e-06
  22  0.131261
  23  1.06275e-07
  24  0.23891
  25  0.122793
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.610e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.203e-01  1.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.265e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253995/likelihoodResults_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.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) = 7346.20209541
delta logL = -0.000105239027107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7346.20198992
delta logL = 2.47273419518e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   7346.202     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      236 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6095        .82322E-03** at limit **
   2  alpha         1.8693        3.8126        .16654        .75226E-07
   3  Normalizat    1.2651        .23468        .29127E-03    .12919E-04
   4  Prefactor     .82026        .12186        .18230E-03    .33177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.86928
  Normalizat = 1.26513
  Prefactor  = 0.820262
 **********
 **   18 **HESSE 
 **********

 FCN=   7346.202     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0118        .16464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8693        4.0124        .66617E-02   -.25504    
   3  Normalizat    1.2651        .23492        .11651E-04   -.84613    
   4  Prefactor     .82026        .12199        .72919E-05   -.98986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37412e-11
Minuit parameter uncertainties:
  1  4.60283e-06
  2  133.089
  3  0.235115
  4  0.122026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253995': 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) = 7346.20198758
delta logL = 2.58777618001e-06

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.603e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.869e+00  1.331e+02  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.203e-01  1.220e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.265e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.813 18.103

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/253995/cmap_HighResolution_610243201_610502401_4FGL_J2219.2+1806_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-05', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-28 09:02:53.103159', job_id='253995', GAL2='0.82', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632844973.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1431' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 253995: <4FGL_J2219.2+1806_daily_bin1431> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1431> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:52 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:50:53 2021
Terminated at Tue Sep 28 09:02:53 2021
Results reported at Tue Sep 28 09:02:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1431 334.813 18.1026 610243201 610502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2+1806 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

