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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1480
RA = 334.813, Dec = 18.1026
tmin = 622944001, tmax = 623203201
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='254070', job_status='RUN', time_executed='2021-09-28 08:51:18.115437', time_epoch_executed='1632844278.12' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254070/ft1_4FGL_J2219.2+1806_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254070/ft2_4FGL_J2219.2+1806_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254070/ft1_4FGL_J2219.2+1806_daily_bin1480.fits outfile=/scratch/kocevski/254070/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1480.fits ra=334.813 dec=18.1026 rad=12.0 tmin=622944001.0 tmax=623203201.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.01
user 2.81
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254070/ft1_filtered_4FGL_J2219.2+1806_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/254070/ft2_4FGL_J2219.2+1806_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/254070/ltcube_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.fits outfile=/scratch/kocevski/254070/expmap_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.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/254070/ltcube_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.fits
.....................!
real 190.36
user 185.28
sys 4.68

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/254070/ft1_filtered_4FGL_J2219.2+1806_daily_bin1480.fits scfile=/scratch/kocevski/254070/ft2_4FGL_J2219.2+1806_daily_bin1480.fits outfile=/scratch/kocevski/254070/cmap_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.813 yref=18.1026 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254070/ft1_filtered_4FGL_J2219.2+1806_daily_bin1480.fits scfile=/scratch/kocevski/254070/ft2_4FGL_J2219.2+1806_daily_bin1480.fits outfile=/scratch/kocevski/254070/cmap_HighResolution_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11283E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67403E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    96.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2081       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.105       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0299       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=   2790.611     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2863 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10461E-03    14.234       -.51988E-05** at limit **
   2  Prefactor     .10000E-03    101.00       -.77922E-05** at limit **
   3  norm          6.9323        5.4147       -.47521E-06    .55625E-03
   4  Prefactor     .10000E-03    416.94        .18801E-04** at limit **
   5  norm          .10000E-03    3.2667       -.14588E-06** at limit **
   6  Prefactor     .10000E-03    60.587        .41166E-05** at limit **
   7  Prefactor     .10000E-03    44.280       -.35621E-06** at limit **
   8  norm          .10000E-03    .55575       -.44060E-07** at limit **
   9  Prefactor     96.502        93.336       -.14854E-05    .74570E-05
  10  Prefactor     .10000E-03    31.921        .77642E-06** at limit **
  11  norm          .10000E-03    6.2280       -.10488E-06** at limit **
  12  Prefactor     .10000E-03    62.050        .32849E-05** at limit **
  13  Prefactor     .10000E-03    115.57       -.73686E-05** at limit **
  14  Prefactor     13.333        25.466       -.46307E-06    .25645E-04
  15  Prefactor     1.1145        .65002        .10524E-06    .76464E-03
  16  Prefactor     .10000E-03    40.204       -.29426E-05** at limit **
  17  norm          2.2076        2.9255       -.20846E-06    .18543E-04
  18  norm          .10000E-03    2.3685       -.17782E-06** at limit **
  19  Prefactor     .10000E-03    43.375       -.13686E-05** at limit **
  20  Prefactor     29.824        41.239        .46296E-05    .83661E-04
  21  Prefactor     40.333        107.80        .75686E-05    .47007E-04
  22  Prefactor     .10000E-03    .53330        .11244E-05** at limit **
  23  Prefactor     .10000E-03    21.812       -.17017E-06** at limit **
  24  Normalizat    1.1354        .45961        .32639E-05    .24279E-03
  25  Prefactor     1.0299        .20223        .11716E-05    .52068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104608
  Prefactor  = 0.000100001
  norm       = 6.93234
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 96.5017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.3326
  Prefactor  = 1.1145
  Prefactor  = 0.0001
  norm       = 2.20758
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8241
  Prefactor  = 40.3331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13542
  Prefactor  = 1.02995
 **********
 **   18 **HESSE 
 **********

 FCN=   2790.611     FROM HESSE     STATUS=OK           417 CALLS     3280 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10461E-03    156.86        .32467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    101.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9323        5.3805        .97209E-04   -1.5181    
   4  Prefactor     .10000E-03    415.71        .21001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3138        .93222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .55911        .38449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     96.502        93.499        .40919E-04   -1.3740    
  10  Prefactor     .10000E-03    32.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2504        .12875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    115.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.333        25.563        .10970E-03   -1.4978    
  15  Prefactor     1.1145        .64535        .30995E-04   -1.5497    
  16  Prefactor     .10000E-03    41.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2076        2.9147        .10010E-03   -1.5411    
  18  norm          .10000E-03    2.3738        .79411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.824        41.182        .73338E-04   -1.4615    
  21  Prefactor     40.333        107.62        .31647E-03   -1.4437    
  22  Prefactor     .10000E-03    .53667        .56746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1354        .55105        .39015E-03   -.88623    
  25  Prefactor     1.0299        .24515        .18864E-03   -.91738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80224e-08
Minuit parameter uncertainties:
  1  0.0539131
  2  0.000566768
  3  5.38086
  4  0.00144811
  5  2.12221e-05
  6  0.000164472
  7  7.42207e-05
  8  2.87587e-06
  9  93.6421
  10  9.22616e-05
  11  2.15939e-05
  12  0.000223432
  13  0.000655225
  14  25.5839
  15  0.645358
  16  0.000232036
  17  2.91492
  18  2.08036e-05
  19  6.07613e-05
  20  41.2208
  21  108.142
  22  1.54992e-05
  23  5.38402e-05
  24  0.553889
  25  0.24542
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  2.159e-05  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.030e+00  2.454e-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.135e+00  5.539e-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: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254070/likelihoodResults_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.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) = 2790.61129678
delta logL = -0.000759086959533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2790.61053765
delta logL = 3.91205503547e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1918       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0299       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=   2790.577     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      310 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79770E-01    12.968        .12314E-01    .14950E-02
   2  alpha         5.0000        3.9543        .50000    ** at limit **
   3  Normalizat    1.0839        .92895E-01    .39016E-03    .30610E-04
   4  Prefactor     1.0461        .42457E-01    .18864E-03    .70766E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0797704
  alpha      = 5
  Normalizat = 1.08386
  Prefactor  = 1.04611
 **********
 **   18 **HESSE 
 **********

 FCN=   2790.577     FROM HESSE     STATUS=OK            33 CALLS      343 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79770E-01    .53851        .47388E-03   -1.5652    
   2  alpha         5.0000        2.6386        .50000        51.836    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0839        .56571        .15606E-04   -.90272    
   4  Prefactor     1.0461        .25437        .37728E-04   -.91208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33536e-11
Minuit parameter uncertainties:
  1  0.414267
  2  0.00146191
  3  0.568906
  4  0.25466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254070': 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) = 2790.5772726
delta logL = 0.0332650932655

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  7.977e-02  4.143e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  5.000e+00  1.462e-03  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.046e+00  2.547e-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.084e+00  5.689e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/254070/cmap_HighResolution_622944001_623203201_4FGL_J2219.2+1806_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-05', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-28 08:59:08.916373', job_id='254070', GAL2='1.05', fit_tolerance='1e-08', EG2='1.08', EG='1.14', time_epoch_completed='1632844748.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.33e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1480' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 254070: <4FGL_J2219.2+1806_daily_bin1480> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1480> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:58 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:51:00 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:51:00 2021
Terminated at Tue Sep 28 08:59:09 2021
Results reported at Tue Sep 28 08:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1480 334.813 18.1026 622944001 623203201 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 :                                   463.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             345.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   489 sec.
    Turnaround time :                            491 sec.

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

