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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1527
RA = 181.203, Dec = 4.12
tmin = 635126401, tmax = 635385601
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='312145', job_status='RUN', time_executed='2021-09-04 23:22:12.691565', time_epoch_executed='1630822932.69' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312145

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312145/ft1_4FGL_J1204.8+0407_daily_bin1527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312145/ft2_4FGL_J1204.8+0407_daily_bin1527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312145/ft1_4FGL_J1204.8+0407_daily_bin1527.fits outfile=/scratch/kocevski/312145/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1527.fits ra=181.203 dec=4.12 rad=12.0 tmin=635126401.0 tmax=635385601.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.97
user 2.73
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312145/ft1_filtered_4FGL_J1204.8+0407_daily_bin1527.fits evtable="EVENTS" scfile=/scratch/kocevski/312145/ft2_4FGL_J1204.8+0407_daily_bin1527.fits sctable="SC_DATA" expcube=/scratch/kocevski/312145/ltcube_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.fits outfile=/scratch/kocevski/312145/expmap_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.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/312145/ltcube_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.fits
.....................!
real 192.10
user 186.81
sys 4.90

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/312145/ft1_filtered_4FGL_J1204.8+0407_daily_bin1527.fits scfile=/scratch/kocevski/312145/ft2_4FGL_J1204.8+0407_daily_bin1527.fits outfile=/scratch/kocevski/312145/cmap_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312145/ft1_filtered_4FGL_J1204.8+0407_daily_bin1527.fits scfile=/scratch/kocevski/312145/ft2_4FGL_J1204.8+0407_daily_bin1527.fits outfile=/scratch/kocevski/312145/cmap_HighResolution_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12138E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.103       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .80450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10704E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1311       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.072       1.0000         .10000E-03   10000.    
    25 'norm      '    6.0474       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    93.579       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2345       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93294       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=   2602.641     FROM MIGRAD    STATUS=CONVERGED   1315 CALLS     4276 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.279        .27357E-02** at limit **
   2  Prefactor     .10000E-03    48.729        .18142E-02** at limit **
   3  Prefactor     95.840        85.457        .41059E-04   -.10217E-04
   4  Prefactor     .10000E-03    119.19        .18142E-02** at limit **
   5  Prefactor     .10000E-03    10.814        .16386E-02** at limit **
   6  Prefactor     .10000E-03    55.635        .18142E-02** at limit **
   7  Prefactor     2.0463        55.995        .28665E-03    .79321E-05
   8  Prefactor     .10000E-03    19.620        .18142E-02** at limit **
   9  Prefactor     9.0516        23.581        .13317E-03   -.19209E-05
  10  Prefactor     .10000E-03    73.160        .18142E-02** at limit **
  11  Prefactor     13.095        48.474        .11066E-03   -.22602E-05
  12  Prefactor     52.872        99.472        .55144E-04   -.86794E-05
  13  Prefactor     .10000E-03    13.052        .17999E-02** at limit **
  14  Prefactor     .10000E-03    27.623        .18142E-02** at limit **
  15  Prefactor     .10000E-03    17.247        .18142E-02** at limit **
  16  norm          .10000E-03    5.4814        .17713E-02** at limit **
  17  norm          4.6902        8.4925        .15722E-03   -.28598E-04
  18  Prefactor     .10000E-03    35.439        .18142E-02** at limit **
  19  norm          .61659        126.49        .13590        .57933E-04
  20  Prefactor     .10000E-03    263.37        .20717E-02** at limit **
  21  norm          2.1311        1.3380        .38818E-04   -.30078E-03
  22  Prefactor     .10000E-03    5.3797        .11555E-02** at limit **
  23  Prefactor     .10000E-03    13.946        .18142E-02** at limit **
  24  Prefactor     20.072        15.778        .89400E-04   -.28294E-04
  25  norm          6.0477        3.5087        .66483E-04   -.11457E-04
  26  Prefactor     .10000E-03    9.1425        .15043E-02** at limit **
  27  Prefactor     93.573        67.971        .41545E-04   -.33111E-05
  28  Normalizat    1.2349        .47719        .32732E-03   -.77974E-04
  29  Prefactor     .93290        .34376        .27988E-03   -.18848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.8405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04632
  Prefactor  = 0.0001
  Prefactor  = 9.05155
  Prefactor  = 0.0001
  Prefactor  = 13.0953
  Prefactor  = 52.8715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.69015
  Prefactor  = 0.0001
  norm       = 0.616592
  Prefactor  = 0.0001
  norm       = 2.13106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.072
  norm       = 6.0477
  Prefactor  = 0.0001
  Prefactor  = 93.5729
  Normalizat = 1.23488
  Prefactor  = 0.932901
 **********
 **   18 **HESSE 
 **********

 FCN=   2602.641     FROM HESSE     STATUS=OK           533 CALLS     4809 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.355        .54714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     95.840        85.412        .82117E-05   -1.3747    
   4  Prefactor     .10000E-03    119.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.814        .32771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0463        55.837        .11466E-04   -1.5422    
   8  Prefactor     .10000E-03    19.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0516        23.578        .53266E-05   -1.5106    
  10  Prefactor     .10000E-03    73.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.095        48.461        .44263E-05   -1.4984    
  12  Prefactor     52.872        99.385        .11029E-04   -1.4252    
  13  Prefactor     .10000E-03    13.052        .35998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4930        .35426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6902        8.4714        .62889E-05   -1.5275    
  18  Prefactor     .10000E-03    35.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .61659        120.46        .14018       -1.5551    
  20  Prefactor     .10000E-03    263.37        .41434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1311        1.3371        .15527E-05   -1.5416    
  22  Prefactor     .10000E-03    5.3797        .23111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.072        15.777        .35760E-05   -1.4812    
  25  norm          6.0477        3.5086        .26593E-05   -1.5216    
  26  Prefactor     .10000E-03    9.1431        .30086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     93.573        67.969        .83090E-05   -1.3770    
  28  Normalizat    1.2349        .47753        .13093E-04   -.85532    
  29  Prefactor     .93290        .34397        .11195E-04   -.95001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.365e-10
