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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1124
RA = 181.203, Dec = 4.12
tmin = 530668801, tmax = 530928001
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='310405', job_status='RUN', time_executed='2021-09-04 23:17:38.553376', time_epoch_executed='1630822658.55' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310405

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310405/ft1_4FGL_J1204.8+0407_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310405/ft1_4FGL_J1204.8+0407_daily_bin1124.fits outfile=/scratch/kocevski/310405/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1124.fits ra=181.203 dec=4.12 rad=12.0 tmin=530668801.0 tmax=530928001.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.62
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/310405/ltcube_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.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/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits
.....................!
real 14.45
user 14.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/310405/ltcube_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.fits outfile=/scratch/kocevski/310405/expmap_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.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/310405/ltcube_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.fits
.....................!
real 194.86
user 188.79
sys 5.54

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/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits scfile=/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits outfile=/scratch/kocevski/310405/cmap_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits scfile=/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits outfile=/scratch/kocevski/310405/cmap_HighResolution_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.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/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/310405/ft2_4FGL_J1204.8+0407_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/310405/Model_4FGL_J1204.8+0407_daily_bin1124.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/310405/ft1_filtered_4FGL_J1204.8+0407_daily_bin1124.fits.....................!
real 53.51
user 52.06
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14627E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    86.251       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2462       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.351       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.326       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8045       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0558       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93099       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=   5586.846     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3682 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32399        2.1145       -.19137E-05   -.60744E-03
   2  Prefactor     12.748        28.295        .44761E-04    .78076E-05
   3  Prefactor     .10000E-03    12.096       -.20437E-05** at limit **
   4  Prefactor     19.430        74.450       -.34366E-04    .27268E-05
   5  Prefactor     .10000E-03    3.3134        .44737E-07** at limit **
   6  Prefactor     .10000E-03    16.463       -.42068E-05** at limit **
   7  Prefactor     .10000E-03    2.7917        .32947E-07** at limit **
   8  Prefactor     .10000E-03    17.185       -.64313E-05** at limit **
   9  Prefactor     .10001E-03    42.136        .28074E-04** at limit **
  10  Prefactor     86.284        81.219        .71036E-05    .33771E-04
  11  Prefactor     .10000E-03    16.113        .88057E-06** at limit **
  12  Prefactor     .10000E-03    30.386       -.69754E-05** at limit **
  13  Prefactor     .10000E-03    7.0775        .56335E-08** at limit **
  14  Prefactor     .10000E-03    11.983        .17623E-05** at limit **
  15  Prefactor     .10000E-03    2.9821        .50518E-08** at limit **
  16  norm          1.2463        1.5660       -.10342E-07   -.41971E-03
  17  norm          2.5369        3.6293        .56866E-07   -.64356E-03
  18  Prefactor     .10000E-03    19.137        .72885E-05** at limit **
  19  norm          .10000E-03    15.797        .79295E-05** at limit **
  20  Prefactor     .10000E-03    48.452       -.26595E-04** at limit **
  21  norm          1.1701        .65009        .63964E-07   -.81918E-03
  22  Prefactor     .10000E-03    4.0933        .24144E-07** at limit **
  23  Prefactor     13.351        22.960       -.21967E-06   -.12130E-04
  24  Prefactor     20.329        12.720        .25768E-06   -.72145E-04
  25  norm          2.8046        1.6946        .92812E-07   -.25657E-03
  26  Prefactor     .10000E-03    18.025        .55519E-06** at limit **
  27  Prefactor     .10000E-03    16.431       -.39161E-05** at limit **
  28  Normalizat    1.0555        .20862       -.20297E-05    .70570E-06
  29  Prefactor     .93123        .16664       -.10470E-05   -.10057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.323991
  Prefactor  = 12.748
  Prefactor  = 0.0001
  Prefactor  = 19.4304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 86.2842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2463
  norm       = 2.53691
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1701
  Prefactor  = 0.0001
  Prefactor  = 13.351
  Prefactor  = 20.3286
  norm       = 2.80464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05548
  Prefactor  = 0.931232
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.846     FROM HESSE     STATUS=OK           547 CALLS     4229 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32399        4.1251        .20187E-02   -1.5594    
   2  Prefactor     12.748        28.301        .11210E-03   -1.4994    
   3  Prefactor     .10000E-03    12.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.430        74.556        .90279E-04   -1.4826    
   5  Prefactor     .10000E-03    3.3163        .13286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7983        .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    43.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     86.284        81.236        .43258E-04   -1.3847    
  11  Prefactor     .10000E-03    16.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9856        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2463        1.5342        .10168E-03   -1.5485    
  17  norm          2.5369        3.5907        .15251E-03   -1.5389    
  18  Prefactor     .10000E-03    19.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1701        .63462        .39427E-04   -1.5492    
  22  Prefactor     .10000E-03    4.1009        .14762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.351        22.946        .10962E-03   -1.4977    
  24  Prefactor     20.329        12.696        .88839E-04   -1.4806    
  25  norm          2.8046        1.6878        .71623E-04   -1.5373    
  26  Prefactor     .10000E-03    18.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0555        .24645        .26962E-03   -.91194    
  29  Prefactor     .93123        .19796        .23600E-03   -.95058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85417e-10
Minuit parameter uncertainties:
  1  2.31197
  2  28.331
  3  1.40251e-06
  4  74.9173
  5  8.75035e-06
  6  2.45061e-05
  7  7.53392e-06
  8  2.05913e-05
  9  0.00096909
  10  81.3405
  11  1.44206e-05
  12  0.000145961
  13  4.46712e-07
  14  1.75939e-05
  15  2.02816e-06
  16  1.53428
  17  3.59096
  18  2.37827e-05
  19  6.38159e-06
  20  1.27565e-05
  21  0.634626
  22  6.49686e-06
  23  22.9607
  24  12.6973
  25  1.6878
  26  4.68089e-05
  27  1.32127e-05
  28  0.246722
  29  0.19811
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.460e-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:  9.312e-01  1.981e-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.055e+00  2.467e-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: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310405/likelihoodResults_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.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) = 5586.84589255
delta logL = -0.000156330733262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.84573758
delta logL = -1.36239941639e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9332       1.0000          .0000       10.000    
     3 'Normalizat'    1.0555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93123       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=   5586.846     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11201E-03    19.032        .18142E-01** at limit **
   2  Index         2.7637        5.0527        .50000        .18426E-04
   3  Normalizat    1.0555        .46390E-02    .26962E-03    .37189E-04
   4  Prefactor     .93123        .38609E-02    .23600E-03   -.33897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112011
  Index      = 2.7637
  Normalizat = 1.05549
  Prefactor  = 0.931228
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.846     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11201E-03    113.27        .34645E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7637        5.3565        .50000       -.46370    
   3  Normalizat    1.0555        .11301E-01    .10785E-04   -.91194    
   4  Prefactor     .93123        .94057E-02    .47200E-04   -.95058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79197e-08
Minuit parameter uncertainties:
  1  0.0739092
  2  364.591
  3  0.0113011
  4  0.00940568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310405': 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) = 5586.84573703
delta logL = -8.10602614365e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.120e-04  7.391e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.764e+00  3.646e+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:  9.312e-01  9.406e-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.055e+00  1.130e-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/310405/cmap_HighResolution_530668801_530928001_4FGL_J1204.8+0407_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-04 23:31:19.055640', job_id='310405', GAL2='0.93', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630823479.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-8.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1124' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 310405: <4FGL_J1204.8+0407_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1124 181.203 4.12 530668801 530928001 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 :                                   796.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

