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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1137
RA = 181.203, Dec = 4.12
tmin = 534038401, tmax = 534297601
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='310510', job_status='RUN', time_executed='2021-09-04 23:18:34.824695', time_epoch_executed='1630822714.82' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310510/ft1_4FGL_J1204.8+0407_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310510/ft2_4FGL_J1204.8+0407_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310510/ft1_4FGL_J1204.8+0407_daily_bin1137.fits outfile=/scratch/kocevski/310510/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1137.fits ra=181.203 dec=4.12 rad=12.0 tmin=534038401.0 tmax=534297601.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.59
user 3.35
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310510/ft1_filtered_4FGL_J1204.8+0407_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/310510/ft2_4FGL_J1204.8+0407_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/310510/ltcube_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.fits outfile=/scratch/kocevski/310510/expmap_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.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/310510/ltcube_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.fits
.....................!
real 189.63
user 185.16
sys 4.10

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/310510/ft1_filtered_4FGL_J1204.8+0407_daily_bin1137.fits scfile=/scratch/kocevski/310510/ft2_4FGL_J1204.8+0407_daily_bin1137.fits outfile=/scratch/kocevski/310510/cmap_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310510/ft1_filtered_4FGL_J1204.8+0407_daily_bin1137.fits scfile=/scratch/kocevski/310510/ft2_4FGL_J1204.8+0407_daily_bin1137.fits outfile=/scratch/kocevski/310510/cmap_HighResolution_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.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.66
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.95       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1800       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7338       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .72878       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1984       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    90.055       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .19448       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8222       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5115       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2142       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0329       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=   6025.974     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3650 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3949        2.4578        .20173E-07   -.12795E-03
   2  Prefactor     .10000E-03    21.741        .11264E-05** at limit **
   3  Prefactor     .10000E-03    26.821       -.13117E-04** at limit **
   4  Prefactor     109.95        78.318        .23051E-06    .95223E-05
   5  Prefactor     5.1798        5.3923        .34952E-08    .17812E-04
   6  Prefactor     .10000E-03    22.382       -.13191E-05** at limit **
   7  Prefactor     5.7346        8.5320        .80740E-07    .72403E-04
   8  Prefactor     .10000E-03    5.7729        .10188E-05** at limit **
   9  Prefactor     16.743        14.637       -.81052E-07   -.20249E-04
  10  Prefactor     .10000E-03    22.927       -.34581E-05** at limit **
  11  Prefactor     .10000E-03    17.177        .10079E-04** at limit **
  12  Prefactor     .10000E-03    14.945       -.93218E-05** at limit **
  13  Prefactor     .10000E-03    6.3916       -.13246E-05** at limit **
  14  Prefactor     .10000E-03    35.694        .17214E-05** at limit **
  15  Prefactor     .10000E-03    7.3867        .82903E-06** at limit **
  16  norm          .72905        1.7871        .68133E-07   -.13064E-03
  17  norm          5.1980        4.4678       -.68013E-06   -.79144E-04
  18  Prefactor     .10000E-03    16.165        .43763E-05** at limit **
  19  norm          90.060        64.764        .32511E-05    .25874E-04
  20  Prefactor     .10000E-03    51.439        .30600E-04** at limit **
  21  norm          .19444        .47813       -.12302E-06   -.10920E-04
  22  Prefactor     .10000E-03    5.4012       -.33484E-06** at limit **
  23  Prefactor     .10000E-03    21.376        .26876E-05** at limit **
  24  Prefactor     .10000E-03    3.4591       -.63315E-07** at limit **
  25  norm          3.8218        1.8579        .16345E-07    .15504E-03
  26  Prefactor     1.5107        2.9219        .17606E-05   -.25749E-02
  27  Prefactor     .10000E-03    74.838       -.30017E-04** at limit **
  28  Normalizat    1.2142        .21180        .23480E-06    .93862E-04
  29  Prefactor     1.0327        .17586       -.25602E-06    .14323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.953
  Prefactor  = 5.17979
  Prefactor  = 0.0001
  Prefactor  = 5.73457
  Prefactor  = 0.0001
  Prefactor  = 16.7426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.729051
  norm       = 5.198
  Prefactor  = 0.0001
  norm       = 90.0598
  Prefactor  = 0.000100003
  norm       = 0.194437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82182
  Prefactor  = 1.51071
  Prefactor  = 0.000100001
  Normalizat = 1.21425
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.974     FROM HESSE     STATUS=OK           547 CALLS     4197 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3949        2.4406        .15332E-03   -1.5472    
   2  Prefactor     .10000E-03    21.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     109.95        78.398        .38359E-04   -1.3607    
   5  Prefactor     5.1798        5.3952        .17663E-03   -1.5253    
   6  Prefactor     .10000E-03    22.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7346        8.5348        .16774E-03   -1.5229    
   8  Prefactor     .10000E-03    5.7856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.743        14.647        .97889E-04   -1.4889    
  10  Prefactor     .10000E-03    22.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .72905        1.5145        .15633E-02   -1.5537    
  17  norm          5.1980        4.4746        .12284E-03   -1.5252    
  18  Prefactor     .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          90.060        64.695        .42343E-04   -1.3807    
  20  Prefactor     .10000E-03    51.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .19444        .47444        .39810E-04   -1.5620    
  22  Prefactor     .10000E-03    5.4223        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4699        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8218        1.8543        .70202E-04   -1.5317    
  26  Prefactor     1.5107        7.9839        .17394E-02   -1.5462    
  27  Prefactor     .10000E-03    75.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2142        .24890        .27038E-03   -.86164    
  29  Prefactor     1.0327        .20608        .24868E-03   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59835e-08
