/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 = 7263
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2+1806_daily_bin427
RA = 334.813, Dec = 18.1026
tmin = 350006401, tmax = 350265601
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='248091', job_status='RUN', time_executed='2021-09-28 08:30:24.766805', time_epoch_executed='1632843024.77' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248091

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248091/ft1_4FGL_J2219.2+1806_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248091/ft1_4FGL_J2219.2+1806_daily_bin427.fits outfile=/scratch/kocevski/248091/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin427.fits ra=334.813 dec=18.1026 rad=12.0 tmin=350006401.0 tmax=350265601.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 4.11
user 3.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.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/248091/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/248091/ltcube_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.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/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits
.....................!
real 13.16
user 12.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/248091/ltcube_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits outfile=/scratch/kocevski/248091/expmap_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.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/248091/ltcube_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits
.....................!
real 190.58
user 185.16
sys 4.98

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/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits outfile=/scratch/kocevski/248091/cmap_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits outfile=/scratch/kocevski/248091/cmap_HighResolution_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248091/Model_4FGL_J2219.2+1806_daily_bin427.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/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits.....................!
real 73.85
user 72.37
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits', '/scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits', expMap='/scratch/kocevski/248091/expmap_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits', expCube='/scratch/kocevski/248091/ltcube_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248091/Model_4FGL_J2219.2+1806_daily_bin427.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/248091/ft1_filtered_4FGL_J2219.2+1806_daily_bin427.fits
Spacecraft file(s): /scratch/kocevski/248091/ft2_4FGL_J2219.2+1806_daily_bin427.fits
Exposure map: /scratch/kocevski/248091/expmap_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits
Exposure cube: /scratch/kocevski/248091/ltcube_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248091/Model_4FGL_J2219.2+1806_daily_bin427.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) = 7540.3179412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3319       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0633       1.0000         .10000E-03   10000.    
     8 'norm      '    .13529       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4057       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46115       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8928       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35628E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18438E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.064       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82717       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=   7540.298     FROM MIGRAD    STATUS=CONVERGED   1081 CALLS     4307 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5753        .13599E-02** at limit **
   2  Prefactor     .10000E-03    50.046        .18142E-02** at limit **
   3  norm          7.1925        3.0260        .92197E-04   -.24218E-03
   4  Prefactor     .10000E-03    45.069        .18142E-02** at limit **
   5  norm          8.3324        3.8021        .10972E-03    .90355E-04
   6  Prefactor     .10000E-03    17.658        .18142E-02** at limit **
   7  Prefactor     7.0645        33.949        .15094E-03   -.33140E-05
   8  norm          .13774        1.5391        .13647E-02   -.67976E-03
   9  Prefactor     .10000E-03    17.182        .18142E-02** at limit **
  10  Prefactor     11.558        12.023        .11785E-03    .54795E-04
  11  norm          1.2250        4.6077        .34446E-03   -.13624E-03
  12  Prefactor     .33324        23.454        .80174E-01    .53717E-03
  13  Prefactor     .10000E-03    45.465        .18142E-02** at limit **
  14  Prefactor     1.4017        23.299        .18284E-02   -.59312E-03
  15  Prefactor     .46137        .20019        .22873E-04   -.13340E-02
  16  Prefactor     .10000E-03    1.7747        .11295E-02** at limit **
  17  norm          .10000E-03    .87985        .11670E-02** at limit **
  18  norm          2.8926        1.5620        .76854E-04    .52765E-03
  19  Prefactor     32.048        29.468        .70751E-04    .10564E-03
  20  Prefactor     .10415E-03    11.857        .67488E-01** at limit **
  21  Prefactor     .10011E-03    74.357        .61441E-02** at limit **
  22  Prefactor     .10000E-03    .17488        .39292E-03** at limit **
  23  Prefactor     25.060        14.425        .80014E-04    .18556E-03
  24  Normalizat    1.0862        .26573        .32150E-03    .45722E-04
  25  Prefactor     .82718        .12600        .18261E-03    .67869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.19254
  Prefactor  = 0.0001
  norm       = 8.33237
  Prefactor  = 0.0001
  Prefactor  = 7.06451
  norm       = 0.137744
  Prefactor  = 0.0001
  Prefactor  = 11.5575
  norm       = 1.225
  Prefactor  = 0.333235
  Prefactor  = 0.0001
  Prefactor  = 1.40165
  Prefactor  = 0.461374
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.89259
  Prefactor  = 32.0484
  Prefactor  = 0.000104147
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 25.0601
  Normalizat = 1.08621
  Prefactor  = 0.827183
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.298     FROM HESSE     STATUS=OK           423 CALLS     4730 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5753        .27198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1925        3.0248        .36879E-05   -1.5172    
   4  Prefactor     .10000E-03    45.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3324        3.8014        .43887E-05   -1.5131    
   6  Prefactor     .10000E-03    17.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0645        33.941        .60377E-05   -1.5176    
   8  norm          .13774        1.5299        .54586E-04   -1.5634    
   9  Prefactor     .10000E-03    17.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.558        12.020        .47138E-05   -1.5028    
  11  norm          1.2250        4.6041        .13779E-04   -1.5487    
  12  Prefactor     .33324        19.197        .89841E-01   -1.5593    
  13  Prefactor     .10000E-03    45.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4017        23.143        .73135E-04   -1.5471    
  15  Prefactor     .46137        .19914        .91494E-06   -1.5572    
  16  Prefactor     .10000E-03    1.7747        .22591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .88236        .23340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8926        1.5616        .30742E-05   -1.5368    
  19  Prefactor     32.048        29.451        .14150E-04   -1.4575    
  20  Prefactor     .10415E-03    9.9622        .75569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10011E-03    76.083        .12288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .17588        .78585E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.060        14.422        .32006E-05   -1.4706    
  24  Normalizat    1.0862        .26489        .12860E-04   -.90196    
  25  Prefactor     .82718        .12609        .36521E-04   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3193e-09
