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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1406
RA = 195.757, Dec = 24.5821
tmin = 603763201, tmax = 604022401
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='164753', job_status='RUN', time_executed='2021-09-06 18:28:00.866855', time_epoch_executed='1630978080.87' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164753/ft1_4FGL_J1303.0+2434_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164753/ft1_4FGL_J1303.0+2434_daily_bin1406.fits outfile=/scratch/kocevski/164753/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1406.fits ra=195.757 dec=24.5821 rad=12.0 tmin=603763201.0 tmax=604022401.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.37
user 4.06
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.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/164753/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.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.53
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/164753/ltcube_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.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/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits
.....................!
real 19.84
user 19.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/164753/ltcube_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits outfile=/scratch/kocevski/164753/expmap_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.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/164753/ltcube_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits
.....................!
real 193.75
user 188.07
sys 5.22

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits outfile=/scratch/kocevski/164753/cmap_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.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=195.757 yref=24.5821 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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits outfile=/scratch/kocevski/164753/cmap_HighResolution_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.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=195.757 yref=24.5821 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164753/Model_4FGL_J1303.0+2434_daily_bin1406.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/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits.....................!
real 44.10
user 42.68
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits', '/scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits', expMap='/scratch/kocevski/164753/expmap_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits', expCube='/scratch/kocevski/164753/ltcube_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164753/Model_4FGL_J1303.0+2434_daily_bin1406.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164753/ft1_filtered_4FGL_J1303.0+2434_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/164753/ft2_4FGL_J1303.0+2434_daily_bin1406.fits
Exposure map: /scratch/kocevski/164753/expmap_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits
Exposure cube: /scratch/kocevski/164753/ltcube_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164753/Model_4FGL_J1303.0+2434_daily_bin1406.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4852.62685716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4565       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1359       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.037       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.1585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11495E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5645       1.0000         .10000E-03   10000.    
    15 'norm      '    39.875       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .52464E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18456E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.5760       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.005       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5079       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .72692       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   4852.582     FROM MIGRAD    STATUS=CONVERGED   1192 CALLS     3429 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4575        4.7892        .10178E-03   -.35407E-04
   2  Prefactor     .10000E-03    1.2404        .75533E-03** at limit **
   3  Prefactor     2.1366        3.0948        .67835E-03    .40969E-03
   4  Prefactor     .10000E-03    2.7658        .11304E-02** at limit **
   5  norm          .10000E-03    .15433        .47145E-03** at limit **
   6  norm          13.039        6.8678        .11093E-03    .12708E-04
   7  Prefactor     .10000E-03    4.0889        .13751E-02** at limit **
   8  Prefactor     38.173        66.062        .64870E-04    .22783E-05
   9  Prefactor     .10000E-03    3.6051        .12895E-02** at limit **
  10  norm          7.1593        5.3112        .13117E-03    .23661E-04
  11  Prefactor     3.5636        12.800        .21407E-03    .11152E-05
  12  Prefactor     .10000E-03    12.390        .18142E-02** at limit **
  13  norm          .10000E-03    7.3916        .24098E-02** at limit **
  14  norm          2.5244        10.699        .25491E-03    .21318E-04
  15  norm          39.863        8.5198        .63477E-04    .13816E-03
  16  norm          .10000E-03    13.587        .18142E-02** at limit **
  17  norm          .68161E-01    35.411        .10084        .58248E-04
  18  Prefactor     .46419E-01    15.229        .34435E-01    .50623E-03
  19  Prefactor     .10000E-03    13.492        .18142E-02** at limit **
  20  norm          9.5778        11.636        .64750E-03    .13746E-03
  21  Prefactor     .10000E-03    14.263        .18142E-02** at limit **
  22  Prefactor     .10000E-03    37.807        .18142E-02** at limit **
  23  norm          12.006        13.906        .11562E-03    .40512E-04
  24  Prefactor     8.4883        17.022        .13743E-03   -.12656E-04
  25  Prefactor     .10000E-03    8.7569        .18142E-02** at limit **
  26  Normalizat    .72660        .24216        .28541E-03    .12316E-03
  27  Prefactor     1.1556        .24176        .24529E-03    .83889E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.4575
  Prefactor  = 0.0001
  Prefactor  = 2.13663
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.0392
  Prefactor  = 0.0001
  Prefactor  = 38.1732
  Prefactor  = 0.0001
  norm       = 7.15931
  Prefactor  = 3.56359
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.52441
  norm       = 39.8634
  norm       = 0.0001
  norm       = 0.0681615
  Prefactor  = 0.0464194
  Prefactor  = 0.0001
  norm       = 9.57784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0059
  Prefactor  = 8.48825
  Prefactor  = 0.0001
  Normalizat = 0.726603
  Prefactor  = 1.1556
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.582     FROM HESSE     STATUS=OK           482 CALLS     3911 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4575        4.7882        .40714E-05   -1.5093    
   2  Prefactor     .10000E-03    1.2405        .15107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1366        3.0926        .13567E-03   -1.5416    
   4  Prefactor     .10000E-03    2.7658        .22608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .15446        .94291E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.039        6.8664        .44374E-05   -1.4986    
   7  Prefactor     .10000E-03    4.0890        .27501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.173        66.020        .25948E-05   -1.4471    
   9  Prefactor     .10000E-03    3.6054        .25790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.1593        5.3108        .52469E-05   -1.5173    
  11  Prefactor     3.5636        12.796        .85628E-05   -1.5330    
  12  Prefactor     .10000E-03    12.390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.4365        .48197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5244        9.8702        .10197E-04   -1.5390    
  15  norm          39.863        8.4133        .12695E-04   -1.4444    
  16  norm          .10000E-03    13.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .68161E-01    33.316        .10481       -1.5656    
  18  Prefactor     .46419E-01    8.3231        .45720E-01   -1.5665    
  19  Prefactor     .10000E-03    13.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.5778        11.608        .25900E-04   -1.5089    
  21  Prefactor     .10000E-03    14.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.006        13.895        .46247E-05   -1.5015    
  24  Prefactor     8.4883        17.021        .54973E-05   -1.5125    
  25  Prefactor     .10000E-03    8.7574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .72660        .24131        .11417E-04   -1.0285    
  27  Prefactor     1.1556        .24149        .98117E-05   -.87709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13424e-10
