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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin359
RA = 334.813, Dec = 18.1026
tmin = 332380801, tmax = 332640001
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='247336', job_status='RUN', time_executed='2021-09-28 08:25:56.955134', time_epoch_executed='1632842756.96' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247336/ft1_4FGL_J2219.2+1806_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247336/ft1_4FGL_J2219.2+1806_daily_bin359.fits outfile=/scratch/kocevski/247336/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin359.fits ra=334.813 dec=18.1026 rad=12.0 tmin=332380801.0 tmax=332640001.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.30
user 3.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/247336/ft1_filtered_4FGL_J2219.2+1806_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/247336/ltcube_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.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/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits
.....................!
real 12.89
user 12.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247336/ft1_filtered_4FGL_J2219.2+1806_daily_bin359.fits evtable="EVENTS" scfile=/scratch/kocevski/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits sctable="SC_DATA" expcube=/scratch/kocevski/247336/ltcube_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.fits outfile=/scratch/kocevski/247336/expmap_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.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/247336/ltcube_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.fits
.....................!
real 193.40
user 186.22
sys 6.82

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/247336/ft1_filtered_4FGL_J2219.2+1806_daily_bin359.fits scfile=/scratch/kocevski/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits outfile=/scratch/kocevski/247336/cmap_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.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.57
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/247336/ft1_filtered_4FGL_J2219.2+1806_daily_bin359.fits scfile=/scratch/kocevski/247336/ft2_4FGL_J2219.2+1806_daily_bin359.fits outfile=/scratch/kocevski/247336/cmap_HighResolution_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.434       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.900       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .91117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.361       1.0000         .10000E-03   10000.    
    11 'norm      '    .93597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .73036       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8952       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5669       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67022       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6747       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97764       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91496       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=   9530.123     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2901 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.434        9.4728        .76868E-07   -.36664E-04
   2  Prefactor     .10000E-03    53.977        .15193E-06** at limit **
   3  norm          .10000E-03    .76187        .11549E-06** at limit **
   4  Prefactor     .10000E-03    23.513       -.59137E-07** at limit **
   5  norm          1.5291        2.0728        .30806E-06   -.18862E-04
   6  Prefactor     36.898        34.179       -.21233E-06   -.42561E-04
   7  Prefactor     .10000E-03    20.862        .17365E-06** at limit **
   8  norm          .90983        .95426        .17339E-06   -.11737E-03
   9  Prefactor     32.161        28.161        .16258E-07   -.97055E-05
  10  Prefactor     12.361        18.868       -.23612E-06   -.22123E-04
  11  norm          .93635        3.7062        .29164E-05   -.76918E-04
  12  Prefactor     .10000E-03    6.0480        .25173E-06** at limit **
  13  Prefactor     56.157        100.47       -.89293E-06   -.77949E-04
  14  Prefactor     .10000E-03    5.0473        .72839E-07** at limit **
  15  Prefactor     .73036        .19863       -.10820E-07   -.61875E-03
  16  Prefactor     7.8952        6.1304        .87744E-07   -.13590E-04
  17  norm          1.5670        1.1030        .15954E-07   -.21113E-04
  18  norm          1.4259        1.2213       -.20305E-08   -.55758E-04
  19  Prefactor     4.3854        24.150        .96265E-05   -.22731E-04
  20  Prefactor     .10000E-03    3.9622        .15434E-06** at limit **
  21  Prefactor     .10000E-03    7.0756        .86601E-07** at limit **
  22  Prefactor     .67021        .15525       -.36902E-07   -.52391E-03
  23  Prefactor     3.6745        5.5785        .20900E-06   -.97673E-05
  24  Normalizat    .97768        .21255        .12222E-05   -.22300E-03
  25  Prefactor     .91496        .10068       -.13608E-05   -.58377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4338
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52908
  Prefactor  = 36.8985
  Prefactor  = 0.0001
  norm       = 0.909831
  Prefactor  = 32.1614
  Prefactor  = 12.3606
  norm       = 0.936353
  Prefactor  = 0.0001
  Prefactor  = 56.1574
  Prefactor  = 0.0001
  Prefactor  = 0.730359
  Prefactor  = 7.89517
  norm       = 1.56704
  norm       = 1.42587
  Prefactor  = 4.38537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.670211
  Prefactor  = 3.67451
  Normalizat = 0.977684
  Prefactor  = 0.914964
 **********
 **   18 **HESSE 
 **********

 FCN=   9530.123     FROM HESSE     STATUS=OK           437 CALLS     3338 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.434        9.4707        .11360E-03   -1.5003    
   2  Prefactor     .10000E-03    53.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .77092        .83068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5291        2.0545        .15771E-03   -1.5461    
   6  Prefactor     36.898        34.002        .65977E-04   -1.4492    
   7  Prefactor     .10000E-03    20.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .90983        .86590        .90687E-03   -1.5517    
   9  Prefactor     32.161        28.178        .70653E-04   -1.4573    
  10  Prefactor     12.361        18.862        .11394E-03   -1.5005    
  11  norm          .93635        3.6962        .35585E-03   -1.5514    
  12  Prefactor     .10000E-03    6.0768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.157        100.56        .26721E-03   -1.4208    
  14  Prefactor     .10000E-03    5.0958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .73036        .19850        .21379E-04   -1.5537    
  16  Prefactor     7.8952        6.1338        .14270E-03   -1.5146    
  17  norm          1.5670        1.1027        .33974E-04   -1.5458    
  18  norm          1.4259        1.2330        .96985E-04   -1.5469    
  19  Prefactor     4.3854        24.326        .96164E-03   -1.5289    
  20  Prefactor     .10000E-03    3.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .67021        .15517        .17340E-04   -1.5544    
  23  Prefactor     3.6745        5.5686        .21070E-03   -1.5325    
  24  Normalizat    .97768        .24584        .35950E-03   -.93782    
  25  Prefactor     .91496        .11675        .18539E-03   -.95620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78872e-09
