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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin795
RA = 181.203, Dec = 4.12
tmin = 445392001, tmax = 445651201
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='308738', job_status='RUN', time_executed='2021-09-04 23:10:40.591715', time_epoch_executed='1630822240.59' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='795'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308738/ft1_4FGL_J1204.8+0407_daily_bin795.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308738/ft2_4FGL_J1204.8+0407_daily_bin795.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308738/ft1_4FGL_J1204.8+0407_daily_bin795.fits outfile=/scratch/kocevski/308738/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin795.fits ra=181.203 dec=4.12 rad=12.0 tmin=445392001.0 tmax=445651201.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.81
user 3.60
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/308738/ft2_4FGL_J1204.8+0407_daily_bin795.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/308738/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin795.fits evtable="EVENTS" outfile="/scratch/kocevski/308738/ft1_filtered_4FGL_J1204.8+0407_daily_bin795.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308738/ft1_filtered_4FGL_J1204.8+0407_daily_bin795.fits evtable="EVENTS" scfile=/scratch/kocevski/308738/ft2_4FGL_J1204.8+0407_daily_bin795.fits sctable="SC_DATA" expcube=/scratch/kocevski/308738/ltcube_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.fits outfile=/scratch/kocevski/308738/expmap_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.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/308738/ltcube_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.fits
.....................!
real 191.40
user 185.58
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/308738/ft1_filtered_4FGL_J1204.8+0407_daily_bin795.fits scfile=/scratch/kocevski/308738/ft2_4FGL_J1204.8+0407_daily_bin795.fits outfile=/scratch/kocevski/308738/cmap_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.556       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.676       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11653E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10619E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4258       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.7329       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .79136E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .38275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19042E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.759       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0732       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1964       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .79833       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95199       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0180       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=   7173.708     FROM MIGRAD    STATUS=CONVERGED   1292 CALLS     4274 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6808        1.8858        .93953E-04   -.12088E-03
   2  Prefactor     28.567        25.437        .74973E-04   -.37758E-04
   3  Prefactor     12.313        24.719        .11420E-03   -.20108E-04
   4  Prefactor     85.722        100.84        .21701E-03   -.17812E-04
   5  Prefactor     .10000E-03    14.038        .36285E-03** at limit **
   6  Prefactor     .10000E-03    45.193        .18142E-02** at limit **
   7  Prefactor     9.2997        7.4516        .13143E-03    .10276E-03
   8  Prefactor     8.9790        16.055        .13384E-03   -.12232E-04
   9  Prefactor     .10000E-03    5.3149        .18142E-02** at limit **
  10  Prefactor     .10000E-03    57.611        .18142E-02** at limit **
  11  Prefactor     29.466        34.114        .73827E-04    .87774E-05
  12  Prefactor     .10000E-03    41.050        .18142E-02** at limit **
  13  Prefactor     1.5267        31.374        .17339E-02   -.13701E-03
  14  Prefactor     .10000E-03    11.600        .18142E-02** at limit **
  15  Prefactor     9.4214        10.084        .65267E-03   -.10599E-03
  16  norm          .10000E-03    .65143        .66462E-03** at limit **
  17  norm          8.7293        3.7616        .96890E-04   -.49281E-03
  18  Prefactor     .10001E-03    34.841        .13289    ** at limit **
  19  norm          .10000E-03    25.083        .18142E-02** at limit **
  20  Prefactor     .10000E-03    65.312        .18142E-02** at limit **
  21  norm          .38360        .45975        .57218E-04   -.31055E-03
  22  Prefactor     .10000E-03    14.213        .18142E-02** at limit **
  23  Prefactor     37.759        32.592        .65225E-04   -.64038E-04
  24  Prefactor     8.0731        6.3435        .14111E-03   -.35450E-04
  25  norm          1.1954        1.6912        .12109E-03    .76989E-05
  26  Prefactor     .79568        12.089        .24867E-02   -.95194E-03
  27  Prefactor     .10000E-03    8.4100        .18142E-02** at limit **
  28  Normalizat    .95160        .22638        .28415E-03   -.14619E-03
  29  Prefactor     1.0181        .17973        .23243E-03    .13656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68077
  Prefactor  = 28.5666
  Prefactor  = 12.3128
  Prefactor  = 85.722
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.29971
  Prefactor  = 8.97904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4657
  Prefactor  = 0.000100001
  Prefactor  = 1.52666
  Prefactor  = 0.0001
  Prefactor  = 9.42139
  norm       = 0.0001
  norm       = 8.72929
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.383602
  Prefactor  = 0.0001
  Prefactor  = 37.7593
  Prefactor  = 8.07312
  norm       = 1.19541
  Prefactor  = 0.795683
  Prefactor  = 0.0001
  Normalizat = 0.951603
  Prefactor  = 1.0181
 **********
 **   18 **HESSE 
 **********

 FCN=   7173.708     FROM HESSE     STATUS=OK           537 CALLS     4811 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6808        1.8857        .37581E-05   -1.5380    
   2  Prefactor     28.567        25.437        .29989E-05   -1.4639    
   3  Prefactor     12.313        24.714        .45682E-05   -1.5006    
   4  Prefactor     85.722        100.82        .86803E-05   -1.3854    
   5  Prefactor     .10000E-03    14.039        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2997        7.4510        .52573E-05   -1.5098    
   8  Prefactor     8.9790        16.054        .53535E-05   -1.5109    
   9  Prefactor     .10000E-03    5.3158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    57.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.466        34.120        .29531E-05   -1.4622    
  12  Prefactor     .10000E-03    41.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5267        31.258        .69355E-04   -1.5461    
  14  Prefactor     .10000E-03    11.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4214        10.072        .26107E-04   -1.5094    
  16  norm          .10000E-03    .65145        .13292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.7293        3.7611        .38756E-05   -1.5117    
  18  Prefactor     .10001E-03    34.080        .13494       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    65.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .38360        .45958        .22887E-05   -1.5584    
  22  Prefactor     .10000E-03    14.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.759        32.587        .13045E-04   -1.4478    
  24  Prefactor     8.0731        6.3403        .56443E-05   -1.5140    
  25  norm          1.1954        1.6907        .48435E-05   -1.5489    
  26  Prefactor     .79568        12.072        .99469E-04   -1.5530    
  27  Prefactor     .10000E-03    8.4101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .95160        .22655        .11366E-04   -.94670    
  29  Prefactor     1.0181        .17988        .92971E-05   -.92129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70464e-09
