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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1036
RA = 181.203, Dec = 4.12
tmin = 507859201, tmax = 508118401
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='310275', job_status='RUN', time_executed='2021-09-04 23:16:21.431325', time_epoch_executed='1630822581.43' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310275/ft1_4FGL_J1204.8+0407_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310275/ft1_4FGL_J1204.8+0407_daily_bin1036.fits outfile=/scratch/kocevski/310275/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1036.fits ra=181.203 dec=4.12 rad=12.0 tmin=507859201.0 tmax=508118401.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.15
user 3.92
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.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/310275/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1036.fits evtable="EVENTS" outfile="/scratch/kocevski/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/310275/ltcube_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.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/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits
.....................!
real 11.83
user 11.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/310275/ltcube_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits outfile=/scratch/kocevski/310275/expmap_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.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/310275/ltcube_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits
.....................!
real 191.10
user 184.98
sys 5.60

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/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits scfile=/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits outfile=/scratch/kocevski/310275/cmap_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits scfile=/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits outfile=/scratch/kocevski/310275/cmap_HighResolution_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.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.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits', '/scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits', expMap='/scratch/kocevski/310275/expmap_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits', expCube='/scratch/kocevski/310275/ltcube_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310275/Model_4FGL_J1204.8+0407_daily_bin1036.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/310275/ft1_filtered_4FGL_J1204.8+0407_daily_bin1036.fits
Spacecraft file(s): /scratch/kocevski/310275/ft2_4FGL_J1204.8+0407_daily_bin1036.fits
Exposure map: /scratch/kocevski/310275/expmap_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits
Exposure cube: /scratch/kocevski/310275/ltcube_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310275/Model_4FGL_J1204.8+0407_daily_bin1036.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) = 6649.04497143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14634E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5312       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12912E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.454       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4001       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0308       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.519       1.0000         .10000E-03   10000.    
    19 'norm      '    78.526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0243       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7070       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4618       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0534       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0353       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=   6649.032     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3696 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1080        .96206E-07** at limit **
   2  Prefactor     .10000E-03    32.102       -.53355E-08** at limit **
   3  Prefactor     .10000E-03    14.789        .32265E-07** at limit **
   4  Prefactor     12.509        155.09       -.72228E-05    .13732E-04
   5  Prefactor     1.9669        18.469        .31440E-05   -.99045E-05
   6  Prefactor     .10002E-03    274.34       -.20955E-04** at limit **
   7  Prefactor     .10000E-03    3.2055       -.25662E-06** at limit **
   8  Prefactor     4.5323        15.539       -.14788E-06   -.75073E-05
   9  Prefactor     .10000E-03    27.483       -.40071E-05** at limit **
  10  Prefactor     35.356        66.977       -.80506E-06   -.33306E-04
  11  Prefactor     16.006        55.325        .15615E-04    .35377E-04
  12  Prefactor     1.5194        202.83        .10728E-04   -.80430E-05
  13  Prefactor     .10000E-03    15.334       -.16294E-06** at limit **
  14  Prefactor     .10000E-03    8.6951       -.67672E-07** at limit **
  15  Prefactor     9.3996        10.114       -.61019E-07    .26290E-05
  16  norm          7.0304        3.2151        .30344E-08    .86161E-05
  17  norm          4.8107        4.4780       -.75906E-07   -.46831E-04
  18  Prefactor     11.537        31.110        .11878E-06   -.11348E-04
  19  norm          78.583        62.776        .25407E-06    .14585E-04
  20  Prefactor     .10000E-03    37.496       -.42087E-07** at limit **
  21  norm          2.0242        .77578       -.45380E-07   -.10070E-03
  22  Prefactor     6.7051        8.6446        .15018E-06   -.67758E-05
  23  Prefactor     .10000E-03    10.445       -.15593E-07** at limit **
  24  Prefactor     4.4629        10.189        .56321E-06   -.46812E-05
  25  norm          2.0534        1.9537        .18144E-06    .72377E-06
  26  Prefactor     .10000E-03    4.8374        .78566E-09** at limit **
  27  Prefactor     .10000E-03    14.725        .27730E-07** at limit **
  28  Normalizat    1.2078        .21934       -.10778E-05    .22665E-04
  29  Prefactor     1.0352        .17699       -.21164E-06    .76278E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5093
  Prefactor  = 1.96693
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 4.53225
  Prefactor  = 0.000100001
  Prefactor  = 35.356
  Prefactor  = 16.0062
  Prefactor  = 1.51941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.39956
  norm       = 7.03042
  norm       = 4.81068
  Prefactor  = 11.5372
  norm       = 78.5834
  Prefactor  = 0.0001
  norm       = 2.02417
  Prefactor  = 6.70505
  Prefactor  = 0.0001
  Prefactor  = 4.46286
  norm       = 2.05336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20781
  Prefactor  = 1.03525
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.032     FROM HESSE     STATUS=OK           553 CALLS     4249 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1292        .83773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.509        150.24        .11403E-03   -1.5000    
   5  Prefactor     1.9669        18.123        .29570E-03   -1.5427    
   6  Prefactor     .10002E-03    297.22        .40980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2122        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5323        15.481        .18913E-03   -1.5282    
   9  Prefactor     .10000E-03    28.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.356        66.549        .67304E-04   -1.4518    
  11  Prefactor     16.006        56.644        .99882E-04   -1.4908    
  12  Prefactor     1.5194        205.62        .34932E-03   -1.5461    
  13  Prefactor     .10000E-03    15.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3996        10.111        .13071E-03   -1.5095    
  16  norm          7.0304        3.2156        .91674E-04   -1.5178    
  17  norm          4.8107        4.4672        .13519E-03   -1.5269    
  18  Prefactor     11.537        31.112        .11804E-03   -1.5029    
  19  norm          78.583        62.999        .45318E-04   -1.3933    
  20  Prefactor     .10000E-03    37.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0242        .77097        .38776E-04   -1.5423    
  22  Prefactor     6.7051        8.6403        .15494E-03   -1.5190    
  23  Prefactor     .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.4629        10.181        .19063E-03   -1.5285    
  25  norm          2.0534        1.9326        .10294E-03   -1.5421    
  26  Prefactor     .10000E-03    4.8508        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2078        .25725        .28998E-03   -.86362    
  29  Prefactor     1.0352        .20786        .25701E-03   -.91564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46291e-10
