/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 66 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1712
RA = 181.203, Dec = 4.12
tmin = 683078401, tmax = 683337601
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='114097', job_status='RUN', time_executed='2022-09-16 16:31:31.561509', time_epoch_executed='1663371091.56' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114097/ft1_4FGL_J1204.8+0407_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114097/ft1_4FGL_J1204.8+0407_daily_bin1712.fits outfile=/scratch/kocevski/114097/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1712.fits ra=181.203 dec=4.12 rad=12.0 tmin=683078401.0 tmax=683337601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.81
user 4.53
sys 0.24

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

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

Number of photons that the gtmktime cut: 572

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/114097/ltcube_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.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/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits
.....................!
real 15.21
user 14.76
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/114097/ltcube_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits outfile=/scratch/kocevski/114097/expmap_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.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/114097/ltcube_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits
.....................!
real 191.59
user 185.80
sys 5.42

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/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits scfile=/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits outfile=/scratch/kocevski/114097/cmap_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits scfile=/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits outfile=/scratch/kocevski/114097/cmap_HighResolution_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits', '/scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits', expMap='/scratch/kocevski/114097/expmap_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits', expCube='/scratch/kocevski/114097/ltcube_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114097/Model_4FGL_J1204.8+0407_daily_bin1712.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  0.000e+00  1.000e+06 ( 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/114097/ft1_filtered_4FGL_J1204.8+0407_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/114097/ft2_4FGL_J1204.8+0407_daily_bin1712.fits
Exposure map: /scratch/kocevski/114097/expmap_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits
Exposure cube: /scratch/kocevski/114097/ltcube_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114097/Model_4FGL_J1204.8+0407_daily_bin1712.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) = 6435.89890616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6140       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35834E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    126.53       1.0000          .0000       .10000E+07
     4 'Prefactor '    15.650       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.9676       1.0000          .0000       .10000E+07
     6 'Prefactor '    .41212E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.9883       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29374E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .42117E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2703       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.632       1.0000          .0000       .10000E+07
    12 'Prefactor '    47.809       1.0000          .0000       .10000E+07
    13 'Prefactor '    31.962       1.0000          .0000       .10000E+07
    14 'norm      '    .98827       1.0000          .0000       .10000E+07
    15 'norm      '    .74679E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    41.689       1.0000          .0000       .10000E+07
    17 'norm      '    38.034       1.0000          .0000       .10000E+07
    18 'norm      '    .31228       1.0000          .0000       .10000E+07
    19 'Prefactor '    10.891       1.0000          .0000       .10000E+07
    20 'Prefactor '    .24460E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.6217       1.0000          .0000       .10000E+07
    22 'Prefactor '    17.642       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6435.834     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     2036 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6170        1.4825       -.15150E-06    .58496E-03
   2  Prefactor     .20811E-04    99.176       -.25472E-05** at limit **
   3  Prefactor     132.97        114.92        .35146E-06   -.12501E-01
   4  Prefactor     15.794        13.273       -.27284E-06    .42038E-03
   5  Prefactor     6.9641        6.4519        .15118E-06    .19423E-03
   6  Prefactor     .33307E-09    9.8133        .30759E-06** at limit **
   7  Prefactor     2.9769        11.518       -.47683E-06   -.66757E-03
   8  Prefactor     .99221E-06    35.351        .18089E-05** at limit **
   9  Prefactor     .31031E-07    25.208       -.42084E-06** at limit **
  10  Prefactor     1.8630        35.760       -.49532E-06   -.20840E-01
  11  Prefactor     13.661        5.6247        .40326E-08    .11708E-01
  12  Prefactor     48.352        17.920       -.45475E-07    .21746    
  13  Prefactor     31.945        15.548       -.27356E-07   -.27334E-02
  14  norm          .99540        2.5199       -.21390E-07   -.35441E-04
  15  norm          .16653E-09    5.9122       -.22337E-06** at limit **
  16  Prefactor     43.006        26.537        .39756E-06   -.19912    
  17  norm          37.976        7.5581        .59280E-07   -.16026E-01
  18  norm          .31350        .47318       -.48539E-07    .10717E-02
  19  Prefactor     10.905        10.148       -.41767E-07    .54442E-03
  20  Prefactor     .10547E-08    23.020       -.13977E-07** at limit **
  21  norm          1.6224        1.3016        .23731E-06   -.18069E-02
  22  Prefactor     17.683        10.086       -.12048E-06   -.40395E-03
  23  Normalizat    1.0580        .23961       -.27424E-05   -.93058E-05
  24  Prefactor     .96597        .19157        .53509E-06   -.45805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61702
  Prefactor  = 2.08109e-05
  Prefactor  = 132.966
  Prefactor  = 15.7937
  Prefactor  = 6.96406
  Prefactor  = 3.33067e-10
  Prefactor  = 2.97691
  Prefactor  = 9.92206e-07
  Prefactor  = 3.10307e-08
  Prefactor  = 1.86298
  Prefactor  = 13.6609
  Prefactor  = 48.3517
  Prefactor  = 31.9453
  norm       = 0.995398
  norm       = 1.66533e-10
  Prefactor  = 43.0063
  norm       = 37.9758
  norm       = 0.313503
  Prefactor  = 10.9053
  Prefactor  = 1.05471e-09
  norm       = 1.62237
  Prefactor  = 17.6829
  Normalizat = 1.05798
  Prefactor  = 0.96597
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.834     FROM HESSE     STATUS=OK           451 CALLS     2487 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6170        1.4836        .83320E-03   -1.5683    
   2  Prefactor     .20811E-04    105.20        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     132.97        114.67        .88907E-04   -1.5477    
   4  Prefactor     15.794        13.287        .25291E-03   -1.5628    
   5  Prefactor     6.9641        6.4976        .37983E-03   -1.5655    
   6  Prefactor     .33307E-09    9.8421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9769        11.570        .58701E-03   -1.5673    
   8  Prefactor     .99221E-06    35.968        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31031E-07    25.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8630        121.49        .68132E-03   -1.5681    
  11  Prefactor     13.661        22.983        .27103E-03   -1.5634    
  12  Prefactor     48.352        31.106        .14464E-03   -1.5569    
  13  Prefactor     31.945        17.598        .17691E-03   -1.5595    
  14  norm          .99540        2.5761        .43350E-03   -1.5688    
  15  norm          .16653E-09    5.8129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.006        43.782        .15489E-03   -1.5577    
  17  norm          37.976        40.910        .16217E-03   -1.5585    
  18  norm          .31350        .52242        .10045E-02   -1.5697    
  19  Prefactor     10.905        10.150        .30333E-03   -1.5642    
  20  Prefactor     .10547E-08    22.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6224        1.3206        .83070E-03   -1.5682    
  22  Prefactor     17.683        10.108        .23818E-03   -1.5624    
  23  Normalizat    1.0580        .20822        .64580E-01   -.91113    
  24  Prefactor     .96597        .16423        .45837E-01   -.93873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85332e-06