Minuit parameter uncertainties:
  1  2.44076
  2  1.69792e-05
  3  0.000197933
  4  78.4717
  5  5.39567
  6  2.18045e-05
  7  8.53657
  8  7.79659e-06
  9  14.6501
  10  5.84903e-05
  11  0.00014586
  12  0.000117916
  13  1.06876e-05
  14  8.21351e-05
  15  6.7709e-06
  16  1.51462
  17  4.47493
  18  6.06342e-05
  19  64.7456
  20  0.000773174
  21  0.474449
  22  3.44232e-06
  23  4.04672e-05
  24  1.29171e-07
  25  1.85435
  26  6.9471
  27  0.000599126
  28  0.249142
  29  0.206238
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.179e-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.033e+00  2.062e-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.214e+00  2.491e-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: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310510/likelihoodResults_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.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) = 6025.97473314
delta logL = -0.000317943565278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6025.9744172
delta logL = -2.00282465812e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7451       1.0000          .0000       10.000    
     3 'Normalizat'    1.2142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   6025.974     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      284 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6212.5        .36285E-02** at limit **
   2  Index         2.3801        5.9873        .83372E-01    .38045E-07
   3  Normalizat    1.2143        .95831E-01    .27038E-03   -.74590E-04
   4  Prefactor     1.0327        .82500E-01    .24868E-03   -.93902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.3801
  Normalizat = 1.21425
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.974     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.190        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3801        6.3238        .33349E-02   -.55152    
   3  Normalizat    1.2143        .23719        .10815E-04   -.86164    
   4  Prefactor     1.0327        .20425        .99471E-05   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46004e-10
Minuit parameter uncertainties:
  1  0.000311413
  2  653.243
  3  0.237402
  4  0.204403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310510': 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) = 6025.97441515
delta logL = 4.52373569715e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  3.114e-04  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.380e+00  6.532e+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.033e+00  2.044e-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.214e+00  2.374e-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/310510/cmap_HighResolution_534038401_534297601_4FGL_J1204.8+0407_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-04 23:32:36.549349', job_id='310510', GAL2='1.03', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630823556.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1137' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:32:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 310510: <4FGL_J1204.8+0407_daily_bin1137> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1137> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:16 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:16:18 2021
Terminated at Sat Sep  4 23:32:37 2021
Results reported at Sat Sep  4 23:32:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1137 181.203 4.12 534038401 534297601 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 :                                   836.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

