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


Performing analysis on: 4FGL_J1204.2-0709_daily_bin1226
RA = 181.074, Dec = -7.1627
tmin = 557107201, tmax = 557366401
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='301035', job_status='RUN', time_executed='2021-09-04 22:47:41.453778', time_epoch_executed='1630820861.45' WHERE source_name='4FGL J1204.2-0709' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301035/ft1_4FGL_J1204.2-0709_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301035/ft1_4FGL_J1204.2-0709_daily_bin1226.fits outfile=/scratch/kocevski/301035/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1226.fits ra=181.074 dec=-7.1627 rad=12.0 tmin=557107201.0 tmax=557366401.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.65
user 3.46
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.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/301035/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1226.fits evtable="EVENTS" outfile="/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/301035/ltcube_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.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/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits
.....................!
real 12.09
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/301035/ltcube_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits outfile=/scratch/kocevski/301035/expmap_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.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/301035/ltcube_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits
.....................!
real 188.66
user 183.87
sys 4.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 200 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.2-0709 @ 181.074 -7.1627

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits outfile=/scratch/kocevski/301035/cmap_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.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.074 yref=-7.1627 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits outfile=/scratch/kocevski/301035/cmap_HighResolution_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.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.074 yref=-7.1627 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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301035/Model_4FGL_J1204.2-0709_daily_bin1226.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/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits......................!
real 33.40
user 32.11
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits', '/scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits', expMap='/scratch/kocevski/301035/expmap_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits', expCube='/scratch/kocevski/301035/ltcube_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/301035/Model_4FGL_J1204.2-0709_daily_bin1226.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.2-0709'

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  9.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/301035/ft1_filtered_4FGL_J1204.2-0709_daily_bin1226.fits
Spacecraft file(s): /scratch/kocevski/301035/ft2_4FGL_J1204.2-0709_daily_bin1226.fits
Exposure map: /scratch/kocevski/301035/expmap_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits
Exposure cube: /scratch/kocevski/301035/ltcube_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/301035/Model_4FGL_J1204.2-0709_daily_bin1226.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) = 2985.12528121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3005       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6906       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9478       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    108.30       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.842       1.0000         .10000E-03   10000.    
    21 'norm      '    .10814E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    44.525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.223       1.0000         .10000E-03   10000.    
    24 'norm      '    2.2187       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.5446       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.5605       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5238       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92103       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2985.095     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4038 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6836        .34430E-07** at limit **
   2  Prefactor     .10000E-03    42.721       -.57360E-07** at limit **
   3  norm          .10000E-03    11.900        .11126E-06** at limit **
   4  Prefactor     .10000E-03    7.2325        .10797E-06** at limit **
   5  Prefactor     9.3003        13.189        .11612E-05   -.24961E-03
   6  norm          .10000E-03    28.601       -.32291E-07** at limit **
   7  Prefactor     10.589        10.021        .86367E-07   -.83114E-05
   8  Prefactor     .10000E-03    18.197       -.23546E-07** at limit **
   9  Prefactor     .10000E-03    43.945        .85126E-07** at limit **
  10  norm          .10000E-03    5.8870       -.38349E-07** at limit **
  11  Prefactor     5.6917        6.1995       -.77336E-07   -.55898E-04
  12  Prefactor     6.9445        18.741        .28966E-05   -.25103E-03
  13  Prefactor     .10000E-03    17.681       -.57879E-07** at limit **
  14  Prefactor     108.29        82.365        .16670E-06   -.27000E-04
  15  Prefactor     .10000E-03    7.3082        .27191E-08** at limit **
  16  Prefactor     .10000E-03    22.127        .20311E-06** at limit **
  17  Prefactor     .10000E-03    36.318       -.25043E-06** at limit **
  18  Prefactor     .10000E-03    60.851        .37636E-06** at limit **
  19  Prefactor     .10000E-03    108.47        .14543E-05** at limit **
  20  Prefactor     43.868        26.173       -.53515E-05   -.59084E-03
  21  norm          .10000E-03    5.3429        .47824E-05** at limit **
  22  norm          44.292        105.15       -.61786E-05   -.59216E-04
  23  Prefactor     14.223        11.761        .96162E-06   -.38400E-03
  24  norm          2.2203        1.2919        .42677E-06   -.24808E-02
  25  Prefactor     5.5446        2.7742       -.63733E-07    .10845E-04
  26  Prefactor     .10000E-03    12.603        .81556E-07** at limit **
  27  Prefactor     8.5627        19.552        .49548E-06   -.23453E-04
  28  Prefactor     6.5237        13.067        .30067E-05   -.57429E-03
  29  Prefactor     .10000E-03    22.083        .14036E-06** at limit **
  30  Normalizat    .92078        .37056       -.20503E-05   -.72181E-04
  31  Prefactor     .86300        .21511       -.75047E-06   -.14307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.30026
  norm       = 0.0001
  Prefactor  = 10.5887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.69175
  Prefactor  = 6.94446
  Prefactor  = 0.0001
  Prefactor  = 108.288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.8683
  norm       = 0.0001
  norm       = 44.2917
  Prefactor  = 14.2235
  norm       = 2.22032
  Prefactor  = 5.54455
  Prefactor  = 0.0001
  Prefactor  = 8.56275
  Prefactor  = 6.52367
  Prefactor  = 0.0001
  Normalizat = 0.920783
  Prefactor  = 0.862998
 **********
 **   18 **HESSE 
 **********

 FCN=   2985.095     FROM HESSE     STATUS=OK           612 CALLS     4650 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6867        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3230        .14350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3003        13.147        .65707E-03   -1.5098    
   6  norm          .10000E-03    28.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.589        10.024        .12314E-03   -1.5057    
   8  Prefactor     .10000E-03    18.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.9065        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6917        6.1857        .13290E-03   -1.5231    
  12  Prefactor     6.9445        18.570        .76102E-03   -1.5181    
  13  Prefactor     .10000E-03    17.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     108.29        82.353        .19323E-03   -1.3623    
  15  Prefactor     .10000E-03    7.3125        .14427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    109.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.868        27.689        .60548E-04   -1.4382    
  21  norm          .10000E-03    9.3156        .23359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          44.292        105.49        .30042E-03   -1.4376    
  23  Prefactor     14.223        11.704        .53102E-03   -1.4954    
  24  norm          2.2203        1.2867        .41455E-04   -1.5410    
  25  Prefactor     5.5446        2.7757        .60520E-04   -1.5237    
  26  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.5627        19.731        .13701E-03   -1.5123    
  28  Prefactor     6.5237        12.850        .78562E-03   -1.5197    
  29  Prefactor     .10000E-03    22.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92078        .44331        .34843E-03   -.95734    
  31  Prefactor     .86300        .25866        .21983E-03   -.97446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32202e-09
