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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1384
RA = 181.203, Dec = 4.12
tmin = 598060801, tmax = 598320001
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='311941', job_status='RUN', time_executed='2021-09-04 23:22:44.383540', time_epoch_executed='1630822964.38' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311941/ft1_4FGL_J1204.8+0407_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311941/ft1_4FGL_J1204.8+0407_daily_bin1384.fits outfile=/scratch/kocevski/311941/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1384.fits ra=181.203 dec=4.12 rad=12.0 tmin=598060801.0 tmax=598320001.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.91
user 4.61
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311941/ft1_filtered_4FGL_J1204.8+0407_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/311941/ltcube_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.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/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits
.....................!
real 11.98
user 11.47
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311941/ft1_filtered_4FGL_J1204.8+0407_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/311941/ltcube_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.fits outfile=/scratch/kocevski/311941/expmap_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.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/311941/ltcube_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.fits
.....................!
real 194.36
user 188.25
sys 5.33

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/311941/ft1_filtered_4FGL_J1204.8+0407_daily_bin1384.fits scfile=/scratch/kocevski/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits outfile=/scratch/kocevski/311941/cmap_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311941/ft1_filtered_4FGL_J1204.8+0407_daily_bin1384.fits scfile=/scratch/kocevski/311941/ft2_4FGL_J1204.8+0407_daily_bin1384.fits outfile=/scratch/kocevski/311941/cmap_HighResolution_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    120.51       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1926       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.706       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4008       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    64.994       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .95807       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    67.961       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.277       1.0000         .10000E-03   10000.    
    25 'norm      '    2.6769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.919       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1558       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78005       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=   5762.461     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3628 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3552        2.2264       -.15455E-06   -.57694E-04
   2  Prefactor     .10000E-03    8.2643       -.23033E-05** at limit **
   3  Prefactor     .10000E-03    22.215       -.88834E-05** at limit **
   4  Prefactor     120.49        100.07       -.17072E-04   -.63525E-05
   5  Prefactor     .10000E-03    13.530        .18673E-05** at limit **
   6  Prefactor     .10000E-03    13.056        .11468E-05** at limit **
   7  Prefactor     4.1925        4.2734        .48742E-07    .16982E-03
   8  Prefactor     23.373        21.500        .15252E-04    .13328E-03
   9  Prefactor     .10000E-03    13.326        .81424E-06** at limit **
  10  Prefactor     12.650        203.96       -.14285E-03   -.13948E-04
  11  Prefactor     .10000E-03    11.646       -.10168E-05** at limit **
  12  Prefactor     .10000E-03    24.084        .82614E-05** at limit **
  13  Prefactor     .10000E-03    8.5846        .10806E-05** at limit **
  14  Prefactor     .10000E-03    7.1617        .13602E-06** at limit **
  15  Prefactor     .10000E-03    9.6955       -.10567E-06** at limit **
  16  norm          3.4007        2.1493       -.71293E-07    .34937E-04
  17  norm          2.8179        2.7536        .88257E-07   -.28967E-03
  18  Prefactor     .10000E-03    10.645       -.19170E-05** at limit **
  19  norm          64.992        47.752       -.21571E-05   -.69083E-06
  20  Prefactor     .10000E-03    103.80       -.93127E-06** at limit **
  21  norm          .95811        .57658       -.10487E-07   -.66781E-03
  22  Prefactor     8.7691        9.0916       -.17177E-06    .34325E-06
  23  Prefactor     67.961        37.236        .77326E-07    .87538E-05
  24  Prefactor     10.277        10.126       -.15572E-05   -.12227E-02
  25  norm          2.6769        1.5761       -.11874E-06   -.19039E-03
  26  Prefactor     .10000E-03    8.6677        .20591E-05** at limit **
  27  Prefactor     18.921        22.665       -.30770E-06   -.33795E-05
  28  Normalizat    1.1559        .19743        .15283E-05    .10474E-04
  29  Prefactor     .77997        .16208        .18817E-05    .29624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.49
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.19247
  Prefactor  = 23.3735
  Prefactor  = 0.0001
  Prefactor  = 12.6497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.40068
  norm       = 2.8179
  Prefactor  = 0.0001
  norm       = 64.9916
  Prefactor  = 0.0001
  norm       = 0.958111
  Prefactor  = 8.76909
  Prefactor  = 67.9612
  Prefactor  = 10.2775
  norm       = 2.67694
  Prefactor  = 0.0001
  Prefactor  = 18.9206
  Normalizat = 1.15586
  Prefactor  = 0.779971
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.461     FROM HESSE     STATUS=OK           551 CALLS     4179 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3552        2.2289        .88639E-04   -1.5342    
   2  Prefactor     .10000E-03    8.2702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     120.49        100.22        .18330E-03   -1.3508    
   5  Prefactor     .10000E-03    13.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1925        4.2792        .15427E-03   -1.5298    
   8  Prefactor     23.373        21.468        .82860E-04   -1.4741    
   9  Prefactor     .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.650        203.23        .11238E-03   -1.4996    
  11  Prefactor     .10000E-03    11.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4007        2.1465        .85573E-04   -1.5339    
  17  norm          2.8179        2.7447        .11206E-03   -1.5372    
  18  Prefactor     .10000E-03    10.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          64.992        47.971        .49780E-04   -1.4094    
  20  Prefactor     .10000E-03    104.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .95811        .56485        .40033E-04   -1.5512    
  22  Prefactor     8.7691        9.0838        .13536E-03   -1.5116    
  23  Prefactor     67.961        37.235        .48688E-04   -1.4057    
  24  Prefactor     10.277        10.194        .62495E-03   -1.5067    
  25  norm          2.6769        1.5722        .69647E-04   -1.5381    
  26  Prefactor     .10000E-03    8.8116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     18.921        22.661        .92081E-04   -1.4838    
  28  Normalizat    1.1559        .23082        .25278E-03   -.87978    
  29  Prefactor     .77997        .18867        .25440E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87365e-09