Minuit parameter uncertainties:
  1  1.48358
  2  0.0935806
  3  114.671
  4  13.2874
  5  6.49764
  6  0.000110755
  7  11.5698
  8  0.0119478
  9  0.0017699
  10  30.0891
  11  22.9836
  12  31.1064
  13  17.598
  14  2.57606
  15  5.9905e-05
  16  43.7818
  17  40.9099
  18  0.522418
  19  10.15
  20  0.00031218
  21  1.32058
  22  10.1082
  23  0.208385
  24  0.164317
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.863e+00  3.009e+01  0.000e+00  1.000e+06 ( 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.660e-01  1.643e-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.058e+00  2.084e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114097/likelihoodResults_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.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) = 6435.81994339
delta logL = 0.0142134588914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6435.81957451
delta logL = 0.0145823354687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6000       1.0000          .0000       .10000E+07
     2 'Index     '    2.0697       1.0000          .0000       10.000    
     3 'Normalizat'    1.0581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96411       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6435.820     FROM MIGRAD    STATUS=FAILED        85 CALLS      305 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6387        63.343        .14541E-04   -.59580E-02
   2  Index         2.0737        1.9572        .14224E-01   -.50305E-03
   3  Normalizat    1.0580        .22816        .28566E-03    .34727E-02
   4  Prefactor     .96405        .19004        .24651E-03    .43465E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6435.820     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      379 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6387        63.343        .99603E-04   -1.5653    
   2  Index         2.0737        1.9572        .22533E-02   -.62520    
   3  Normalizat    1.0580        .22816        .40699E-03   -.91112    
   4  Prefactor     .96405        .19004        .31985E-03   -.93938    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6435.820     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      405 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6418        61.549        .29083E-05   -.15707E-02
   2  Index         2.0742        1.9342        .56895E-03   -.15242E-04
   3  Normalizat    1.0580        .22836        .57132E-04   -.18148E-04
   4  Prefactor     .96404        .19013        .49303E-04   -.15265E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.64179
  Index      = 2.07416
  Normalizat = 1.058
  Prefactor  = 0.96404
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.820     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6418        61.571        .58165E-06   -1.5653    
   2  Index         2.0742        1.9337        .11379E-03   -.62509    
   3  Normalizat    1.0580        .22839        .11426E-04   -.91112    
   4  Prefactor     .96404        .19016        .98605E-05   -.93938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27886e-10
Minuit parameter uncertainties:
  1  43.3831
  2  2.0157
  3  0.2286
  4  0.190294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114097': 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) = 6435.81957075
delta logL = 0.0145861036726

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  7.642e+00  4.338e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.074e+00  2.016e+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.640e-01  1.903e-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.058e+00  2.286e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/114097/cmap_HighResolution_683078401_683337601_4FGL_J1204.8+0407_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2022-09-16 16:42:56.569495', job_id='114097', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1663371776.57', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.46e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1712' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:42:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 114097: <4FGL_J1204.8+0407_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:30:15 2022
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:30:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:30:18 2022
Terminated at Fri Sep 16 16:42:57 2022
Results reported at Fri Sep 16 16:42:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1712 181.203 4.12 683078401 683337601 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 :                                   686.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            762 sec.

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

