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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin461
RA = 196.008, Dec = 37.071
tmin = 358819201, tmax = 359078401
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='189303', job_status='RUN', time_executed='2021-09-06 19:49:07.379096', time_epoch_executed='1630982947.38' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189303

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189303/ft1_4FGL_J1304.0+3704_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189303/ft1_4FGL_J1304.0+3704_daily_bin461.fits outfile=/scratch/kocevski/189303/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin461.fits ra=196.008 dec=37.071 rad=12.0 tmin=358819201.0 tmax=359078401.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.49
user 4.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.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/189303/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin461.fits evtable="EVENTS" outfile="/scratch/kocevski/189303/ft1_filtered_4FGL_J1304.0+3704_daily_bin461.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.44
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189303/ft1_filtered_4FGL_J1304.0+3704_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/189303/ltcube_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.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/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits
.....................!
real 13.62
user 13.21
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189303/ft1_filtered_4FGL_J1304.0+3704_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/189303/ltcube_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.fits outfile=/scratch/kocevski/189303/expmap_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.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/189303/ltcube_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.fits
.....................!
real 158.94
user 154.03
sys 3.24

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/189303/ft1_filtered_4FGL_J1304.0+3704_daily_bin461.fits scfile=/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits outfile=/scratch/kocevski/189303/cmap_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.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.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189303/ft1_filtered_4FGL_J1304.0+3704_daily_bin461.fits scfile=/scratch/kocevski/189303/ft2_4FGL_J1304.0+3704_daily_bin461.fits outfile=/scratch/kocevski/189303/cmap_HighResolution_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.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.49
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.329       1.0000         .10000E-03   10000.    
     7 'Prefactor '    114.49       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1443       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7823       1.0000         .10000E-03   10000.    
    13 'norm      '    .10646E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2937       1.0000         .10000E-03   10000.    
    15 'norm      '    .31785E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    12.367       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.512       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.228       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1807       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .27488       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.4709       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90523       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=   5974.201     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4053 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9676        4.1558       -.19216E-06   -.18027E-03
   2  Prefactor     5.5221        5.3943        .52915E-06    .38375E-03
   3  Prefactor     8.5180        3.7045        .12294E-06    .14408E-03
   4  Prefactor     13.903        11.410        .75397E-07   -.13819E-04
   5  Prefactor     .10000E-03    6.1151        .25264E-08** at limit **
   6  Prefactor     12.329        20.996       -.14802E-06    .28181E-05
   7  Prefactor     114.45        80.474       -.68220E-05   -.37366E-03
   8  Prefactor     10.194        8.0587        .64409E-06   -.49130E-03
   9  norm          2.1455        3.5124        .45224E-06   -.54505E-04
  10  Prefactor     41.853        42.802       -.97988E-06   -.90055E-05
  11  Prefactor     .10000E-03    14.837       -.99895E-07** at limit **
  12  Prefactor     5.7813        14.209       -.70711E-06   -.47550E-04
  13  norm          .10000E-03    2.4088       -.19543E-07** at limit **
  14  norm          4.2956        12.033        .48659E-05   -.56240E-03
  15  norm          .10000E-03    2.4872        .10805E-07** at limit **
  16  norm          12.378        8.1625        .90892E-07   -.40082E-04
  17  norm          1.7394        3.0745        .14567E-06   -.15125E-03
  18  Prefactor     .10000E-03    .94916        .13429E-07** at limit **
  19  Prefactor     .10000E-03    8.0134        .30822E-07** at limit **
  20  Prefactor     15.513        23.481        .15568E-06    .21275E-04
  21  Prefactor     44.236        52.046        .21744E-05    .12228E-03
  22  Prefactor     5.1648        17.796       -.63229E-06   -.66936E-04
  23  Prefactor     .10000E-03    16.942        .50587E-07** at limit **
  24  Prefactor     .34813        14.576        .84892E-08    .13484E-04
  25  Prefactor     .10000E-03    27.912        .12557E-07** at limit **
  26  norm          8.4711        2.0943       -.64110E-08    .74685E-05
  27  Prefactor     .10000E-03    2.2889        .84381E-08** at limit **
  28  norm          .10000E-03    5.0846        .35068E-08** at limit **
  29  Normalizat    1.0357        .16829        .32372E-06   -.43958E-04
  30  Prefactor     .90526        .21030       -.57729E-06    .12159E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.96759
  Prefactor  = 5.52206
  Prefactor  = 8.51798
  Prefactor  = 13.9034
  Prefactor  = 0.0001
  Prefactor  = 12.3291
  Prefactor  = 114.453
  Prefactor  = 10.194
  norm       = 2.14551
  Prefactor  = 41.8532
  Prefactor  = 0.0001
  Prefactor  = 5.78128
  norm       = 0.0001
  norm       = 4.29565
  norm       = 0.0001
  norm       = 12.3785
  norm       = 1.73942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5135
  Prefactor  = 44.2355
  Prefactor  = 5.16484
  Prefactor  = 0.0001
  Prefactor  = 0.348129
  Prefactor  = 0.0001
  norm       = 8.47106
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.03569
  Prefactor  = 0.905264
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.201     FROM HESSE     STATUS=OK           606 CALLS     4659 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9676        4.1688        .12233E-03   -1.5219    
   2  Prefactor     5.5221        5.4266        .17098E-03   -1.5238    
   3  Prefactor     8.5180        3.7121        .90679E-04   -1.5124    
   4  Prefactor     13.903        11.411        .10742E-03   -1.4962    
   5  Prefactor     .10000E-03    6.1171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.329        20.991        .11409E-03   -1.5006    
   7  Prefactor     114.45        86.869        .18800E-03   -1.3564    
   8  Prefactor     10.194        8.1134        .62748E-03   -1.5069    
   9  norm          2.1455        3.4912        .17589E-03   -1.5415    
  10  Prefactor     41.853        42.887        .61961E-04   -1.4413    
  11  Prefactor     .10000E-03    14.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7813        14.014        .16703E-03   -1.5227    
  13  norm          .10000E-03    4.4688        .23022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2956        13.574        .97211E-03   -1.5293    
  15  norm          .10000E-03    10.636        .33216E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.378        9.4653        .11391E-03   -1.5004    
  17  norm          1.7394        3.0503        .17390E-03   -1.5444    
  18  Prefactor     .10000E-03    .95561        .73468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.513        23.454        .10169E-03   -1.4920    
  21  Prefactor     44.236        52.304        .60284E-04   -1.4377    
  22  Prefactor     5.1648        17.968        .17662E-03   -1.5253    
  23  Prefactor     .10000E-03    16.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .34813        312.23        .54354E-02   -1.5590    
  25  Prefactor     .10000E-03    27.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.4711        2.0960        .53681E-04   -1.5126    
  27  Prefactor     .10000E-03    2.3043        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.0919        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0357        .19954        .22539E-03   -.91844    
  30  Prefactor     .90526        .24795        .30288E-03   -.95957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8117e-09
