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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1632
RA = 181.203, Dec = 4.12
tmin = 662342401, tmax = 662601601
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='686290', job_status='RUN', time_executed='2021-12-31 04:40:53.852931', time_epoch_executed='1640954453.85' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686290/ft1_4FGL_J1204.8+0407_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686290/ft1_4FGL_J1204.8+0407_daily_bin1632.fits outfile=/scratch/kocevski/686290/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1632.fits ra=181.203 dec=4.12 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.93
user 2.72
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/686290/ft1_filtered_4FGL_J1204.8+0407_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/686290/ltcube_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.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/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits
.....................!
real 14.17
user 13.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686290/ft1_filtered_4FGL_J1204.8+0407_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/686290/ltcube_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.fits outfile=/scratch/kocevski/686290/expmap_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.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/686290/ltcube_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.fits
.....................!
real 191.13
user 185.99
sys 4.79

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/686290/ft1_filtered_4FGL_J1204.8+0407_daily_bin1632.fits scfile=/scratch/kocevski/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits outfile=/scratch/kocevski/686290/cmap_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.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.61
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686290/ft1_filtered_4FGL_J1204.8+0407_daily_bin1632.fits scfile=/scratch/kocevski/686290/ft2_4FGL_J1204.8+0407_daily_bin1632.fits outfile=/scratch/kocevski/686290/cmap_HighResolution_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.330       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5158       1.0000         .10000E-03   10000.    
    17 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .87959       1.0000         .10000E-03   10000.    
    19 'norm      '    35.530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7386       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7039       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54783       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.5118       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=   6918.374     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3646 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .79467       -.78960E-07** at limit **
   2  Prefactor     31.872        29.002       -.61494E-05    .69211E-05
   3  Prefactor     .10000E-03    27.969       -.21305E-04** at limit **
   4  Prefactor     .10000E-03    29.174       -.16157E-04** at limit **
   5  Prefactor     4.6982        5.3217        .47780E-06    .78511E-03
   6  Prefactor     .10000E-03    19.769       -.11563E-05** at limit **
   7  Prefactor     .10000E-03    3.5706        .25373E-06** at limit **
   8  Prefactor     .10000E-03    4.5697       -.13828E-05** at limit **
   9  Prefactor     26.551        16.783       -.95098E-06   -.63402E-05
  10  Prefactor     44.328        60.050       -.39263E-05    .21140E-04
  11  Prefactor     .10000E-03    32.060        .56859E-05** at limit **
  12  Prefactor     12.624        26.843       -.11864E-04    .27550E-04
  13  Prefactor     .10000E-03    7.4639        .17899E-05** at limit **
  14  Prefactor     .10000E-03    20.711       -.11191E-04** at limit **
  15  Prefactor     .10000E-03    5.9555       -.10700E-05** at limit **
  16  norm          2.5156        1.9786       -.60310E-07    .70231E-05
  17  norm          .10000E-03    1.4126        .12312E-06** at limit **
  18  Prefactor     .59207        19.211       -.58039E-05    .44750E-03
  19  norm          35.522        28.971       -.29342E-05    .27500E-04
  20  Prefactor     .10000E-03    36.946        .44945E-04** at limit **
  21  norm          2.8004        .61205        .16987E-07    .49958E-03
  22  Prefactor     .10000E-03    3.5286       -.70866E-07** at limit **
  23  Prefactor     .10000E-03    17.855        .19639E-04** at limit **
  24  Prefactor     8.7378        7.3769       -.16071E-06   -.18068E-04
  25  norm          1.7037        1.3389       -.98718E-07   -.31009E-03
  26  Prefactor     .10000E-03    4.6819        .16728E-05** at limit **
  27  Prefactor     .10000E-03    11.470       -.44204E-05** at limit **
  28  Normalizat    .54784        .20261        .31269E-05    .20751E-03
  29  Prefactor     1.5119        .17489        .40794E-06    .36697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.8721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.69816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5514
  Prefactor  = 44.3278
  Prefactor  = 0.0001
  Prefactor  = 12.624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.51562
  norm       = 0.0001
  Prefactor  = 0.592072
  norm       = 35.522
  Prefactor  = 0.0001
  norm       = 2.8004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.73775
  norm       = 1.70374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.547843
  Prefactor  = 1.51193
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.374     FROM HESSE     STATUS=OK           545 CALLS     4191 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80480        .72387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.872        28.997        .70969E-04   -1.4578    
   3  Prefactor     .10000E-03    28.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6982        5.3255        .92826E-03   -1.5274    
   6  Prefactor     .10000E-03    19.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6034        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5748        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.551        16.768        .77726E-04   -1.4677    
  10  Prefactor     44.328        60.033        .60215E-04   -1.4375    
  11  Prefactor     .10000E-03    32.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.624        26.837        .11268E-03   -1.4997    
  13  Prefactor     .10000E-03    7.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5156        1.9765        .10034E-03   -1.5391    
  17  norm          .10000E-03    1.4432        .19252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59207        192.41        .69651E-02   -1.5554    
  19  norm          35.522        28.978        .67233E-04   -1.4515    
  20  Prefactor     .10000E-03    36.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8004        .61170        .28147E-04   -1.5373    
  22  Prefactor     .10000E-03    3.5390        .15258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.7378        7.3788        .13560E-03   -1.5117    
  25  norm          1.7037        1.3288        .80690E-04   -1.5447    
  26  Prefactor     .10000E-03    4.7063        .17573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .54784        .22560        .37800E-03   -1.1025    
  29  Prefactor     1.5119        .19855        .21486E-03   -.77206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77757e-08
