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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin484
RA = 196.008, Dec = 37.071
tmin = 364780801, tmax = 365040001
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='189335', job_status='RUN', time_executed='2021-09-06 19:47:59.826287', time_epoch_executed='1630982879.83' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189335/ft1_4FGL_J1304.0+3704_daily_bin484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189335/ft1_4FGL_J1304.0+3704_daily_bin484.fits outfile=/scratch/kocevski/189335/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin484.fits ra=196.008 dec=37.071 rad=12.0 tmin=364780801.0 tmax=365040001.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 2.73
user 2.52
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.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/189335/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin484.fits evtable="EVENTS" outfile="/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits" evtable="EVENTS" scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits sctable="SC_DATA" outfile=/scratch/kocevski/189335/ltcube_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.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/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits
.....................!
real 14.35
user 13.99
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits sctable="SC_DATA" expcube=/scratch/kocevski/189335/ltcube_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits outfile=/scratch/kocevski/189335/expmap_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.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/189335/ltcube_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits
.....................!
real 158.30
user 153.68
sys 4.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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits outfile=/scratch/kocevski/189335/cmap_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.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=196.008 yref=37.071 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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits outfile=/scratch/kocevski/189335/cmap_HighResolution_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.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=196.008 yref=37.071 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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits evtable="EVENTS" scfile=/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189335/Model_4FGL_J1304.0+3704_daily_bin484.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/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits.....................!
real 39.99
user 38.84
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits', '/scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits', expMap='/scratch/kocevski/189335/expmap_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits', expCube='/scratch/kocevski/189335/ltcube_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189335/Model_4FGL_J1304.0+3704_daily_bin484.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/189335/ft1_filtered_4FGL_J1304.0+3704_daily_bin484.fits
Spacecraft file(s): /scratch/kocevski/189335/ft2_4FGL_J1304.0+3704_daily_bin484.fits
Exposure map: /scratch/kocevski/189335/expmap_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits
Exposure cube: /scratch/kocevski/189335/ltcube_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189335/Model_4FGL_J1304.0+3704_daily_bin484.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) = 6041.49191598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9715       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4219       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8912       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    44.230       1.0000         .10000E-03   10000.    
    15 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2439       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19066       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.613       1.0000         .10000E-03   10000.    
    25 'Prefactor '    85.156       1.0000         .10000E-03   10000.    
    26 'norm      '    9.9424       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1531       1.0000         .10000E-03   10000.    
    28 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81864       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6041.464     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3988 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9713        4.3370       -.43540E-09    .28262E-05
   2  Prefactor     6.4341        6.1985        .66104E-06   -.50051E-05
   3  Prefactor     5.0105        3.3970        .32886E-07   -.91820E-06
   4  Prefactor     .10000E-03    4.2256        .79839E-08** at limit **
   5  Prefactor     3.2599        49.239       -.72113E-06   -.28174E-05
   6  Prefactor     2.4965        40.826        .90927E-05   -.47822E-05
   7  Prefactor     .10000E-03    26.097       -.10587E-05** at limit **
   8  Prefactor     9.4213        8.7059       -.57349E-06    .71075E-04
   9  norm          5.8907        5.2857        .41016E-06    .83936E-04
  10  Prefactor     .10000E-03    176.22        .12274E-05** at limit **
  11  Prefactor     32.621        29.711        .20736E-06    .51003E-04
  12  Prefactor     .10000E-03    8.5250       -.50619E-06** at limit **
  13  norm          .10000E-03    2.0505       -.49804E-07** at limit **
  14  norm          44.232        21.183        .62044E-07   -.17028E-04
  15  norm          .10000E-03    2.8773       -.21213E-06** at limit **
  16  norm          .10000E-03    2.6963       -.60284E-07** at limit **
  17  norm          1.2427        3.6549        .55773E-06    .31161E-04
  18  Prefactor     .19166        1.4246       -.98160E-07   -.23956E-04
  19  Prefactor     .10000E-03    6.6663       -.15753E-06** at limit **
  20  Prefactor     .10000E-03    9.3978        .51898E-06** at limit **
  21  Prefactor     .10000E-03    19.580        .23031E-05** at limit **
  22  Prefactor     .10000E-03    6.1846       -.25946E-07** at limit **
  23  Prefactor     .10000E-03    16.896       -.15873E-05** at limit **
  24  Prefactor     20.614        21.161        .18807E-06    .27181E-05
  25  Prefactor     85.143        70.428        .13969E-05    .19597E-05
  26  norm          9.9426        2.1828        .13106E-07    .28531E-04
  27  Prefactor     7.1541        5.2783        .65222E-06   -.87603E-05
  28  norm          .10000E-03    6.4557        .12757E-06** at limit **
  29  Normalizat    .81832        .16482        .24270E-06    .71635E-04
  30  Prefactor     1.0457        .20549       -.11355E-05    .33246E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.97134
  Prefactor  = 6.43408
  Prefactor  = 5.01052
  Prefactor  = 0.0001
  Prefactor  = 3.25988
  Prefactor  = 2.49649
  Prefactor  = 0.0001
  Prefactor  = 9.42126
  norm       = 5.8907
  Prefactor  = 0.0001
  Prefactor  = 32.621
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 44.2319
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.24269
  Prefactor  = 0.191661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6145
  Prefactor  = 85.1434
  norm       = 9.94259
  Prefactor  = 7.15412
  norm       = 0.0001
  Normalizat = 0.818318
  Prefactor  = 1.04571
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.464     FROM HESSE     STATUS=OK           588 CALLS     4576 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9713        4.3807        .12848E-03   -1.5262    
   2  Prefactor     6.4341        6.1912        .79112E-03   -1.5201    
   3  Prefactor     5.0105        3.4291        .99899E-04   -1.5260    
   4  Prefactor     .10000E-03    4.2496        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2599        49.251        .22405E-03   -1.5347    
   6  Prefactor     2.4965        41.064        .12931E-02   -1.5392    
   7  Prefactor     .10000E-03    26.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4213        8.6910        .13056E-03   -1.5094    
   9  norm          5.8907        5.2771        .14431E-03   -1.5223    
  10  Prefactor     .10000E-03    177.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.621        29.624        .70167E-04   -1.4565    
  12  Prefactor     .10000E-03    8.5573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0606        .10863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          44.232        21.190        .60282E-04   -1.4377    
  15  norm          .10000E-03    2.9647        .25658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.7081        .12459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2427        3.6338        .24434E-03   -1.5485    
  18  Prefactor     .19166        7.7097        .17355E-02   -1.5620    
  19  Prefactor     .10000E-03    6.6964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.614        21.162        .88219E-04   -1.4800    
  25  Prefactor     85.143        70.800        .43533E-04   -1.3860    
  26  norm          9.9426        2.1837        .51928E-04   -1.5077    
  27  Prefactor     7.1541        5.2856        .73645E-03   -1.5173    
  28  norm          .10000E-03    6.4801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .81832        .19704        .23811E-03   -.99393    
  30  Prefactor     1.0457        .24468        .27537E-03   -.91221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56227e-08
