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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1169
RA = 181.203, Dec = 4.12
tmin = 542332801, tmax = 542592001
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='310572', job_status='RUN', time_executed='2021-09-04 23:18:12.989281', time_epoch_executed='1630822692.99' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310572

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310572/ft1_4FGL_J1204.8+0407_daily_bin1169.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits


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

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

Done.
real 4.13
user 3.90
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310572/ft1_filtered_4FGL_J1204.8+0407_daily_bin1169.fits" evtable="EVENTS" scfile=/scratch/kocevski/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits sctable="SC_DATA" outfile=/scratch/kocevski/310572/ltcube_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.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/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits
.....................!
real 11.94
user 11.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310572/ft1_filtered_4FGL_J1204.8+0407_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits sctable="SC_DATA" expcube=/scratch/kocevski/310572/ltcube_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.fits outfile=/scratch/kocevski/310572/expmap_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.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/310572/ltcube_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.fits
.....................!
real 189.59
user 184.76
sys 4.45

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/310572/ft1_filtered_4FGL_J1204.8+0407_daily_bin1169.fits scfile=/scratch/kocevski/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits outfile=/scratch/kocevski/310572/cmap_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.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/310572/ft1_filtered_4FGL_J1204.8+0407_daily_bin1169.fits scfile=/scratch/kocevski/310572/ft2_4FGL_J1204.8+0407_daily_bin1169.fits outfile=/scratch/kocevski/310572/cmap_HighResolution_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6066       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1879       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4428       1.0000         .10000E-03   10000.    
    17 'norm      '    .12471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    117.28       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3423       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.977       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0189       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4380       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91637       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=   6202.106     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3719 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9435        .10494E-05** at limit **
   2  Prefactor     .10000E-03    13.914        .35073E-06** at limit **
   3  Prefactor     .10000E-03    7.2769        .26565E-06** at limit **
   4  Prefactor     16.638        97.134       -.32574E-05    .22311E-04
   5  Prefactor     .10000E-03    2.5183        .31353E-06** at limit **
   6  Prefactor     .10000E-03    42.428        .25757E-06** at limit **
   7  Prefactor     6.6068        7.8574       -.26009E-05   -.19029E-03
   8  Prefactor     .10000E-03    4.5926        .38562E-06** at limit **
   9  Prefactor     46.751        25.922       -.99586E-07   -.35478E-04
  10  Prefactor     8.1811        80.474       -.82131E-06    .23577E-05
  11  Prefactor     25.773        43.811        .54385E-06   -.28688E-05
  12  Prefactor     .10000E-03    23.414        .19052E-05** at limit **
  13  Prefactor     .10000E-03    13.284        .90168E-06** at limit **
  14  Prefactor     .10000E-03    36.151       -.14978E-05** at limit **
  15  Prefactor     .10000E-03    6.1431        .13299E-05** at limit **
  16  norm          5.4431        2.9063        .60689E-07   -.16528E-03
  17  norm          .78856E-01    95.039       -.55989E-04    .33356E-04
  18  Prefactor     .10000E-03    12.650        .24297E-06** at limit **
  19  norm          117.40        66.533        .52385E-05   -.30053E-03
  20  Prefactor     .10000E-03    83.155       -.31870E-06** at limit **
  21  norm          2.3431        .89583        .22429E-07    .41382E-03
  22  Prefactor     25.532        13.793       -.81892E-07   -.34966E-04
  23  Prefactor     .10000E-03    11.720        .65174E-06** at limit **
  24  Prefactor     14.975        13.135       -.39662E-07   -.91458E-04
  25  norm          2.0189        1.7763        .10282E-06   -.44659E-04
  26  Prefactor     .10000E-03    9.4572        .11824E-05** at limit **
  27  Prefactor     .10000E-03    58.635        .49620E-05** at limit **
  28  Normalizat    1.4387        .24885        .29767E-05   -.98629E-04
  29  Prefactor     .91598        .19438       -.40411E-05   -.48154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.60677
  Prefactor  = 0.0001
  Prefactor  = 46.7514
  Prefactor  = 8.18115
  Prefactor  = 25.7732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.44309
  norm       = 0.0788561
  Prefactor  = 0.0001
  norm       = 117.398
  Prefactor  = 0.0001
  norm       = 2.34314
  Prefactor  = 25.5319
  Prefactor  = 0.0001
  Prefactor  = 14.9751
  norm       = 2.01889
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.43865
  Prefactor  = 0.915982
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.106     FROM HESSE     STATUS=OK           549 CALLS     4268 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0038        .21451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.638        97.335        .98091E-04   -1.4892    
   5  Prefactor     .10000E-03    2.5195        .12206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6068        7.8436        .78062E-03   -1.5194    
   8  Prefactor     .10000E-03    4.5950        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.751        25.981        .58633E-04   -1.4339    
  10  Prefactor     8.1811        80.547        .14011E-03   -1.5136    
  11  Prefactor     25.773        43.838        .78904E-04   -1.4692    
  12  Prefactor     .10000E-03    23.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4431        2.9055        .94811E-04   -1.5241    
  17  norm          .78856E-01    112.82        .21539E-02   -1.5652    
  18  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          117.40        68.801        .18577E-03   -1.3537    
  20  Prefactor     .10000E-03    83.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3431        .92051        .39228E-04   -1.5402    
  22  Prefactor     25.532        13.803        .79275E-04   -1.4697    
  23  Prefactor     .10000E-03    11.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.975        13.135        .10349E-03   -1.4934    
  25  norm          2.0189        1.7673        .93263E-04   -1.5424    
  26  Prefactor     .10000E-03    9.5087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    59.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4387        .29331        .28448E-03   -.79517    
  29  Prefactor     .91598        .22898        .28363E-03   -.95585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56645e-09