Minuit parameter uncertainties:
  1  2.51307e-07
  2  29.0099
  3  8.14133e-05
  4  1.31304e-05
  5  5.32605
  6  9.71567e-09
  7  2.15824e-05
  8  2.8222e-06
  9  16.7714
  10  60.1146
  11  1.80309e-05
  12  26.8629
  13  8.62775e-07
  14  8.51178e-05
  15  1.73734e-06
  16  1.97657
  17  1.18271e-05
  18  21.4146
  19  28.9891
  20  8.34575e-06
  21  0.6117
  22  7.94992e-06
  23  5.02026e-05
  24  7.37959
  25  1.32881
  26  9.97282e-06
  27  8.19483e-06
  28  0.225977
  29  0.198647
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.262e+01  2.686e+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:  1.512e+00  1.986e-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:  5.478e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/686290/likelihoodResults_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.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) = 6918.37324717
delta logL = 0.000602167348006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6918.37304063
delta logL = 0.000808704501651

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6918.373     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      201 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.990        1214.0        .28877E-02    .23760E-04
   2  Index         2.6300        5.8310        .23087        .73589E-04
   3  Normalizat    .54731        .53479E-01    .85374E-01    .30946E-04
   4  Prefactor     1.5123        .48785E-01    .48602E-01   -.24977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9899
  Index      = 2.62997
  Normalizat = 0.54731
  Prefactor  = 1.51231
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.373     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.990        33.648        .11551E-03   -1.5015    
   2  Index         2.6300        1.4073        .13977E-01   -.49384    
   3  Normalizat    .54731        .21924        .37818E-03   -1.1027    
   4  Prefactor     1.5123        .19717        .21484E-03   -.77196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10544e-11
Minuit parameter uncertainties:
  1  33.7013
  2  1.43244
  3  0.219583
  4  0.197266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686290': 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) = 6918.373024
delta logL = 0.00082533735349

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.199e+01  3.370e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.630e+00  1.432e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.512e+00  1.973e-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:  5.473e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 181.203 4.120

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/686290/cmap_HighResolution_662342401_662601601_4FGL_J1204.8+0407_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-12-31 04:55:47.439464', job_id='686290', GAL2='1.51', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1640955347.44', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='8.25e-04', ts2='0.26', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1632' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 04:55:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 686290: <4FGL_J1204.8+0407_daily_bin1632> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1632> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 31 04:40:12 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 04:40:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 04:40:14 2021
Terminated at Fri Dec 31 04:55:48 2021
Results reported at Fri Dec 31 04:55:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1632 181.203 4.12 662342401 662601601 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 :                                   894.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

