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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin512
RA = 334.813, Dec = 18.1026
tmin = 372038401, tmax = 372297601
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='248213', job_status='RUN', time_executed='2021-09-28 08:30:34.993422', time_epoch_executed='1632843034.99' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248213/ft1_4FGL_J2219.2+1806_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248213/ft1_4FGL_J2219.2+1806_daily_bin512.fits outfile=/scratch/kocevski/248213/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin512.fits ra=334.813 dec=18.1026 rad=12.0 tmin=372038401.0 tmax=372297601.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.47
user 4.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits" evtable="EVENTS" scfile=/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits sctable="SC_DATA" outfile=/scratch/kocevski/248213/ltcube_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.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/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits
.....................!
real 11.62
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/248213/ltcube_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.fits outfile=/scratch/kocevski/248213/expmap_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.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/248213/ltcube_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.fits
.....................!
real 192.76
user 187.40
sys 5.00

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/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits scfile=/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits outfile=/scratch/kocevski/248213/cmap_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits scfile=/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits outfile=/scratch/kocevski/248213/cmap_HighResolution_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.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/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/248213/ft2_4FGL_J2219.2+1806_daily_bin512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248213/Model_4FGL_J2219.2+1806_daily_bin512.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/248213/ft1_filtered_4FGL_J2219.2+1806_daily_bin512.fits.....................!
real 87.01
user 85.48
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4372       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20809E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .51164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2371       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87529       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0067       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=   9176.398     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2504 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.364        9.4812       -.53732E-05   -.41663E-04
   2  Prefactor     1.1507        1637.0       -.16585E-04   -.20186E-05
   3  norm          .10000E-03    .56084        .81048E-07** at limit **
   4  Prefactor     .10000E-03    40.299        .23659E-05** at limit **
   5  norm          2.3431        2.3093        .47189E-07   -.36538E-03
   6  Prefactor     .10000E-03    48.306       -.27519E-05** at limit **
   7  Prefactor     .10000E-03    63.687        .12242E-05** at limit **
   8  norm          1.6870        .83590        .13902E-07    .47058E-04
   9  Prefactor     .10000E-03    11.176       -.27852E-07** at limit **
  10  Prefactor     .10000E-03    5.2017       -.33551E-07** at limit **
  11  norm          .10000E-03    4.6592        .42930E-07** at limit **
  12  Prefactor     .10000E-03    26.738       -.68467E-06** at limit **
  13  Prefactor     9.4122        191.20        .76833E-05   -.66980E-06
  14  Prefactor     .10000E-03    1.9470       -.10029E-07** at limit **
  15  Prefactor     4.5480        .41936       -.87853E-08    .43579E-03
  16  Prefactor     .10000E-03    3.1867        .64845E-08** at limit **
  17  norm          .10000E-03    .22872       -.24677E-07** at limit **
  18  norm          .51312        1.0512       -.58878E-06   -.34464E-02
  19  Prefactor     .10000E-03    12.088       -.73663E-06** at limit **
  20  Prefactor     6.2209        7.7443        .31027E-05   -.52939E-04
  21  Prefactor     .10000E-03    6.2284        .36130E-07** at limit **
  22  Prefactor     .68553        .16408       -.22948E-07    .64060E-04
  23  Prefactor     .10000E-03    5.8933       -.39370E-07** at limit **
  24  Normalizat    .87513        .22567        .36442E-06    .24639E-04
  25  Prefactor     1.0068        .11273        .39947E-06    .42789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3641
  Prefactor  = 1.15068
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41221
  Prefactor  = 0.0001
  Prefactor  = 4.54796
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.51312
  Prefactor  = 0.0001
  Prefactor  = 6.2209
  Prefactor  = 0.0001
  Prefactor  = 0.685535
  Prefactor  = 0.0001
  Normalizat = 0.875125
  Prefactor  = 1.00676
 **********
 **   18 **HESSE 
 **********

 FCN=   9176.398     FROM HESSE     STATUS=OK           423 CALLS     2927 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.364        9.2852        .10568E-03   -1.4950    
   2  Prefactor     1.1507        1695.6        .36002E-03   -1.5493    
   3  norm          .10000E-03    .56724        .70039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3431        2.3008        .13988E-03   -1.5402    
   6  Prefactor     .10000E-03    48.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6870        .83613        .59383E-04   -1.5448    
   9  Prefactor     .10000E-03    11.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.2167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.8160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4122        190.71        .12945E-03   -1.5094    
  14  Prefactor     .10000E-03    1.9482        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5480        .42030        .17898E-04   -1.5281    
  16  Prefactor     .10000E-03    3.1912        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .23227        .44714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .51312        .85537        .14272E-02   -1.5565    
  19  Prefactor     .10000E-03    12.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2209        7.7035        .16074E-03   -1.5209    
  21  Prefactor     .10000E-03    6.2366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .68553        .16409        .18122E-04   -1.5542    
  23  Prefactor     .10000E-03    5.9447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87513        .26792        .39756E-03   -.97340    
  25  Prefactor     1.0068        .13491        .19135E-03   -.92505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54186e-09
