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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1546
RA = 181.203, Dec = 4.12
tmin = 640051201, tmax = 640310401
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='312171', job_status='RUN', time_executed='2021-09-04 23:25:10.067745', time_epoch_executed='1630823110.07' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312171/ft1_4FGL_J1204.8+0407_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312171/ft2_4FGL_J1204.8+0407_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312171/ft1_4FGL_J1204.8+0407_daily_bin1546.fits outfile=/scratch/kocevski/312171/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1546.fits ra=181.203 dec=4.12 rad=12.0 tmin=640051201.0 tmax=640310401.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.63
user 3.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312171/ft1_filtered_4FGL_J1204.8+0407_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/312171/ft2_4FGL_J1204.8+0407_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/312171/ltcube_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.fits outfile=/scratch/kocevski/312171/expmap_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.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/312171/ltcube_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.fits
.....................!
real 190.41
user 185.29
sys 4.18

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/312171/ft1_filtered_4FGL_J1204.8+0407_daily_bin1546.fits scfile=/scratch/kocevski/312171/ft2_4FGL_J1204.8+0407_daily_bin1546.fits outfile=/scratch/kocevski/312171/cmap_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312171/ft1_filtered_4FGL_J1204.8+0407_daily_bin1546.fits scfile=/scratch/kocevski/312171/ft2_4FGL_J1204.8+0407_daily_bin1546.fits outfile=/scratch/kocevski/312171/cmap_HighResolution_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7110       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86780       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    109.43       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .84356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.288       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6860       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87706       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93336       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=   5063.189     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3641 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3561        3.2844        .12561E-06   -.40546E-04
   2  Prefactor     35.293        38.176        .30442E-06    .14446E-04
   3  Prefactor     .10000E-03    7.6993        .57198E-06** at limit **
   4  Prefactor     22.959        70.097       -.67980E-05   -.13457E-03
   5  Prefactor     .10000E-03    3.0959       -.41617E-07** at limit **
   6  Prefactor     .10000E-03    11.518       -.66176E-07** at limit **
   7  Prefactor     .10000E-03    2.6727        .78092E-08** at limit **
   8  Prefactor     1.7103        17.134        .15927E-05   -.26074E-04
   9  Prefactor     .10000E-03    5.4153        .12685E-06** at limit **
  10  Prefactor     .10000E-03    22.217       -.18302E-05** at limit **
  11  Prefactor     .10000E-03    11.968        .28620E-06** at limit **
  12  Prefactor     .10000E-03    10.224       -.69447E-06** at limit **
  13  Prefactor     .10000E-03    6.7882       -.40687E-06** at limit **
  14  Prefactor     .10000E-03    11.809        .15444E-06** at limit **
  15  Prefactor     .10000E-03    4.7599       -.78280E-07** at limit **
  16  norm          .86872        2.0730        .47191E-06    .53261E-04
  17  norm          3.9428        4.6141        .18894E-06   -.11537E-04
  18  Prefactor     .10000E-03    16.981        .90335E-06** at limit **
  19  norm          109.44        64.014        .35800E-06    .46132E-04
  20  Prefactor     .10000E-03    68.529       -.66397E-06** at limit **
  21  norm          .84384        .69215       -.95319E-07   -.60295E-03
  22  Prefactor     28.284        13.658        .71595E-07    .42217E-05
  23  Prefactor     .10000E-03    29.155       -.21909E-07** at limit **
  24  Prefactor     .10000E-03    7.0556       -.23846E-06** at limit **
  25  norm          2.4641        1.9434        .64621E-07   -.95523E-04
  26  Prefactor     5.6801        12.783        .49735E-05   -.25848E-03
  27  Prefactor     .10000E-03    31.636        .14910E-05** at limit **
  28  Normalizat    .87707        .21048        .22406E-06   -.72551E-04
  29  Prefactor     .93335        .17060       -.98681E-06   -.58893E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3561
  Prefactor  = 35.2932
  Prefactor  = 0.0001
  Prefactor  = 22.9595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71032
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.868725
  norm       = 3.94282
  Prefactor  = 0.0001
  norm       = 109.438
  Prefactor  = 0.0001
  norm       = 0.843844
  Prefactor  = 28.2836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46414
  Prefactor  = 5.68011
  Prefactor  = 0.000100001
  Normalizat = 0.877066
  Prefactor  = 0.933347
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.189     FROM HESSE     STATUS=OK           547 CALLS     4188 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3561        3.2797        .10543E-03   -1.5291    
   2  Prefactor     35.293        38.237        .67458E-04   -1.4519    
   3  Prefactor     .10000E-03    7.7344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.959        73.568        .83539E-04   -1.4749    
   5  Prefactor     .10000E-03    3.1000        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6764        .11360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7103        17.182        .32135E-03   -1.5446    
   9  Prefactor     .10000E-03    5.4272        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8117        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7715        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86872        1.8705        .15194E-02   -1.5522    
  17  norm          3.9428        4.5729        .13414E-03   -1.5311    
  18  Prefactor     .10000E-03    17.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          109.44        64.316        .38448E-04   -1.3612    
  20  Prefactor     .10000E-03    68.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .84384        .66676        .45498E-04   -1.5524    
  22  Prefactor     28.284        13.654        .75326E-04   -1.4644    
  23  Prefactor     .10000E-03    29.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4641        1.9281        .82345E-04   -1.5394    
  26  Prefactor     5.6801        13.030        .84227E-03   -1.5231    
  27  Prefactor     .10000E-03    31.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .87707        .24178        .27631E-03   -.97271    
  29  Prefactor     .93335        .19639        .22629E-03   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66192e-10
