/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 88 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_bin1051
RA = 181.203, Dec = 4.12
tmin = 511747201, tmax = 512006401
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='310298', job_status='RUN', time_executed='2021-09-04 23:17:30.572317', time_epoch_executed='1630822650.57' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310298/ft1_4FGL_J1204.8+0407_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310298/ft2_4FGL_J1204.8+0407_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310298/ft1_4FGL_J1204.8+0407_daily_bin1051.fits outfile=/scratch/kocevski/310298/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1051.fits ra=181.203 dec=4.12 rad=12.0 tmin=511747201.0 tmax=512006401.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.53
user 3.29
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310298/ft1_filtered_4FGL_J1204.8+0407_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/310298/ft2_4FGL_J1204.8+0407_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/310298/ltcube_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.fits outfile=/scratch/kocevski/310298/expmap_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.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/310298/ltcube_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.fits
.....................!
real 191.57
user 185.64
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/310298/ft1_filtered_4FGL_J1204.8+0407_daily_bin1051.fits scfile=/scratch/kocevski/310298/ft2_4FGL_J1204.8+0407_daily_bin1051.fits outfile=/scratch/kocevski/310298/cmap_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310298/ft1_filtered_4FGL_J1204.8+0407_daily_bin1051.fits scfile=/scratch/kocevski/310298/ft2_4FGL_J1204.8+0407_daily_bin1051.fits outfile=/scratch/kocevski/310298/cmap_HighResolution_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6724       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    227.07       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.822       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7365       1.0000         .10000E-03   10000.    
    17 'norm      '    .17706E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .94021       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4016       1.0000         .10000E-03   10000.    
    25 'norm      '    4.7087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6865       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96135       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=   5323.056     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3663 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5752        .88208E-07** at limit **
   2  Prefactor     9.6721        23.850        .14715E-06   -.52049E-05
   3  Prefactor     .10000E-03    10.110        .38912E-06** at limit **
   4  Prefactor     227.07        121.43        .42637E-06    .89739E-05
   5  Prefactor     .10000E-03    5.4150        .13099E-07** at limit **
   6  Prefactor     .10000E-03    28.340       -.12884E-05** at limit **
   7  Prefactor     .10000E-03    2.3932       -.13086E-07** at limit **
   8  Prefactor     20.823        14.951        .49996E-07   -.16101E-05
   9  Prefactor     .10000E-03    9.1084       -.29831E-07** at limit **
  10  Prefactor     .10000E-03    27.174       -.76820E-06** at limit **
  11  Prefactor     16.717        40.003       -.74428E-06   -.21247E-04
  12  Prefactor     14.408        25.513       -.26818E-06   -.24998E-04
  13  Prefactor     4.9825        17.300        .54737E-05   -.12664E-03
  14  Prefactor     .10000E-03    13.770       -.15656E-05** at limit **
  15  Prefactor     .10000E-03    3.4925       -.40301E-07** at limit **
  16  norm          4.7364        2.6183       -.89666E-07   -.50715E-04
  17  norm          .10000E-03    1.7529        .11960E-06** at limit **
  18  Prefactor     .10000E-03    9.6730        .55670E-06** at limit **
  19  norm          .10000E-03    17.685        .25361E-05** at limit **
  20  Prefactor     .10000E-03    87.056       -.34812E-05** at limit **
  21  norm          .93995        .55528        .20132E-07   -.49040E-03
  22  Prefactor     .10000E-03    8.6946       -.69642E-06** at limit **
  23  Prefactor     .10000E-03    28.349       -.12539E-05** at limit **
  24  Prefactor     3.4015        6.1380        .11498E-06   -.39278E-04
  25  norm          4.7084        2.0353        .31870E-07   -.13375E-03
  26  Prefactor     7.6861        9.0383        .14000E-05   -.19474E-03
  27  Prefactor     .10000E-03    45.926        .44378E-05** at limit **
  28  Normalizat    1.1922        .22382       -.38088E-06   -.44029E-04
  29  Prefactor     .96161        .18758       -.27464E-06   -.48887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.67213
  Prefactor  = 0.0001
  Prefactor  = 227.07
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7169
  Prefactor  = 14.4075
  Prefactor  = 4.98245
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.73642
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.939954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4015
  norm       = 4.70835
  Prefactor  = 7.6861
  Prefactor  = 0.000100004
  Normalizat = 1.19218
  Prefactor  = 0.961611
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.056     FROM HESSE     STATUS=OK           553 CALLS     4216 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0387        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6721        23.857        .12885E-03   -1.5086    
   3  Prefactor     .10000E-03    10.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     227.07        121.78        .13426E-03   -1.2683    
   5  Prefactor     .10000E-03    5.4375        .16579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3953        .11022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.823        14.977        .87777E-04   -1.4795    
   9  Prefactor     .10000E-03    9.1516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.717        40.094        .97944E-04   -1.4890    
  12  Prefactor     14.408        25.514        .10550E-03   -1.4949    
  13  Prefactor     4.9825        17.737        .90078E-03   -1.5262    
  14  Prefactor     .10000E-03    14.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4960        .13313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7364        2.6178        .84734E-04   -1.5273    
  17  norm          .10000E-03    7.5253        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    88.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .93995        .53319        .38658E-04   -1.5514    
  22  Prefactor     .10000E-03    8.8056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4015        6.1217        .21936E-03   -1.5339    
  25  norm          4.7084        2.0291        .65102E-04   -1.5274    
  26  Prefactor     7.6861        9.1140        .72320E-03   -1.5153    
  27  Prefactor     .10000E-03    47.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1922        .26606        .26740E-03   -.86845    
  29  Prefactor     .96161        .22474        .25008E-03   -.94020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05684e-10