Minuit parameter uncertainties:
  1  1.14777e-05
  2  4.4649e-05
  3  2.90953e-05
  4  80.6848
  5  5.52655e-06
  6  6.06017e-05
  7  7.8448
  8  9.09928e-06
  9  25.9873
  10  51.4306
  11  43.893
  12  0.000134045
  13  8.92534e-05
  14  0.000287022
  15  1.0196e-05
  16  2.90553
  17  5.97284
  18  1.38266e-05
  19  68.8478
  20  4.45891e-05
  21  0.920511
  22  13.8043
  23  2.30738e-05
  24  13.1377
  25  1.76731
  26  7.52993e-06
  27  0.000390996
  28  0.293653
  29  0.229218
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.340e-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:  9.160e-01  2.292e-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.439e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/310572/likelihoodResults_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.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) = 6202.10580179
delta logL = -0.000202734868253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6202.10560066
delta logL = -1.60521267389e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9629       1.0000          .0000       10.000    
     3 'Normalizat'    1.4386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91600       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=   6202.106     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10655E-03    15.485        .18142E-01** at limit **
   2  Index         2.8331        5.2870        .50000        .17220E-04
   3  Normalizat    1.4386        .53844E-02    .28448E-03   -.19582E-05
   4  Prefactor     .91599        .44292E-02    .28363E-03   -.88583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106553
  Index      = 2.83311
  Normalizat = 1.43864
  Prefactor  = 0.915989
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.106     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10655E-03    93.685        .32494E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8331        5.4961        .50000       -.44824    
   3  Normalizat    1.4386        .13270E-01    .11379E-04   -.79517    
   4  Prefactor     .91599        .10916E-01    .11345E-04   -.95585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.88162e-09
Minuit parameter uncertainties:
  1  0.0496338
  2  348.804
  3  0.0132701
  4  0.0109161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310572': 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): 102
logL (Free Index) = 6202.10559989
delta logL = -8.33391823107e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.066e-04  4.963e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.833e+00  3.488e+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:  9.160e-01  1.092e-02  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.439e+00  1.327e-02  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/310572/cmap_HighResolution_542332801_542592001_4FGL_J1204.8+0407_daily_bin1169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-09-04 23:32:33.960131', job_id='310572', GAL2='0.92', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630823553.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-8.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1169' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:32:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 310572: <4FGL_J1204.8+0407_daily_bin1169> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1169> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:20 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:21 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:21 2021
Terminated at Sat Sep  4 23:32:34 2021
Results reported at Sat Sep  4 23:32:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1169 181.203 4.12 542332801 542592001 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 :                                   848.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            974 sec.

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

