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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin67
RA = 334.813, Dec = 18.1026
tmin = 256694401, tmax = 256953601
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='245789', job_status='RUN', time_executed='2021-09-28 08:22:58.497451', time_epoch_executed='1632842578.5' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='67'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245789/ft1_4FGL_J2219.2+1806_daily_bin67.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245789/ft1_4FGL_J2219.2+1806_daily_bin67.fits outfile=/scratch/kocevski/245789/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin67.fits ra=334.813 dec=18.1026 rad=12.0 tmin=256694401.0 tmax=256953601.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 1.46
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits" evtable="EVENTS" scfile=/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits sctable="SC_DATA" outfile=/scratch/kocevski/245789/ltcube_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.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/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits
.....................!
real 12.51
user 12.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits sctable="SC_DATA" expcube=/scratch/kocevski/245789/ltcube_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.fits outfile=/scratch/kocevski/245789/expmap_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.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/245789/ltcube_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.fits
.....................!
real 189.96
user 185.31
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 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/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits scfile=/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits outfile=/scratch/kocevski/245789/cmap_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits scfile=/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits outfile=/scratch/kocevski/245789/cmap_HighResolution_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.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/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/245789/ft2_4FGL_J2219.2+1806_daily_bin67.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245789/Model_4FGL_J2219.2+1806_daily_bin67.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/245789/ft1_filtered_4FGL_J2219.2+1806_daily_bin67.fits.....................!
real 74.48
user 73.14
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    157.09       1.0000         .10000E-03   10000.    
     5 'norm      '    .10703E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-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 '    32.542       1.0000         .10000E-03   10000.    
    11 'norm      '    .19635       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.152       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47418       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1235       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8587       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50068       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3508       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79101       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=   7548.295     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2886 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4449        8.2098        .30118E-06   -.23532E-05
   2  Prefactor     .10000E-03    38.127        .24967E-05** at limit **
   3  norm          11.526        3.3254        .16269E-07   -.58088E-05
   4  Prefactor     157.13        101.30       -.29634E-05   -.62569E-05
   5  norm          .10000E-03    2.4288        .72750E-06** at limit **
   6  Prefactor     .10000E-03    12.271       -.53905E-06** at limit **
   7  Prefactor     .10000E-03    17.819        .20689E-05** at limit **
   8  norm          .10000E-03    .23501       -.86076E-08** at limit **
   9  Prefactor     .10000E-03    25.417       -.17768E-05** at limit **
  10  Prefactor     32.542        19.889       -.11612E-06   -.66217E-05
  11  norm          .19623        2.5279        .23228E-06   -.20056E-03
  12  Prefactor     .10000E-03    6.3652       -.42644E-07** at limit **
  13  Prefactor     41.150        71.401        .39961E-06   -.11382E-05
  14  Prefactor     3.5949        11.024        .25550E-05   -.20020E-04
  15  Prefactor     .47416        .21655        .17113E-08    .47316E-04
  16  Prefactor     6.1234        7.4196        .42792E-06   -.29464E-05
  17  norm          1.8588        1.1207        .34992E-08   -.31127E-05
  18  norm          2.6967        1.6291       -.58643E-08   -.99185E-05
  19  Prefactor     .10000E-03    25.719       -.18404E-05** at limit **
  20  Prefactor     .10000E-03    6.1671        .18778E-06** at limit **
  21  Prefactor     .10000E-03    5.8866       -.15986E-06** at limit **
  22  Prefactor     .50067        .15722        .77752E-08    .26600E-03
  23  Prefactor     .10000E-03    3.9282       -.13963E-07** at limit **
  24  Normalizat    1.3508        .22749       -.61649E-06   -.16801E-05
  25  Prefactor     .79104        .11039        .22738E-06   -.38861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44485
  Prefactor  = 0.0001
  norm       = 11.5258
  Prefactor  = 157.131
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.542
  norm       = 0.196228
  Prefactor  = 0.0001
  Prefactor  = 41.1495
  Prefactor  = 3.59488
  Prefactor  = 0.47416
  Prefactor  = 6.12336
  norm       = 1.85879
  norm       = 2.69675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.500667
  Prefactor  = 0.0001
  Normalizat = 1.35077
  Prefactor  = 0.791042
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.295     FROM HESSE     STATUS=OK           429 CALLS     3315 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4449        8.1878        .26163E-03   -1.5395    
   2  Prefactor     .10000E-03    38.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.526        3.3229        .80283E-04   -1.5029    
   4  Prefactor     157.13        101.77        .16084E-03   -1.3194    
   5  norm          .10000E-03    2.5594        .26567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .23930        .41105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.542        19.907        .70242E-04   -1.4566    
  11  norm          .19623        7.7543        .26450E-02   -1.5619    
  12  Prefactor     .10000E-03    6.3833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.150        71.391        .62487E-04   -1.4424    
  14  Prefactor     3.5949        11.063        .10658E-02   -1.5329    
  15  Prefactor     .47416        .21416        .25487E-04   -1.5570    
  16  Prefactor     6.1234        7.4208        .81120E-03   -1.5213    
  17  norm          1.8588        1.1165        .69176E-04   -1.5435    
  18  norm          2.6967        1.6318        .83893E-04   -1.5380    
  19  Prefactor     .10000E-03    25.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .50067        .15715        .18422E-04   -1.5566    
  23  Prefactor     .10000E-03    3.9372        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3508        .26705        .31295E-03   -.82063    
  25  Prefactor     .79104        .13009        .20154E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0903e-08
