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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin979
RA = 196.008, Dec = 37.071
tmin = 493084801, tmax = 493344001
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='192276', job_status='RUN', time_executed='2021-09-06 19:57:55.186093', time_epoch_executed='1630983475.19' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192276/ft1_4FGL_J1304.0+3704_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192276/ft1_4FGL_J1304.0+3704_daily_bin979.fits outfile=/scratch/kocevski/192276/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin979.fits ra=196.008 dec=37.071 rad=12.0 tmin=493084801.0 tmax=493344001.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.69
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.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/192276/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/192276/ltcube_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.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/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits
.....................!
real 16.90
user 16.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/192276/ltcube_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits outfile=/scratch/kocevski/192276/expmap_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.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/192276/ltcube_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits
.....................!
real 191.97
user 186.62
sys 4.50

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/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits scfile=/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits outfile=/scratch/kocevski/192276/cmap_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits scfile=/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits outfile=/scratch/kocevski/192276/cmap_HighResolution_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits', '/scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits', expMap='/scratch/kocevski/192276/expmap_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits', expCube='/scratch/kocevski/192276/ltcube_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192276/Model_4FGL_J1304.0+3704_daily_bin979.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/192276/ft1_filtered_4FGL_J1304.0+3704_daily_bin979.fits
Spacecraft file(s): /scratch/kocevski/192276/ft2_4FGL_J1304.0+3704_daily_bin979.fits
Exposure map: /scratch/kocevski/192276/expmap_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits
Exposure cube: /scratch/kocevski/192276/ltcube_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192276/Model_4FGL_J1304.0+3704_daily_bin979.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) = 5055.66681853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.445       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50217       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.462       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.677       1.0000         .10000E-03   10000.    
    13 'norm      '    .11354E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .27457       1.0000         .10000E-03   10000.    
    15 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90676       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1817       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.173       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6404       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.727       1.0000         .10000E-03   10000.    
    26 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .69810       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2823       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=   5055.662     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3964 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.444        7.5984       -.20098E-06    .25731E-03
   2  Prefactor     5.7418        6.1591       -.27761E-07    .15228E-04
   3  Prefactor     .50254        4.7078       -.50868E-06   -.41977E-04
   4  Prefactor     10.041        11.571       -.21999E-06    .27916E-04
   5  Prefactor     .10000E-03    14.284        .33414E-06** at limit **
   6  Prefactor     32.248        22.280       -.29285E-07   -.74898E-06
   7  Prefactor     .10000E-03    25.723        .20537E-06** at limit **
   8  Prefactor     .10000E-03    2.6628        .19617E-07** at limit **
   9  norm          4.2935        4.6847       -.17069E-06    .58783E-04
  10  Prefactor     37.444        50.615       -.19680E-05    .14080E-04
  11  Prefactor     16.354        25.656        .53685E-06    .14249E-04
  12  Prefactor     11.685        15.473       -.37336E-06   -.28087E-04
  13  norm          .10000E-03    9.3466        .12279E-06** at limit **
  14  norm          .24011        96.153       -.42450E-05    .38220E-05
  15  norm          .10000E-03    2.5615        .26404E-06** at limit **
  16  norm          .90304        5.9394       -.11509E-05    .93386E-04
  17  norm          2.8132        3.8797       -.16207E-06   -.30715E-04
  18  Prefactor     .96549        2.7597        .82857E-06    .44579E-03
  19  Prefactor     3.1789        15.519       -.18176E-05   -.34723E-04
  20  Prefactor     .10000E-03    40.699        .16052E-05** at limit **
  21  Prefactor     11.174        40.491       -.24380E-06   -.10739E-04
  22  Prefactor     1.6404        11.400       -.10875E-05   -.28013E-04
  23  Prefactor     .10000E-03    22.966       -.91680E-06** at limit **
  24  Prefactor     .10000E-03    6.0191        .14969E-09** at limit **
  25  Prefactor     25.707        63.080       -.28407E-05    .88466E-05
  26  norm          .10000E-03    .86411       -.37446E-07** at limit **
  27  Prefactor     .10000E-03    3.5144       -.57943E-07** at limit **
  28  norm          .10000E-03    4.7878        .67499E-07** at limit **
  29  Normalizat    .69803        .17703       -.10721E-05    .71996E-04
  30  Prefactor     1.2824        .22532        .14304E-05   -.69602E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 22.4438
  Prefactor  = 5.74183
  Prefactor  = 0.50254
  Prefactor  = 10.0414
  Prefactor  = 0.0001
  Prefactor  = 32.2484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29354
  Prefactor  = 37.4439
  Prefactor  = 16.3538
  Prefactor  = 11.6847
  norm       = 0.0001
  norm       = 0.240109
  norm       = 0.0001
  norm       = 0.90304
  norm       = 2.81322
  Prefactor  = 0.965493
  Prefactor  = 3.17888
  Prefactor  = 0.0001
  Prefactor  = 11.1743
  Prefactor  = 1.64039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7068
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.698034
  Prefactor  = 1.28237
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.662     FROM HESSE     STATUS=OK           602 CALLS     4566 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.444        7.3892        .84547E-04   -1.4760    
   2  Prefactor     5.7418        6.1594        .16762E-03   -1.5229    
   3  Prefactor     .50254        4.6606        .25096E-03   -1.5566    
   4  Prefactor     10.041        11.544        .12645E-03   -1.5074    
   5  Prefactor     .10000E-03    14.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.248        22.276        .70563E-04   -1.4572    
   7  Prefactor     .10000E-03    25.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6692        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2935        4.6664        .13863E-03   -1.5294    
  10  Prefactor     37.444        50.096        .65481E-04   -1.4483    
  11  Prefactor     16.354        25.466        .99062E-04   -1.4899    
  12  Prefactor     11.685        15.317        .11723E-03   -1.5024    
  13  norm          .10000E-03    9.5434        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .24011        94.394        .40136E-02   -1.5610    
  15  norm          .10000E-03    4.7843        .20948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90304        6.5544        .34565E-03   -1.5518    
  17  norm          2.8132        3.8703        .15916E-03   -1.5373    
  18  Prefactor     .96549        2.6063        .17339E-02   -1.5511    
  19  Prefactor     3.1789        14.686        .22719E-03   -1.5351    
  20  Prefactor     .10000E-03    40.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.174        40.256        .11985E-03   -1.5039    
  22  Prefactor     1.6404        11.306        .32991E-03   -1.5452    
  23  Prefactor     .10000E-03    22.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.0223        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.707        63.315        .78978E-04   -1.4693    
  26  norm          .10000E-03    2.1966        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.6776        .26025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.7937        .15195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .69803        .20722        .24923E-03   -1.0397    
  30  Prefactor     1.2824        .26189        .24912E-03   -.83833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86688e-10