Minuit parameter uncertainties:
  1  5.4195e-05
  2  3.37608e-05
  3  85.5217
  4  4.90259e-05
  5  1.08506e-07
  6  1.37129e-05
  7  21.4001
  8  4.351e-07
  9  23.6024
  10  6.36993e-05
  11  48.6068
  12  99.6984
  13  1.46668e-06
  14  4.88661e-06
  15  1.25915e-05
  16  1.68419e-06
  17  8.47355
  18  2.08252e-05
  19  17.2703
  20  0.00020161
  21  1.3371
  22  6.53922e-07
  23  5.45846e-07
  24  15.7806
  25  3.50869
  26  7.79413e-06
  27  68.026
  28  0.479239
  29  0.344777
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.329e-01  3.448e-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.235e+00  4.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 3.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312145/likelihoodResults_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.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) = 2602.63886064
delta logL = 0.00252322530605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2602.63762745
delta logL = 0.0037564116833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.037       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7156       1.0000          .0000       10.000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93709       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=   2602.638     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      217 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.037        6283.7        .14464E-02    .95598E-04
   2  Index         2.7155        5.4055        .22844        .93656E-04
   3  Normalizat    1.2276        .12812        .74155E-01   -.58242E-05
   4  Prefactor     .93731        .93430E-01    .45476E-01    .45586E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.0365
  Index      = 2.71552
  Normalizat = 1.22759
  Prefactor  = 0.937308
 **********
 **   18 **HESSE 
 **********

 FCN=   2602.638     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.037        112.75        .57855E-04   -1.4321    
   2  Index         2.7155        1.7275        .94275E-02   -.47450    
   3  Normalizat    1.2276        .45024        .32817E-03   -.85754    
   4  Prefactor     .93731        .33624        .27931E-03   -.94849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9643e-10
Minuit parameter uncertainties:
  1  113.258
  2  1.77423
  3  0.451672
  4  0.336988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312145': 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) = 2602.63762723
delta logL = 0.00375663677369

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.804e+01  1.133e+02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.716e+00  1.774e+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.373e-01  3.370e-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.228e+00  4.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/312145/cmap_HighResolution_635126401_635385601_4FGL_J1204.8+0407_daily_bin1527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-02', job_status='DONE', photon_flux_upper_limit='3.14e-07', time_completed='2021-09-04 23:31:34.603207', job_id='312145', GAL2='0.94', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630823494.6', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.76e-03', ts2='0.42', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1527' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 312145: <4FGL_J1204.8+0407_daily_bin1527> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1527> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:53 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:55 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:20:55 2021
Terminated at Sat Sep  4 23:31:35 2021
Results reported at Sat Sep  4 23:31:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1527 181.203 4.12 635126401 635385601 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 :                                   551.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            642 sec.

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