Minuit parameter uncertainties:
  1  2.22892
  2  7.20384e-06
  3  2.67461e-05
  4  100.36
  5  0.000420445
  6  5.32533e-06
  7  4.2795
  8  21.4749
  9  6.17969e-05
  10  101.817
  11  4.80904e-06
  12  3.10444e-05
  13  1.22238e-05
  14  4.09888e-06
  15  1.58691e-05
  16  2.14657
  17  2.74485
  18  7.08641e-07
  19  47.9991
  20  5.61637e-05
  21  0.56485
  22  9.08523
  23  37.2477
  24  10.1957
  25  1.57219
  26  2.05075e-05
  27  22.6715
  28  0.231022
  29  0.188825
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.104e-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:  7.800e-01  1.888e-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.156e+00  2.310e-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: 7.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311941/likelihoodResults_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.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) = 5762.4610887
delta logL = -0.000196959779714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5762.46089542
delta logL = -3.68043583876e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15788E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8885       1.0000          .0000       10.000    
     3 'Normalizat'    1.1559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77997       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=   5762.461     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11208E-03    15.262        .18142E-01** at limit **
   2  Index         2.7250        7.0141        .50000        .24667E-04
   3  Normalizat    1.1559        .44264E-02    .25278E-03   -.12849E-03
   4  Prefactor     .77997        .37536E-02    .25439E-03   -.73246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112081
  Index      = 2.72503
  Normalizat = 1.15586
  Prefactor  = 0.779971
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.461     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11208E-03    93.028        .31739E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7250        5.2465        .50000       -.47237    
   3  Normalizat    1.1559        .10893E-01    .10111E-04   -.87978    
   4  Prefactor     .77997        .92372E-02    .10176E-04   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55616e-08
Minuit parameter uncertainties:
  1  0.0671526
  2  307.252
  3  0.010893
  4  0.0092372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311941': 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) = 5762.46089268
delta logL = -9.37466211326e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.121e-04  6.715e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.725e+00  3.073e+02  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:  7.800e-01  9.237e-03  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.156e+00  1.089e-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/311941/cmap_HighResolution_598060801_598320001_4FGL_J1204.8+0407_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-04 23:36:50.479691', job_id='311941', GAL2='0.78', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630823810.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-9.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1384' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 311941: <4FGL_J1204.8+0407_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1384 181.203 4.12 598060801 598320001 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 :                                   825.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