Minuit parameter uncertainties:
  1  4.78839
  2  1.02958e-07
  3  3.09281
  4  5.91621e-07
  5  1.64873e-07
  6  6.86677
  7  1.20667e-06
  8  66.1469
  9  2.20161e-06
  10  5.31111
  11  12.8063
  12  1.08852e-05
  13  7.31245e-05
  14  9.87652
  15  8.41351
  16  2.04335e-05
  17  3.01334
  18  1.24198
  19  8.88969e-07
  20  11.611
  21  1.56398e-06
  22  1.16433e-05
  23  13.8992
  24  17.0308
  25  7.79934e-06
  26  0.241661
  27  0.241721
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  7.312e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.156e+00  2.417e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  7.266e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164753/likelihoodResults_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.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) = 4852.58290333
delta logL = -0.000643295596092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4852.58225889
delta logL = 1.14126942208e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1375       1.0000          .0000       5.0000    
     3 'Normalizat'    .72664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   4852.582     FROM MIGRAD    STATUS=FAILED       111 CALLS      285 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13421E-03    1.6750        .27739E-01** at limit **
   2  alpha         2.9527        2.8514        .50000        .64350E-05
   3  Normalizat    .72660        .42817E-02    .28542E-03    .47113E-03
   4  Prefactor     1.1556        .45685E-02    .24529E-03    .40336E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4852.581     FROM SIMPLEX   STATUS=PROGRESS      88 CALLS      373 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92688E-01    1.6750        .43987E-03    .16330E-01
   2  alpha         2.8378        2.8514        .13346E-01    .64350E-05
   3  Normalizat    .72630        .42817E-02    .12498E-04    .47113E-03
   4  Prefactor     1.1553        .45685E-02    .80520E-05    .40336E-03
                               ERR DEF=  .500    

 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=   4852.581     FROM MIGRAD    STATUS=FAILED       101 CALLS      474 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94743E-01    1885.8        .79424E-04   -.12224E-03
   2  alpha         2.8411        2.9869        .10173        .98037E-04
   3  Normalizat    .72473        .32564        .11417E-04   -.32622E-03
   4  Prefactor     1.1562        .22839        .98117E-05   -.28434E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0947429
  alpha      = 2.84108
  Normalizat = 0.724728
  Prefactor  = 1.15621
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.581     FROM HESSE     STATUS=OK            25 CALLS      499 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94743E-01    11.260        .31770E-05   -1.5646    
   2  alpha         2.8411        3.8119        .20346E-01    .13686    
   3  Normalizat    .72473        .22543        .22833E-05   -1.0292    
   4  Prefactor     1.1562        .23771        .19623E-05   -.87690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30574e-10
Minuit parameter uncertainties:
  1  2.06505
  2  5.26924
  3  0.225716
  4  0.237932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164753': 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): 1
logL (Free Index) = 4852.5809776
delta logL = 0.0012824278856

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.474e-02  2.065e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.841e+00  5.269e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.156e+00  2.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  7.247e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

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/164753/cmap_HighResolution_603763201_604022401_4FGL_J1303.0+2434_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-06 18:39:59.733486', job_id='164753', GAL2='1.16', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1630978799.73', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.28e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1406' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 164753: <4FGL_J1303.0+2434_daily_bin1406> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1406> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:17 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:25:19 2021
Terminated at Mon Sep  6 18:40:00 2021
Results reported at Mon Sep  6 18:40:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1406 195.757 24.5821 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