Minuit parameter uncertainties:
  1  1.85813e-06
  2  8.69153e-06
  3  7.31937e-06
  4  86.9784
  5  11.9454
  6  0.00459646
  7  6.24933e-07
  8  15.4949
  9  0.000249906
  10  66.6889
  11  56.8349
  12  35.4746
  13  2.35657e-06
  14  1.25053e-06
  15  10.1129
  16  3.21565
  17  4.46755
  18  31.1558
  19  63.0526
  20  9.31596e-06
  21  0.770973
  22  8.64188
  23  1.89343e-06
  24  10.1853
  25  1.93267
  26  1.17319e-06
  27  1.13646e-05
  28  0.257522
  29  0.208023
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.519e+00  3.547e+01  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.035e+00  2.080e-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.208e+00  2.575e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310275/likelihoodResults_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.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) = 6649.01594471
delta logL = 0.0160026040958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6649.00455674
delta logL = 0.0273905783752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6528       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1826       1.0000          .0000       10.000    
     3 'Normalizat'    1.1946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0407       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=   6649.005     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      246 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6747        284.33        .46644E-02    .60533E-04
   2  Index         3.1855        1.5576        .50000        .17168E-04
   3  Normalizat    1.1945        .20521E-01    .65870E-01    .10379E-04
   4  Prefactor     1.0409        .17088E-01    .58017E-01    .18736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67467
  Index      = 3.1855
  Normalizat = 1.19453
  Prefactor  = 1.04087
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.005     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6747        32.834        .18658E-03   -1.5276    
   2  Index         3.1855        2.2299        .70935E-02   -.37138    
   3  Normalizat    1.1945        .25036        .29140E-03   -.86772    
   4  Prefactor     1.0409        .20334        .25654E-03   -.91379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04086e-11
Minuit parameter uncertainties:
  1  24.7973
  2  2.32518
  3  0.250616
  4  0.203486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310275': 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) = 6649.0045532
delta logL = 0.0273941181449

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.675e+00  2.480e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.185e+00  2.325e+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.041e+00  2.035e-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.195e+00  2.506e-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/310275/cmap_HighResolution_507859201_508118401_4FGL_J1204.8+0407_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 23:31:02.415037', job_id='310275', GAL2='1.04', fit_tolerance='1e-08', EG2='1.19', EG='1.21', time_epoch_completed='1630823462.42', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.74e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1036' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 310275: <4FGL_J1204.8+0407_daily_bin1036> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1036> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:50 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15:52 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:15:52 2021
Terminated at Sat Sep  4 23:31:03 2021
Results reported at Sat Sep  4 23:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1036 181.203 4.12 507859201 508118401 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 :                                   876.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

