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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1119
RA = 181.203, Dec = 4.12
tmin = 529372801, tmax = 529632001
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='310396', job_status='RUN', time_executed='2021-09-04 23:18:12.263979', time_epoch_executed='1630822692.26' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310396

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310396/ft1_4FGL_J1204.8+0407_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310396/ft1_4FGL_J1204.8+0407_daily_bin1119.fits outfile=/scratch/kocevski/310396/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1119.fits ra=181.203 dec=4.12 rad=12.0 tmin=529372801.0 tmax=529632001.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.48
user 3.29
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.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/310396/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1119.fits evtable="EVENTS" outfile="/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/310396/ltcube_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.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/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/310396/ltcube_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits outfile=/scratch/kocevski/310396/expmap_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.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/310396/ltcube_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits
.....................!
real 189.95
user 185.61
sys 3.94

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

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits outfile=/scratch/kocevski/310396/cmap_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.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=181.203 yref=4.12 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits outfile=/scratch/kocevski/310396/cmap_HighResolution_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.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=181.203 yref=4.12 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310396/Model_4FGL_J1204.8+0407_daily_bin1119.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/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits.....................!
real 51.97
user 50.16
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits', '/scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits', expMap='/scratch/kocevski/310396/expmap_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits', expCube='/scratch/kocevski/310396/ltcube_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310396/Model_4FGL_J1204.8+0407_daily_bin1119.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/310396/ft1_filtered_4FGL_J1204.8+0407_daily_bin1119.fits
Spacecraft file(s): /scratch/kocevski/310396/ft2_4FGL_J1204.8+0407_daily_bin1119.fits
Exposure map: /scratch/kocevski/310396/expmap_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits
Exposure cube: /scratch/kocevski/310396/ltcube_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310396/Model_4FGL_J1204.8+0407_daily_bin1119.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) = 5671.27749411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41609E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.360       1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.266       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0404       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8373       1.0000         .10000E-03   10000.    
    19 'norm      '    72.031       1.0000         .10000E-03   10000.    
    20 'Prefactor '    278.90       1.0000         .10000E-03   10000.    
    21 'norm      '    .28680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.960       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2644       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9179       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5671.240     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3696 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2463        2.2563        .41538E-07   -.87162E-05
   2  Prefactor     .10000E-03    30.024        .53284E-06** at limit **
   3  Prefactor     23.987        22.091       -.84872E-07   -.28746E-04
   4  Prefactor     .10000E-03    39.851        .44428E-06** at limit **
   5  Prefactor     .10000E-03    4.1062       -.63016E-09** at limit **
   6  Prefactor     .10001E-03    34.087       -.13817E-06** at limit **
   7  Prefactor     13.970        10.793        .90032E-07   -.53713E-05
   8  Prefactor     .10000E-03    7.0767       -.61950E-08** at limit **
   9  Prefactor     14.350        16.547        .27931E-06    .52806E-04
  10  Prefactor     97.265        90.707        .12763E-06   -.80613E-05
  11  Prefactor     .10000E-03    36.712       -.73835E-06** at limit **
  12  Prefactor     .10000E-03    24.015       -.17267E-06** at limit **
  13  Prefactor     22.980        25.351       -.13689E-05   -.10474E-03
  14  Prefactor     .10000E-03    9.3823        .10142E-07** at limit **
  15  Prefactor     7.0396        12.002        .34784E-05   -.20059E-03
  16  norm          .10000E-03    1.0486       -.22531E-06** at limit **
  17  norm          4.4309        4.1242       -.29990E-07   -.74062E-04
  18  Prefactor     6.7186        76.638       -.11937E-05   -.84128E-05
  19  norm          72.026        56.009       -.43292E-06   -.18288E-04
  20  Prefactor     278.99        196.69        .53544E-05    .11800E-03
  21  norm          .28666        .63383        .16744E-07   -.51825E-03
  22  Prefactor     6.2099        9.1793        .12591E-05   -.12484E-03
  23  Prefactor     52.958        40.155       -.25745E-06    .12627E-04
  24  Prefactor     2.2662        14.754        .72706E-06   -.31735E-04
  25  norm          1.9181        1.7666        .60010E-07   -.81946E-04
  26  Prefactor     .10000E-03    16.067        .39998E-07** at limit **
  27  Prefactor     .10000E-03    15.995       -.93656E-07** at limit **
  28  Normalizat    1.0668        .22616       -.35461E-06   -.20534E-04
  29  Prefactor     1.1109        .18672       -.53367E-06   -.14040E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24631
  Prefactor  = 0.0001
  Prefactor  = 23.9874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 13.9697
  Prefactor  = 0.0001
  Prefactor  = 14.35
  Prefactor  = 97.265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.98
  Prefactor  = 0.0001
  Prefactor  = 7.0396
  norm       = 0.0001
  norm       = 4.43093
  Prefactor  = 6.71858
  norm       = 72.0262
  Prefactor  = 278.987
  norm       = 0.286665
  Prefactor  = 6.20992
  Prefactor  = 52.958
  Prefactor  = 2.26618
  norm       = 1.91809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06677
  Prefactor  = 1.11092
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.240     FROM HESSE     STATUS=OK           561 CALLS     4257 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2463        2.2576        .90850E-04   -1.5348    
   2  Prefactor     .10000E-03    30.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.987        22.097        .81788E-04   -1.4728    
   4  Prefactor     .10000E-03    39.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1132        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    35.163        .15207       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.970        10.798        .10715E-03   -1.4960    
   8  Prefactor     .10000E-03    7.0856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.350        16.582        .10570E-03   -1.4950    
  10  Prefactor     97.265        91.000        .40758E-04   -1.3732    
  11  Prefactor     .10000E-03    36.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.980        25.431        .83565E-04   -1.4749    
  14  Prefactor     .10000E-03    9.3855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0396        12.153        .75595E-03   -1.5177    
  16  norm          .10000E-03    1.0669        .75609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4309        4.0767        .12550E-03   -1.5287    
  18  Prefactor     6.7186        77.200        .15344E-03   -1.5190    
  19  norm          72.026        55.724        .47302E-04   -1.4009    
  20  Prefactor     278.99        206.53        .12147E-03   -1.2352    
  21  norm          .28666        .59868        .72633E-04   -1.5601    
  22  Prefactor     6.2099        9.1988        .80554E-03   -1.5210    
  23  Prefactor     52.958        40.204        .55113E-04   -1.4251    
  24  Prefactor     2.2662        14.547        .27296E-03   -1.5407    
  25  norm          1.9181        1.7407        .89926E-04   -1.5431    
  26  Prefactor     .10000E-03    16.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0668        .26950        .29061E-03   -.90826    
  29  Prefactor     1.1109        .22282        .24624E-03   -.89118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13389e-10
