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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1207
RA = 181.203, Dec = 4.12
tmin = 552182401, tmax = 552441601
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='310642', job_status='RUN', time_executed='2021-09-04 23:18:09.267528', time_epoch_executed='1630822689.27' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310642/ft1_4FGL_J1204.8+0407_daily_bin1207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310642/ft1_4FGL_J1204.8+0407_daily_bin1207.fits outfile=/scratch/kocevski/310642/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1207.fits ra=181.203 dec=4.12 rad=12.0 tmin=552182401.0 tmax=552441601.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.67
user 3.47
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.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/310642/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1207.fits evtable="EVENTS" outfile="/scratch/kocevski/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits" evtable="EVENTS" scfile=/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits sctable="SC_DATA" outfile=/scratch/kocevski/310642/ltcube_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.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/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits
.....................!
real 11.89
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits evtable="EVENTS" scfile=/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits sctable="SC_DATA" expcube=/scratch/kocevski/310642/ltcube_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits outfile=/scratch/kocevski/310642/expmap_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.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/310642/ltcube_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits
.....................!
real 190.51
user 185.29
sys 4.86

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/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits scfile=/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits outfile=/scratch/kocevski/310642/cmap_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits scfile=/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits outfile=/scratch/kocevski/310642/cmap_HighResolution_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits', '/scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits', expMap='/scratch/kocevski/310642/expmap_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits', expCube='/scratch/kocevski/310642/ltcube_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/310642/Model_4FGL_J1204.8+0407_daily_bin1207.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/310642/ft1_filtered_4FGL_J1204.8+0407_daily_bin1207.fits
Spacecraft file(s): /scratch/kocevski/310642/ft2_4FGL_J1204.8+0407_daily_bin1207.fits
Exposure map: /scratch/kocevski/310642/expmap_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits
Exposure cube: /scratch/kocevski/310642/ltcube_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/310642/Model_4FGL_J1204.8+0407_daily_bin1207.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 225.009931481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 219.251660458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.000       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56938E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15037E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8654       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8380       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41666E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0765       1.0000         .10000E-03   10000.    
     9 'Prefactor '    137.11       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7656       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    156.29       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16043       1.0000         .10000E-03   10000.    
    16 'norm      '    .12294E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .27787E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2426       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8928       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9720       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6716       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6330       1.0000         .10000E-03   10000.    
    24 'Prefactor '    108.47       1.0000         .10000E-03   10000.    
    25 'norm      '    .27815E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10571E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15123E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .39326       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   219.2439     FROM MIGRAD    STATUS=CONVERGED    263 CALLS      663 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.992        13.275        .28910E-02   -.58381E-02
   2  Prefactor     .10000E-03    65.529        .10546E-01** at limit **
   3  Prefactor     .10000E-03    70.203        .90980E-02** at limit **
   4  Prefactor     1.2428        8749.1        .41455E-02    .49778E-02
   5  Prefactor     2.8380        1.0164         .0000         .0000    
   6  Prefactor     .10000E-03    .30738        .90273E-06** at limit **
   7  Prefactor     .10000E-03    .23627        .46449E-06** at limit **
   8  Prefactor     3.0765        1.0139         .0000         .0000    
   9  Prefactor     140.35        1.0116        .12744E-06   -.91798E-03
  10  Prefactor     8.7656        1.0016         .0000         .0000    
  11  Prefactor     6.7500        .65513       -.95348E-05   -.52306E-02
  12  Prefactor     .10031E-03    .13847       -.61867E-05** at limit **
  13  Prefactor     155.34        .99700       -.39851E-06   -.25637E-02
  14  Prefactor     .37820E-03    .28574       -.22397E-04** at limit **
  15  Prefactor     .10000E-03    .23988       -.87496E-06** at limit **
  16  norm          .10000E-03    .20571        .12631E-06** at limit **
  17  norm          .10000E-03    .24775       -.25999E-05** at limit **
  18  Prefactor     2.2426        1.0273         .0000         .0000    
  19  norm          .12218E-03    .42760E-01    .18209E-04** at limit **
  20  Prefactor     6.9720        1.0026         .0000         .0000    
  21  norm          .10000E-03    .20571        .66724E-09** at limit **
  22  Prefactor     6.6716        1.0028         .0000         .0000    
  23  Prefactor     6.6330        1.0029         .0000         .0000    
  24  Prefactor     108.42        .99977        .20088E-06    .90427E-02
  25  norm          .10000E-03    .24773        .14626E-05** at limit **
  26  Prefactor     .10000E-03    .26846        .51135E-07** at limit **
  27  Prefactor     .10000E-03    .20695        .26778E-05** at limit **
  28  Normalizat    .10000E-01    .25505        .70932E-04** at limit **
  29  Prefactor     .39356        .72402        .10275E-04    .34260E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2428
  Prefactor  = 2.83799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07652
  Prefactor  = 140.346
  Prefactor  = 8.76557
  Prefactor  = 6.75001
  Prefactor  = 0.000100309
  Prefactor  = 155.339
  Prefactor  = 0.000378202
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24259
  norm       = 0.000122177
  Prefactor  = 6.97203
  norm       = 0.0001
  Prefactor  = 6.67158
  Prefactor  = 6.63302
  Prefactor  = 108.418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.393564
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   219.2439     FROM HESSE     STATUS=FAILED        17 CALLS      680 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.992        13.275        .28910E-02   -1.5015    
   2  Prefactor     .10000E-03    65.529        .10546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    70.203        .90980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2428        8749.1        .41455E-02   -1.5485    
   5  Prefactor     556.53        553.60         .0000       -1.5371    
   6  Prefactor     .10000E-03    .30738        .90273E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .23627        .46449E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0765        1.0139         .0000       -1.5357    
   9  Prefactor     140.35        1.0116        .12744E-06   -1.3333    
  10  Prefactor     8.7656        1.0016         .0000       -1.5116    
  11  Prefactor     6.7500        .65513       -.95348E-05   -1.5188    
  12  Prefactor     .10031E-03    .13847       -.61867E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     155.34        .99700       -.39851E-06   -1.3209    
  14  Prefactor     .37820E-03    .28574       -.22397E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .23988       -.87496E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .12631E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .24775       -.25999E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2426        1.0273         .0000       -1.5408    
  19  norm          .12218E-03    .42760E-01    .18209E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9720        1.0026         .0000       -1.5180    
  21  norm          .10000E-03    .20571        .66724E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6716        1.0028         .0000       -1.5191    
  23  Prefactor     6.6330        1.0029         .0000       -1.5193    
  24  Prefactor     108.42        .99977        .20088E-06   -1.3622    
  25  norm          .10000E-03    .24773        .14626E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .26846        .51135E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20695        .26778E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .25505        .70932E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .39356        .72402        .10275E-04   -1.1714    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.09116e-10
