/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 6 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin285
RA = 181.203, Dec = 4.12
tmin = 313200001, tmax = 313459201
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='305624', job_status='RUN', time_executed='2021-09-04 23:00:46.218395', time_epoch_executed='1630821646.22' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305624/ft1_4FGL_J1204.8+0407_daily_bin285.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305624/ft2_4FGL_J1204.8+0407_daily_bin285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305624/ft1_4FGL_J1204.8+0407_daily_bin285.fits outfile=/scratch/kocevski/305624/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin285.fits ra=181.203 dec=4.12 rad=12.0 tmin=313200001.0 tmax=313459201.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.44
user 3.14
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305624/ft1_filtered_4FGL_J1204.8+0407_daily_bin285.fits evtable="EVENTS" scfile=/scratch/kocevski/305624/ft2_4FGL_J1204.8+0407_daily_bin285.fits sctable="SC_DATA" expcube=/scratch/kocevski/305624/ltcube_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.fits outfile=/scratch/kocevski/305624/expmap_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.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/305624/ltcube_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.fits
.....................!
real 192.00
user 185.62
sys 5.94

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/305624/ft1_filtered_4FGL_J1204.8+0407_daily_bin285.fits scfile=/scratch/kocevski/305624/ft2_4FGL_J1204.8+0407_daily_bin285.fits outfile=/scratch/kocevski/305624/cmap_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.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.35
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12826E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    116.40       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.368       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6744       1.0000         .10000E-03   10000.    
    16 'norm      '    .82866E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.509       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7588       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.948       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.493       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6798       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0911       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0356       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=   6019.216     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3664 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3618        2.5907       -.27753E-07    .63719E-05
   2  Prefactor     .10000E-03    13.118        .42772E-06** at limit **
   3  Prefactor     .10000E-03    10.132        .22917E-06** at limit **
   4  Prefactor     .10000E-03    31.231       -.27055E-06** at limit **
   5  Prefactor     .10000E-03    3.0140       -.13855E-05** at limit **
   6  Prefactor     .10000E-03    19.925        .28426E-06** at limit **
   7  Prefactor     .10000E-03    8.9723        .88229E-06** at limit **
   8  Prefactor     .10002E-03    56.213       -.47782E-04** at limit **
   9  Prefactor     .10000E-03    12.190        .70799E-06** at limit **
  10  Prefactor     116.10        115.85       -.97790E-06    .26006E-04
  11  Prefactor     .10000E-03    66.628        .11859E-06** at limit **
  12  Prefactor     .10000E-03    20.866        .29545E-06** at limit **
  13  Prefactor     25.370        26.978       -.97269E-06   -.33461E-04
  14  Prefactor     24.661        30.450       -.24270E-06    .41591E-04
  15  Prefactor     5.6793        14.884       -.60145E-06   -.99780E-04
  16  norm          .79108E-01    1.8513        .34747E-06   -.27043E-03
  17  norm          5.1816        4.6711       -.17467E-06    .26941E-03
  18  Prefactor     .10000E-03    13.135        .15050E-07** at limit **
  19  norm          .10000E-03    22.711        .27282E-06** at limit **
  20  Prefactor     81.514        96.678        .10361E-06    .16188E-04
  21  norm          4.7583        .94062       -.15181E-06   -.12693E-03
  22  Prefactor     14.946        18.071       -.19061E-06    .91767E-04
  23  Prefactor     16.482        50.993       -.25087E-05    .24081E-04
  24  Prefactor     .10000E-03    5.4805        .30978E-06** at limit **
  25  norm          1.6799        1.3954        .52472E-07   -.48426E-04
  26  Prefactor     .10000E-03    4.1886        .19686E-06** at limit **
  27  Prefactor     .10000E-03    55.951        .20677E-05** at limit **
  28  Normalizat    1.0917        .24351        .14837E-04    .10405E-03
  29  Prefactor     1.0351        .19380       -.10915E-04    .68818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 116.099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3701
  Prefactor  = 24.661
  Prefactor  = 5.6793
  norm       = 0.0791078
  norm       = 5.18163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.514
  norm       = 4.7583
  Prefactor  = 14.946
  Prefactor  = 16.4821
  Prefactor  = 0.0001
  norm       = 1.67991
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.09169
  Prefactor  = 1.03512
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.216     FROM HESSE     STATUS=OK           549 CALLS     4213 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3618        2.5866        .10505E-03   -1.5341    
   2  Prefactor     .10000E-03    13.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0206        .13161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    59.724        .41179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     116.10        116.13        .18646E-03   -1.3549    
  11  Prefactor     .10000E-03    67.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.370        26.880        .79535E-04   -1.4700    
  14  Prefactor     24.661        30.416        .80665E-04   -1.4714    
  15  Prefactor     5.6793        15.947        .16863E-03   -1.5231    
  16  norm          .79108E-01    20.034        .18187E-02   -1.5652    
  17  norm          5.1816        4.6640        .14089E-03   -1.5253    
  18  Prefactor     .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.514        96.669        .22244E-03   -1.3900    
  21  norm          4.7583        .94250        .29858E-04   -1.5272    
  22  Prefactor     14.946        17.966        .10359E-03   -1.4935    
  23  Prefactor     16.482        50.752        .98621E-04   -1.4896    
  24  Prefactor     .10000E-03    5.4924        .17736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6799        1.3879        .80262E-04   -1.5449    
  26  Prefactor     .10000E-03    4.1934        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    57.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0917        .26751        .29741E-03   -.90019    
  29  Prefactor     1.0351        .21281        .25454E-03   -.91568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52879e-09