Minuit parameter uncertainties:
  1  1.88575
  2  25.4468
  3  24.735
  4  101.027
  5  0.000144188
  6  0.000565877
  7  7.45171
  8  16.0613
  9  4.19583e-05
  10  0.000209486
  11  34.1422
  12  0.000342572
  13  13.8237
  14  3.87415e-06
  15  10.0743
  16  2.58056e-06
  17  3.76125
  18  0.00106019
  19  3.57329e-05
  20  0.000133798
  21  0.459586
  22  4.4464e-05
  23  32.6022
  24  6.34079
  25  1.69078
  26  6.19973
  27  6.29505e-06
  28  0.226777
  29  0.179982
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.426e-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:  1.018e+00  1.800e-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:  9.516e-01  2.268e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308738/likelihoodResults_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.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) = 7173.70827444
delta logL = -0.000116005267046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7173.70815852
delta logL = -8.28713382361e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5096       1.0000          .0000       10.000    
     3 'Normalizat'    .95162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0181       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=   7173.708     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      226 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7306.0        .90712E-02** at limit **
   2  Index         2.5091        6.9138        .50000        .93041E-07
   3  Normalizat    .95161        .65799E-01    .45558E-01    .18944E-04
   4  Prefactor     1.0181        .55552E-01    .42334E-01    .86458E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50906
  Normalizat = 0.951607
  Prefactor  = 1.0181
 **********
 **   18 **HESSE 
 **********

 FCN=   7173.708     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5091        6.0910        .50000       -.52151    
   3  Normalizat    .95161        .20673        .28415E-03   -.94670    
   4  Prefactor     1.0181        .17531        .23243E-03   -.92129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04287e-13
Minuit parameter uncertainties:
  1  2.86548e-05
  2  6.12562
  3  0.206901
  4  0.175404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308738': 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): 0
logL (Free Index) = 7173.70815844
delta logL = -1.38879840961e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  2.865e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.509e+00  6.126e+00  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.018e+00  1.754e-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:  9.516e-01  2.069e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/308738/cmap_HighResolution_445392001_445651201_4FGL_J1204.8+0407_daily_bin795.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-04 23:26:59.122618', job_id='308738', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630823219.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.39e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='795' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 308738: <4FGL_J1204.8+0407_daily_bin795> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin795> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 23:10:27 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:10:29 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:10:29 2021
Terminated at Sat Sep  4 23:26:59 2021
Results reported at Sat Sep  4 23:26:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin795 181.203 4.12 445392001 445651201 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 :                                   977.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