Minuit parameter uncertainties:
  1  2.25767
  2  0.000101506
  3  22.1044
  4  9.90397e-05
  5  1.67363e-06
  6  0.00144974
  7  10.8
  8  2.8217e-06
  9  16.5875
  10  91.1308
  11  0.000164672
  12  2.32797e-05
  13  25.4432
  14  1.20723e-06
  15  12.1574
  16  9.71596e-06
  17  4.07695
  18  45.6228
  19  55.7642
  20  207.072
  21  0.598692
  22  9.20094
  23  40.2245
  24  11.4871
  25  1.74074
  26  3.23641e-06
  27  1.18216e-05
  28  0.269847
  29  0.223006
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.328e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.111e+00  2.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.067e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310396/likelihoodResults_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.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) = 5671.2398919
delta logL = -0.000197986486455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5671.23969398
delta logL = -6.82266545482e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4901       1.0000          .0000       10.000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5671.240     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    155.20        .90712E-02** at limit **
   2  Index         2.4962        6.1714        .50000       -.22988E-05
   3  Normalizat    1.0668        .21111        .65693E-01    .14052E-04
   4  Prefactor     1.1109        .18299        .55690E-01    .74461E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49622
  Normalizat = 1.06677
  Prefactor  = 1.11092
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.240     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4962        6.2478        .50000       -.52447    
   3  Normalizat    1.0668        .25054        .29061E-03   -.90826    
   4  Prefactor     1.1109        .21737        .24624E-03   -.89118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6046e-12
Minuit parameter uncertainties:
  1  1.04487e-06
  2  4.46511
  3  0.250822
  4  0.217546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310396': 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) = 5671.23969396
delta logL = -4.16521288571e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.045e-06  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.496e+00  4.465e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.111e+00  2.175e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.067e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

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/310396/cmap_HighResolution_529372801_529632001_4FGL_J1204.8+0407_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-04 23:31:53.582028', job_id='310396', GAL2='1.11', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630823513.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-4.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1119' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 310396: <4FGL_J1204.8+0407_daily_bin1119> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1119> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:02 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:16:04 2021
Terminated at Sat Sep  4 23:31:54 2021
Results reported at Sat Sep  4 23:31:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1119 181.203 4.12 529372801 529632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   807.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