Minuit parameter uncertainties:
  1  8.19154
  2  5.35431e-05
  3  3.32298
  4  101.883
  5  3.45262e-05
  6  4.69854e-06
  7  3.29107e-05
  8  1.33776e-07
  9  3.69417e-05
  10  19.9114
  11  2.46678
  12  9.5029e-07
  13  71.5395
  14  11.0695
  15  0.214163
  16  7.42194
  17  1.11649
  18  1.63187
  19  3.26405e-05
  20  4.17576e-06
  21  9.1729e-07
  22  0.157149
  23  7.37068e-07
  24  0.267323
  25  0.130142
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.962e-01  2.467e+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:  7.910e-01  1.301e-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.351e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/245789/likelihoodResults_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.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) = 7548.231844
delta logL = 0.063432457101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7548.22217129
delta logL = 0.0731051644589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34745       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5343       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79642       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.

 FCN=   7548.222     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34541        26.363        .10631E-01    .24151E-02
   2  alpha         3.5417        2.5655        .46841        .56025E-04
   3  Normalizat    1.3315        .39424E-01    .71172E-01    .12576E-04
   4  Prefactor     .79635        .20066E-01    .43671E-01    .12139E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.345411
  alpha      = 3.54166
  Normalizat = 1.33152
  Prefactor  = 0.796347
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.222     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34541        125.02        .13094E-03   -1.5590    
   2  alpha         3.5417        3.2239        .50262E-01    .42977    
   3  Normalizat    1.3315        .25925        .31492E-03   -.82630    
   4  Prefactor     .79635        .12217        .20094E-03   -.99863    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.72231e-09
Minuit parameter uncertainties:
  1  13.1688
  2  25.7578
  3  0.259501
  4  0.122209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245789': 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) = 7548.22216679
delta logL = 0.073109663077

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.454e-01  1.317e+01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  3.542e+00  2.576e+01  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:  7.963e-01  1.222e-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.332e+00  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/245789/cmap_HighResolution_256694401_256953601_4FGL_J2219.2+1806_daily_bin67.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-28 08:35:09.035401', job_id='245789', GAL2='0.80', fit_tolerance='1e-08', EG2='1.33', EG='1.35', time_epoch_completed='1632843309.04', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='7.31e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='67' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:35:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 245789: <4FGL_J2219.2+1806_daily_bin67> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin67> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:20:43 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:20:45 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:20:45 2021
Terminated at Tue Sep 28 08:35:09 2021
Results reported at Tue Sep 28 08:35:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin67 334.813 18.1026 256694401 256953601 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 :                                   730.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             342.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

