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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1524
RA = 181.203, Dec = 4.12
tmin = 634348801, tmax = 634608001
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='312140', job_status='RUN', time_executed='2021-09-04 23:24:20.732870', time_epoch_executed='1630823060.73' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312140/ft1_4FGL_J1204.8+0407_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312140/ft1_4FGL_J1204.8+0407_daily_bin1524.fits outfile=/scratch/kocevski/312140/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1524.fits ra=181.203 dec=4.12 rad=12.0 tmin=634348801.0 tmax=634608001.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.71
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312140/ft1_filtered_4FGL_J1204.8+0407_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/312140/ltcube_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.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/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits
.....................!
real 12.06
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312140/ft1_filtered_4FGL_J1204.8+0407_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/312140/ltcube_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.fits outfile=/scratch/kocevski/312140/expmap_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.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/312140/ltcube_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.fits
.....................!
real 190.11
user 185.72
sys 4.07

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/312140/ft1_filtered_4FGL_J1204.8+0407_daily_bin1524.fits scfile=/scratch/kocevski/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits outfile=/scratch/kocevski/312140/cmap_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312140/ft1_filtered_4FGL_J1204.8+0407_daily_bin1524.fits scfile=/scratch/kocevski/312140/ft2_4FGL_J1204.8+0407_daily_bin1524.fits outfile=/scratch/kocevski/312140/cmap_HighResolution_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5557       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.675       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0843       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21685E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10244E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    31.670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2427       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14551       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.971       1.0000         .10000E-03   10000.    
    25 'norm      '    9.4757       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
    27 'Prefactor '    51.727       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90718       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89936       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2960.876     FROM MIGRAD    STATUS=CONVERGED   1348 CALLS     4397 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3029        3.0664        .10669E-03    .79123E-04
   2  Prefactor     3.5533        173.15        .21434E-03    .48001E-05
   3  Prefactor     22.316        47.480        .84783E-04    .44653E-04
   4  Prefactor     .10000E-03    76.973        .18142E-02** at limit **
   5  Prefactor     .10000E-03    14.549        .18142E-02** at limit **
   6  Prefactor     .10000E-03    23.433        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.777        .18142E-02** at limit **
   8  Prefactor     20.649        40.060        .88087E-04    .38525E-04
   9  Prefactor     6.0815        14.424        .16277E-03    .42885E-04
  10  Prefactor     .10000E-03    172.88        .18142E-02** at limit **
  11  Prefactor     .10000E-03    24.953        .18142E-02** at limit **
  12  Prefactor     .10000E-03    26.142        .18142E-02** at limit **
  13  Prefactor     3.4223        53.664        .21837E-03    .87541E-04
  14  Prefactor     7.7231        51.180        .14447E-03   -.15541E-04
  15  Prefactor     .10000E-03    36.657        .36285E-03** at limit **
  16  norm          .10000E-03    1.3111        .60694E-03** at limit **
  17  norm          .10000E-03    15.543        .20180E-02** at limit **
  18  Prefactor     .10000E-03    46.783        .18142E-02** at limit **
  19  norm          31.733        54.481        .71200E-04   -.22035E-04
  20  Prefactor     .10000E-03    140.57        .18142E-02** at limit **
  21  norm          2.2430        .95403        .31012E-04   -.91447E-03
  22  Prefactor     12.108        13.829        .11524E-03   -.25048E-03
  23  Prefactor     .10022E-03    72.414        .10958    ** at limit **
  24  Prefactor     12.968        15.286        .11122E-03    .97875E-04
  25  norm          9.4762        3.2739        .54005E-04   -.50653E-03
  26  Prefactor     13.364        15.898        .10957E-03    .31180E-04
  27  Prefactor     51.722        46.602        .55763E-04   -.27258E-04
  28  Normalizat    .90700        .34986        .29616E-03    .17199E-03
  29  Prefactor     .89957        .26907        .24384E-03    .58256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30291
  Prefactor  = 3.55333
  Prefactor  = 22.3159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6486
  Prefactor  = 6.08146
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42232
  Prefactor  = 7.72312
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 31.7334
  Prefactor  = 0.000100001
  norm       = 2.24305
  Prefactor  = 12.1084
  Prefactor  = 0.000100222
  Prefactor  = 12.9682
  norm       = 9.47623
  Prefactor  = 13.3643
  Prefactor  = 51.7216
  Normalizat = 0.906998
  Prefactor  = 0.899574
 **********
 **   18 **HESSE 
 **********

 FCN=   2960.876     FROM HESSE     STATUS=OK           533 CALLS     4930 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3029        3.0664        .42674E-05   -1.5404    
   2  Prefactor     3.5533        173.10        .85737E-05   -1.5331    
   3  Prefactor     22.316        47.480        .33913E-05   -1.4763    
   4  Prefactor     .10000E-03    76.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.649        40.053        .35235E-05   -1.4799    
   9  Prefactor     6.0815        14.424        .65107E-05   -1.5215    
  10  Prefactor     .10000E-03    172.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.953        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4223        53.656        .87349E-05   -1.5338    
  14  Prefactor     7.7231        51.174        .57789E-05   -1.5152    
  15  Prefactor     .10000E-03    36.659        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3111        .12139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.570        .40361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          31.733        54.444        .28480E-05   -1.4581    
  20  Prefactor     .10000E-03    140.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2430        .95397        .12405E-05   -1.5408    
  22  Prefactor     12.108        13.794        .23048E-04   -1.5012    
  23  Prefactor     .10022E-03    68.384        .11335       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.968        15.284        .44488E-05   -1.4988    
  25  norm          9.4762        3.2739        .10801E-04   -1.5092    
  26  Prefactor     13.364        15.897        .43827E-05   -1.4977    
  27  Prefactor     51.722        46.601        .11153E-04   -1.4268    
  28  Normalizat    .90700        .35009        .59231E-04   -.96215    
  29  Prefactor     .89957        .26928        .97536E-05   -.96156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33377e-10