Minuit parameter uncertainties:
  1  4.16903
  2  5.4271
  3  3.71216
  4  11.413
  5  6.7595e-07
  6  21.003
  7  86.9656
  8  8.11423
  9  3.4915
  10  42.9187
  11  4.63982e-06
  12  14.0221
  13  5.66697e-06
  14  13.5837
  15  9.43633e-05
  16  9.46642
  17  3.05057
  18  2.13771e-06
  19  1.14055e-05
  20  23.4676
  21  52.3582
  22  17.9869
  23  1.26834e-06
  24  20.9589
  25  1.1705e-05
  26  2.09605
  27  2.54693e-07
  28  1.45412e-06
  29  0.199688
  30  0.248264
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  5.781e+00  1.402e+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:  9.053e-01  2.483e-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:  1.036e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189303/likelihoodResults_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.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) = 5974.19432671
delta logL = 0.00708872028645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5974.19128823
delta logL = 0.010127193128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0124       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2712       1.0000          .0000       10.000    
     3 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90349       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=   5974.191     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0089        16.695        .15149E-03   -.20262E-05
   2  Index         2.2712        1.1173        .48863E-02    .27040E-04
   3  Normalizat    1.0373        .19305        .22524E-03   -.17565E-04
   4  Prefactor     .90351        .24447        .30312E-03   -.32367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00894
  Index      = 2.27124
  Normalizat = 1.03729
  Prefactor  = 0.903513
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.191     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0089        16.462        .60598E-05   -1.5178    
   2  Index         2.2712        1.1021        .97725E-03   -.57729    
   3  Normalizat    1.0373        .19323        .90094E-05   -.91792    
   4  Prefactor     .90351        .24470        .12125E-04   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48485e-12
Minuit parameter uncertainties:
  1  16.473
  2  1.11519
  3  0.193364
  4  0.244998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189303': 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) = 5974.19128821
delta logL = 0.0101272210768

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  7.009e+00  1.647e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.271e+00  1.115e+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:  9.035e-01  2.450e-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:  1.037e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/189303/cmap_HighResolution_358819201_359078401_4FGL_J1304.0+3704_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-06 20:01:28.023958', job_id='189303', GAL2='0.90', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630983688.02', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.01e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='461' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 189303: <4FGL_J1304.0+3704_daily_bin461> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin461> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:22 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:45:24 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:24 2021
Terminated at Mon Sep  6 20:01:28 2021
Results reported at Mon Sep  6 20:01:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin461 196.008 37.071 358819201 359078401 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