Minuit parameter uncertainties:
  1  9.47187
  2  3.5051e-05
  3  9.551e-07
  4  1.85619e-05
  5  2.05463
  6  34.02
  7  1.32179e-05
  8  0.865911
  9  28.1896
  10  18.8708
  11  3.69709
  12  3.81509e-07
  13  100.871
  14  5.06849e-06
  15  0.198499
  16  6.13428
  17  1.1027
  18  1.23302
  19  20.6698
  20  5.43996e-07
  21  1.22116e-06
  22  0.155167
  23  5.56939
  24  0.246121
  25  0.116777
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  9.364e-01  3.697e+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:  9.150e-01  1.168e-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:  9.777e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/247336/likelihoodResults_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.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) = 9530.04655302
delta logL = 0.0768178152503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9530.04423617
delta logL = 0.0791346732894

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0842       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8340       1.0000          .0000       5.0000    
     3 'Normalizat'    .96532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91796       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=   9530.044     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0838        93.074        .11536E-01    .16322E-02
   2  alpha         2.8343        2.8501        .41625        .47609E-04
   3  Normalizat    .96533        .46302E-01    .81685E-01    .30698E-04
   4  Prefactor     .91795        .23150E-01    .45233E-01    .32475E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0838
  alpha      = 2.83435
  Normalizat = 0.965328
  Prefactor  = 0.917953
 **********
 **   18 **HESSE 
 **********

 FCN=   9530.044     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0838        3.5849        .21876E-03   -1.5500    
   2  alpha         2.8343        1.8332        .41900E-01    .13414    
   3  Normalizat    .96533        .23441        .36159E-03   -.94201    
   4  Prefactor     .91795        .11683        .18512E-03   -.95517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87741e-11
Minuit parameter uncertainties:
  1  3.58557
  2  2.06377
  3  0.234655
  4  0.116861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247336': 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) = 9530.04423614
delta logL = 0.0791346997376

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.084e+00  3.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.834e+00  2.064e+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:  9.180e-01  1.169e-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:  9.653e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/247336/cmap_HighResolution_332380801_332640001_4FGL_J2219.2+1806_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-28 08:40:16.561990', job_id='247336', GAL2='0.92', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1632843616.56', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.91e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='359' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 247336: <4FGL_J2219.2+1806_daily_bin359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin359 334.813 18.1026 332380801 332640001 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 :                                   855.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