Minuit parameter uncertainties:
  1  5.29633e-06
  2  4.14581e-05
  3  2.34973e-05
  4  3.46969e-06
  5  13.1513
  6  3.80729e-05
  7  10.0253
  8  1.5027e-05
  9  1.46447e-05
  10  1.01624e-05
  11  6.18636
  12  18.5859
  13  2.90307e-05
  14  82.4407
  15  6.6962e-06
  16  9.77041e-05
  17  8.05806e-05
  18  0.000467921
  19  6.99565e-05
  20  27.6968
  21  9.06963e-05
  22  105.943
  23  11.7055
  24  1.28672
  25  2.77574
  26  5.36887e-05
  27  19.746
  28  12.8555
  29  5.17967e-05
  30  0.44508
  31  0.25903
Done.

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

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  8.058e-05  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.630e-01  2.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  9.208e-01  4.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.074 -7.163
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301035/likelihoodResults_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.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) = 2985.09525404
delta logL = -0.000130678059122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2985.09512342
delta logL = -5.50312506675e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9554       1.0000          .0000       10.000    
     3 'Normalizat'    .92077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2985.095     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6923.3        .90712E-02** at limit **
   2  Index         1.9397        7.8859        .50000        .34500E-05
   3  Normalizat    .92078        .11495        .78717E-01    .19284E-04
   4  Prefactor     .86300        .70913E-01    .44532E-01    .14651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93971
  Normalizat = 0.920783
  Prefactor  = 0.862999
 **********
 **   18 **HESSE 
 **********

 FCN=   2985.095     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    253.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9397        7.0901        .50000       -.65866    
   3  Normalizat    .92078        .40232        .34843E-03   -.95734    
   4  Prefactor     .86300        .24908        .21983E-03   -.97446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85358e-10
Minuit parameter uncertainties:
  1  0.000316021
  2  10.7109
  3  0.403643
  4  0.249407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301035': 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) = 2985.09512341
delta logL = -4.00746102969e-08

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  3.160e-04  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.940e+00  1.071e+01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.630e-01  2.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  9.208e-01  4.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.074 -7.163

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/301035/cmap_HighResolution_557107201_557366401_4FGL_J1204.2-0709_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-04 22:57:45.938347', job_id='301035', GAL2='0.86', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630821465.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-4.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1226' AND source_name='4FGL J1204.2-0709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 22:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 301035: <4FGL_J1204.2-0709_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1204.2-0709_daily_bin1226> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 22:45:35 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:45:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:45:37 2021
Terminated at Sat Sep  4 22:57:46 2021
Results reported at Sat Sep  4 22:57:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.2-0709_daily_bin1226 181.074 -7.1627 557107201 557366401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.2-0709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   595.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