Minuit parameter uncertainties:
  1  2.5867
  2  1.29093e-05
  3  1.7862e-06
  4  8.51248e-05
  5  2.33951e-05
  6  5.77705e-05
  7  2.18057e-05
  8  0.0022829
  9  2.55866e-05
  10  116.354
  11  7.65378e-05
  12  9.79949e-06
  13  26.8931
  14  30.4352
  15  15.9587
  16  2.51707
  17  4.66428
  18  5.39222e-06
  19  4.20166e-05
  20  96.8562
  21  0.942504
  22  17.9724
  23  50.8858
  24  1.80898e-06
  25  1.38798
  26  5.65939e-07
  27  0.000577838
  28  0.267844
  29  0.212982
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  9.799e-06  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.035e+00  2.130e-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.092e+00  2.678e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305624/likelihoodResults_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.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) = 6019.21655068
delta logL = -0.000228036738918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6019.21632466
delta logL = -2.01659622689e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9623       1.0000          .0000       10.000    
     3 'Normalizat'    1.0917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0351       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=   6019.216     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      280 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11099E-03    13.716        .18142E-01** at limit **
   2  Index         2.7964        8.3148        .50000        .25691E-04
   3  Normalizat    1.0917        .51922E-02    .29739E-03    .87161E-05
   4  Prefactor     1.0351        .43659E-02    .25455E-03   -.19160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110992
  Index      = 2.79638
  Normalizat = 1.0917
  Prefactor  = 1.03511
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11099E-03    88.967        .29414E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7964        5.9967        .50000       -.45641    
   3  Normalizat    1.0917        .13266E-01    .11896E-04   -.90019    
   4  Prefactor     1.0351        .11154E-01    .10182E-04   -.91568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11393e-08
Minuit parameter uncertainties:
  1  0.0626369
  2  340.826
  3  0.0132657
  4  0.0111544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305624': 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) = 6019.21632391
delta logL = -1.26641498355e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.110e-04  6.264e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.796e+00  3.408e+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:  1.035e+00  1.115e-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.092e+00  1.327e-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/305624/cmap_HighResolution_313200001_313459201_4FGL_J1204.8+0407_daily_bin285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.82e-03', job_status='DONE', photon_flux_upper_limit='8.73e-08', time_completed='2021-09-04 23:14:54.574465', job_id='305624', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630822494.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='285' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:14:54 PDT 2021


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

Job <4FGL_J1204.8+0407_daily_bin285> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:00:28 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:00:30 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:00:30 2021
Terminated at Sat Sep  4 23:14:55 2021
Results reported at Sat Sep  4 23:14:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin285 181.203 4.12 313200001 313459201 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 :                                   843.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