Minuit parameter uncertainties:
  1  7.38948
  2  6.16007
  3  3.06081
  4  11.5468
  5  2.33321e-06
  6  22.2812
  7  8.8249e-06
  8  8.51735e-07
  9  4.66684
  10  50.1526
  11  25.4831
  12  15.3218
  13  7.17496e-06
  14  9.53472
  15  7.4243e-05
  16  4.86625
  17  3.87063
  18  2.60662
  19  13.6707
  20  4.50837e-05
  21  40.3545
  22  8.61524
  23  3.73674e-05
  24  1.14151e-06
  25  63.4815
  26  1.00459e-05
  27  2.0601e-06
  28  3.07125e-06
  29  0.207454
  30  0.262159
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.168e+01  1.532e+01  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.282e+00  2.622e-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:  6.980e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192276/likelihoodResults_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.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) = 5055.37676752
delta logL = 0.284792094239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5055.35288831
delta logL = 0.308671299004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2129       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4379       1.0000          .0000       10.000    
     3 'Normalizat'    .67191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3069       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.

 FCN=   5055.353     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      257 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1722        81.959        .56505E-02    .36633E-03
   2  Index         3.4441        3.7940        .11813        .12353E-03
   3  Normalizat    .67208        .53244E-01    .41914E-01    .18427E-04
   4  Prefactor     1.3066        .68450E-01    .55890E-01    .15862E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.17217
  Index      = 3.44414
  Normalizat = 0.672082
  Prefactor  = 1.30658
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.353     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1722        149.93        .11756E-03   -1.5352    
   2  Index         3.4441        6.6379        .59880E-02   -.31643    
   3  Normalizat    .67208        .18738        .25349E-03   -1.0501    
   4  Prefactor     1.3066        .24886        .24712E-03   -.83111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.59026e-07
Minuit parameter uncertainties:
  1  43.7331
  2  7.19682
  3  0.187558
  4  0.249091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192276': 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) = 5055.35287961
delta logL = 0.308680000485

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.172e+00  4.373e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.444e+00  7.197e+00  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.307e+00  2.491e-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:  6.721e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 196.008 37.071
Photon Index (Free Index): 3.44 +/- 7.20
Photon Flux (Free Index): 4.03e-08 +/- 3.89e-08
Energy Flux (Free Index): 6.81e-06 +/- 1.47e-05

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/192276/cmap_HighResolution_493084801_493344001_4FGL_J1304.0+3704_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', comment='SUCCESS', energy_flux2='6.81e-06', dlogl='3.09e-01', photon_flux2='4.03e-08', job_status='DONE', time_completed='2021-09-06 20:11:04.484629', photon_index_error2='7.20', photon_index2='3.44', ts='0.77', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.47e-05', EG='0.70', time_epoch_completed='1630984264.48', return_code='0', job_id='192276', GAL2='1.31', EG2='0.67', return_code2='102', photon_flux_error2='3.89e-08', ts2='1.42', photon_index='2.44' WHERE bin_id='979' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 192276: <4FGL_J1304.0+3704_daily_bin979> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin979> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:27 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:30 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:55:30 2021
Terminated at Mon Sep  6 20:11:04 2021
Results reported at Mon Sep  6 20:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin979 196.008 37.071 493084801 493344001 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 :                                   785.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