Minuit parameter uncertainties:
  1  9.28613
  2  91.0532
  3  5.31365e-06
  4  8.17497e-06
  5  2.30092
  6  0.000175921
  7  2.81977e-05
  8  0.836135
  9  9.79292e-07
  10  6.23895e-06
  11  8.18911e-06
  12  3.12534e-06
  13  85.0476
  14  1.31684e-06
  15  0.420297
  16  4.35363e-07
  17  7.04433e-07
  18  0.855393
  19  1.37013e-06
  20  7.70472
  21  9.06078e-07
  22  0.164092
  23  1.36795e-05
  24  0.268332
  25  0.134951
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  8.189e-06  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:  1.007e+00  1.350e-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:  8.751e-01  2.683e-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: 6.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248213/likelihoodResults_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.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) = 9176.39871063
delta logL = -0.000991222239463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9176.39772004
delta logL = -6.28097041044e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1955       1.0000          .0000       5.0000    
     3 'Normalizat'    .87487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0069       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9176.353     FROM MIGRAD    STATUS=FAILED       135 CALLS      284 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28723E-01    3.2658        .81040E-02    .70641E-02
   2  alpha         5.0000        4.9996        .50000    ** at limit **
   3  Normalizat    .84834        .53408E-01    .39756E-03    .72062E-05
   4  Prefactor     1.0160        .25688E-01    .19135E-03    .50500E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9176.353     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      442 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28723E-01    3.2658        .12809E-06    .70641E-02
   2  alpha         5.0000        4.9996        .14922E-01** at limit **
   3  Normalizat    .84834        .53408E-01    .14739E-06    .72062E-05
   4  Prefactor     1.0160        .25688E-01    .11196E-07    .50500E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9176.353     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      495 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28723E-01    .10595         .0000        .28775E-01
   2  alpha         5.0000        4.9673         .0000    ** at limit **
   3  Normalizat    .84834        .27603         .0000        .10581E-04
   4  Prefactor     1.0160        .13791         .0000        .54065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0287233
  alpha      = 5
  Normalizat = 0.848344
  Prefactor  = 1.01598
 **********
 **   18 **HESSE 
 **********

 FCN=   9176.353     FROM HESSE     STATUS=OK            31 CALLS      526 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28723E-01    .10104        .81032E-04   -1.5674    
   2  alpha         5.0000        4.9236        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84834        .27630        .31805E-05   -.98300    
   4  Prefactor     1.0160        .13795        .76542E-05   -.92199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25748e-11
Minuit parameter uncertainties:
  1  0.101037
  2  7.162e-06
  3  0.276758
  4  0.137997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248213': 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) = 9176.35261849
delta logL = 0.0451009198605

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  2.872e-02  1.010e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  5.000e+00  7.162e-06  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:  1.016e+00  1.380e-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:  8.483e-01  2.768e-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/248213/cmap_HighResolution_372038401_372297601_4FGL_J2219.2+1806_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-28 08:44:52.365314', job_id='248213', GAL2='1.02', fit_tolerance='1e-08', EG2='0.85', EG='0.88', time_epoch_completed='1632843892.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.51e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='512' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 248213: <4FGL_J2219.2+1806_daily_bin512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin512 334.813 18.1026 372038401 372297601 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.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            871 sec.

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