Minuit parameter uncertainties:
  1  4.91427e-07
  2  23.8806
  3  3.65227e-05
  4  121.917
  5  3.58121e-07
  6  0.000180111
  7  7.31095e-07
  8  14.9798
  9  4.26964e-06
  10  0.000121019
  11  40.1582
  12  25.5329
  13  17.7555
  14  0.000176507
  15  3.25304e-06
  16  2.6179
  17  0.000139526
  18  5.27571e-05
  19  0.000324052
  20  0.000989481
  21  0.533195
  22  5.24212e-05
  23  0.000181154
  24  6.12285
  25  2.02909
  26  9.11568
  27  0.000856902
  28  0.266367
  29  0.224956
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.441e+01  2.553e+01  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.616e-01  2.250e-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.192e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310298/likelihoodResults_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.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): 0
logL (Free Index) = 5323.05620455
delta logL = 0.000219183887566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5323.05614752
delta logL = 0.000276218022918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6144       1.0000          .0000       10.000    
     3 'Normalizat'    1.1913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96203       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=   5323.056     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      267 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.135        28.493        .10653E-03    .18356E-04
   2  Index         2.6147        1.5693        .10443E-01    .58667E-05
   3  Normalizat    1.1914        .26090        .26747E-03   -.26759E-03
   4  Prefactor     .96204        .22105        .25003E-03   -.25650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.135
  Index      = 2.61465
  Normalizat = 1.19143
  Prefactor  = 0.962041
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.056     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.135        27.711        .42610E-05   -1.4956    
   2  Index         2.6147        1.5271        .41772E-03   -.49732    
   3  Normalizat    1.1914        .26099        .53494E-04   -.86868    
   4  Prefactor     .96204        .22117        .50006E-04   -.94006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10985e-10
Minuit parameter uncertainties:
  1  27.7359
  2  1.55961
  3  0.261279
  4  0.221377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310298': 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) = 5323.05614691
delta logL = 0.000276833423413

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.414e+01  2.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.615e+00  1.560e+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:  9.620e-01  2.214e-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.191e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/310298/cmap_HighResolution_511747201_512006401_4FGL_J1204.8+0407_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-04 23:30:29.748015', job_id='310298', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630823429.75', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.77e-04', ts2='0.49', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1051' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 310298: <4FGL_J1204.8+0407_daily_bin1051> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1051 181.203 4.12 511747201 512006401 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 :                                   772.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            879 sec.

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