Minuit parameter uncertainties:
  1  4.38097
  2  6.1918
  3  3.42927
  4  1.07423e-06
  5  25.3666
  6  20.2661
  7  4.2683e-05
  8  8.69212
  9  5.27755
  10  0.000204978
  11  29.6373
  12  1.72262e-05
  13  2.89615e-06
  14  21.1939
  15  1.66051e-05
  16  4.29713e-06
  17  3.63444
  18  2.43087
  19  2.22109e-06
  20  3.3934e-06
  21  1.12325e-05
  22  1.75071e-06
  23  3.98639e-06
  24  21.17
  25  70.8701
  26  2.18374
  27  5.28597
  28  6.94303e-06
  29  0.197213
  30  0.244938
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.723e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.046e+00  2.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.183e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 6.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189335/likelihoodResults_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.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) = 6041.464606
delta logL = -0.00055682290531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6041.46404936
delta logL = -1.80865754373e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4282       1.0000          .0000       10.000    
     3 'Normalizat'    .81826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   6041.464     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    207.19        .18142E-02** at limit **
   2  Index         2.3653        8.8173        .50000        .56426E-05
   3  Normalizat    .81832        .19142E-01    .23811E-03    .85942E-05
   4  Prefactor     1.0457        .24855E-01    .27537E-03    .60276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100644
  Index      = 2.36535
  Normalizat = 0.818317
  Prefactor  = 1.04571
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.464     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064E-03    860.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3653        8.7657        .50000       -.55498    
   3  Normalizat    .81832        .44270E-01    .95244E-05   -.99393    
   4  Prefactor     1.0457        .57426E-01    .11015E-04   -.91221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90593e-08
Minuit parameter uncertainties:
  1  0.0477982
  2  2072.75
  3  0.0442715
  4  0.0574295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189335': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6041.46404911
delta logL = 7.23093762645e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.006e-04  4.780e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.365e+00  2.073e+03  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.046e+00  5.743e-02  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.183e-01  4.427e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

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/189335/cmap_HighResolution_364780801_365040001_4FGL_J1304.0+3704_daily_bin484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-06 20:00:06.989941', job_id='189335', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630983606.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='484' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:00:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 189335: <4FGL_J1304.0+3704_daily_bin484> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin484> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:23 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:45:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:45:36 2021
Terminated at Mon Sep  6 20:00:07 2021
Results reported at Mon Sep  6 20:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin484 196.008 37.071 364780801 365040001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            884 sec.

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