Minuit parameter uncertainties:
  1  13.2783
  2  1.49929e-05
  3  0.000154769
  4  235.932
  5  1.01643
  6  1.22845e-05
  7  3.40433e-06
  8  1.01386
  9  1.01156
  10  1.00164
  11  0.655126
  12  0.000413875
  13  0.996996
  14  0.0178318
  15  2.0651e-06
  16  1.21107e-06
  17  1.65831e-05
  18  1.02731
  19  0.00194761
  20  1.00259
  21  7.37034e-09
  22  1.00284
  23  1.00287
  24  0.999767
  25  9.81052e-06
  26  1.01568e-06
  27  1.64031e-05
  28  1.37137e-05
  29  0.741888
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 219.243884359

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.003e-04  4.139e-04  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:  3.936e-01  7.419e-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.000e-02  1.371e-05  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.05e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310642/likelihoodResults_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.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) = 219.243889951
delta logL = -5.59144766044e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 219.243889856
delta logL = -5.49724600774e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96205E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5781       1.0000          .0000       10.000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39356       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=   219.2439     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      220 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6697.5        .90728E-02** at limit **
   2  Index         2.5640        7.0787        .50000        .13164E-06
   3  Normalizat    .10000E-01    .15327E-01    .20783    ** at limit **
   4  Prefactor     .39356        .29442E-01    .55107E-01    .17997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.56397
  Normalizat = 0.01
  Prefactor  = 0.393563
 **********
 **   18 **HESSE 
 **********

 FCN=   219.2439     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      251 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9798.7        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5640        7.9264        .50000       -.50889    
   3  Normalizat    .10000E-01    .26741        .12611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39356        .65730E-01    .24370E-03   -1.1714    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.78377e-08
Minuit parameter uncertainties:
  1  0.00715558
  2  9953.44
  3  1.80901e-08
  4  0.0657427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310642': 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) = 219.243884359
delta logL = 6.19337470198e-10

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  7.156e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.564e+00  9.953e+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:  3.936e-01  6.574e-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:  1.000e-02  1.809e-08  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/310642/cmap_HighResolution_552182401_552441601_4FGL_J1204.8+0407_daily_bin1207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-01', job_status='DONE', photon_flux_upper_limit='6.05e-06', time_completed='2021-09-04 23:23:49.404030', job_id='310642', GAL2='0.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630823029.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.39', dlogl='6.19e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1207' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 310642: <4FGL_J1204.8+0407_daily_bin1207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1207 181.203 4.12 552182401 552441601 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 :                                   327.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             422.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            445 sec.

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