Minuit parameter uncertainties:
  1  4.86058e-06
  2  0.000219045
  3  3.02487
  4  2.28739e-05
  5  3.80148
  6  8.91254e-05
  7  30.9978
  8  0.917823
  9  3.17466e-06
  10  12.0227
  11  4.60545
  12  5.05939
  13  9.04773e-05
  14  11.3956
  15  0.199138
  16  2.67878e-06
  17  4.12592e-06
  18  1.56161
  19  29.4644
  20  0.0128571
  21  0.00580611
  22  1.01099e-06
  23  14.424
  24  0.265217
  25  0.126137
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.225e+00  4.605e+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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.272e-01  1.261e-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.086e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248091/likelihoodResults_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.28587589
delta logL = 0.0124234552923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.28534625
delta logL = 0.0129530995773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3594       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82603       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7540.285     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      286 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3611        4.4833        .32332E-03    .46238E-04
   2  alpha         1.9138        1.4169        .43983E-01   -.45482E-05
   3  Normalizat    1.0889        .24511        .32115E-03   -.31506E-05
   4  Prefactor     .82606        .12411        .18271E-03   -.65955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36111
  alpha      = 1.91377
  Normalizat = 1.0889
  Prefactor  = 0.826063
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.285     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .31E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3611        4.5133        .64664E-04   -1.5475    
   2  alpha         1.9138        1.4272        .17593E-02   -.23670    
   3  Normalizat    1.0889        .24530        .12846E-04   -.90109    
   4  Prefactor     .82606        .12419        .73085E-05   -.98775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09064e-14
Minuit parameter uncertainties:
  1  4.51442
  2  1.52536
  3  0.245561
  4  0.124227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248091': 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) = 7540.28534604
delta logL = 0.0129533080881

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.361e+00  4.514e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  1.914e+00  1.525e+00  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.261e-01  1.242e-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.089e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/248091/cmap_HighResolution_350006401_350265601_4FGL_J2219.2+1806_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-28 08:44:49.134028', job_id='248091', GAL2='0.83', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632843889.13', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.30e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='427' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 248091: <4FGL_J2219.2+1806_daily_bin427> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin427> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 08:30:14 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:30:15 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:30:15 2021
Terminated at Tue Sep 28 08:44:49 2021
Results reported at Tue Sep 28 08:44:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin427 334.813 18.1026 350006401 350265601 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 :                                   853.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