Minuit parameter uncertainties:
  1  3.27983
  2  38.2636
  3  6.79783e-05
  4  73.861
  5  2.74489e-06
  6  1.09272e-05
  7  1.36765e-06
  8  10.8458
  9  8.65863e-06
  10  0.000377393
  11  4.20511e-05
  12  8.89843e-05
  13  4.88046e-05
  14  2.35402e-05
  15  9.85047e-06
  16  1.87063
  17  4.57331
  18  0.00015678
  19  64.3566
  20  0.000251209
  21  0.666769
  22  13.656
  23  1.73717e-05
  24  3.22488e-05
  25  1.92814
  26  13.037
  27  0.000349228
  28  0.242074
  29  0.196542
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  8.898e-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:  9.333e-01  1.965e-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:  8.771e-01  2.421e-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: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312171/likelihoodResults_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.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): 102
logL (Free Index) = 5063.18937205
delta logL = -0.000462991140921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5063.18890997
delta logL = -9.15158125281e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5561       1.0000          .0000       10.000    
     3 'Normalizat'    .87731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93315       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=   5063.189     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      259 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.836        .18142E-01** at limit **
   2  Index         1.9149        7.1428        .50000       -.16507E-07
   3  Normalizat    .87707        .10061E-01    .27631E-03   -.32299E-04
   4  Prefactor     .93335        .85234E-02    .22629E-03   -.36525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91491
  Normalizat = 0.877067
  Prefactor  = 0.933346
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.189     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    385.22        .26361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9149        8.7499        .50000       -.66495    
   3  Normalizat    .87707        .26758E-01    .11052E-04   -.97271    
   4  Prefactor     .93335        .22668E-01    .90514E-05   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.61148e-11
Minuit parameter uncertainties:
  1  6.46696e-05
  2  1080.93
  3  0.0267582
  4  0.0226687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312171': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5063.18890766
delta logL = 1.39767689689e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.467e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.915e+00  1.081e+03  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:  9.333e-01  2.267e-02  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:  8.771e-01  2.676e-02  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/312171/cmap_HighResolution_640051201_640310401_4FGL_J1204.8+0407_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-04 23:37:29.487542', job_id='312171', GAL2='0.93', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630823849.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1546' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 312171: <4FGL_J1204.8+0407_daily_bin1546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1546 181.203 4.12 640051201 640310401 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