Minuit parameter uncertainties:
  1  3.06661
  2  49.7543
  3  47.5609
  4  7.17991e-07
  5  8.18968e-05
  6  1.33097e-05
  7  4.46438e-06
  8  40.1054
  9  14.4321
  10  0.000899325
  11  9.60585e-07
  12  4.42352e-06
  13  27.1304
  14  39.8096
  15  0.00068033
  16  7.50736e-06
  17  1.29801e-05
  18  8.48974e-05
  19  54.5293
  20  0.000855333
  21  0.95398
  22  13.7981
  23  0.00780231
  24  15.289
  25  3.27395
  26  15.9019
  27  46.6337
  28  0.350971
  29  0.269683
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  4.424e-06  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:  8.996e-01  2.697e-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:  9.070e-01  3.510e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312140/likelihoodResults_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.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) = 2960.87605126
delta logL = -0.000182088493602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2960.87586914
delta logL = 2.81743268715e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4951       1.0000          .0000       10.000    
     3 'Normalizat'    .90701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89957       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=   2960.876     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.253        .90712E-02** at limit **
   2  Index         2.4909        6.1039        .50000        .13844E-05
   3  Normalizat    .90700        .26995        .66949E-01    .47011E-03
   4  Prefactor     .89957        .22288        .45000E-01    .34702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.49087
  Normalizat = 0.907001
  Prefactor  = 0.899574
 **********
 **   18 **HESSE 
 **********

 FCN=   2960.876     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4909        6.2442        .50000       -.52571    
   3  Normalizat    .90700        .30897        .29616E-03   -.96215    
   4  Prefactor     .89957        .25541        .24384E-03   -.96156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71912e-10
Minuit parameter uncertainties:
  1  0.000390151
  2  4.3826
  3  0.309577
  4  0.255752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312140': 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) = 2960.87586914
delta logL = 3.07236405206e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.902e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.491e+00  4.383e+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:  8.996e-01  2.558e-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:  9.070e-01  3.096e-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/312140/cmap_HighResolution_634348801_634608001_4FGL_J1204.8+0407_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-04 23:34:19.575182', job_id='312140', GAL2='0.90', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630823659.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1524' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:34:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 312140: <4FGL_J1204.8+0407_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1524> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:52 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:54 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:20:54 2021
Terminated at Sat Sep  4 23:34:20 2021
Results reported at Sat Sep  4 23:34:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1524 181.203 4.12 634348801 634608001 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 :                                   592.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

