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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1177
RA = 181.203, Dec = 4.12
tmin = 544406401, tmax = 544665601
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='310590', job_status='RUN', time_executed='2021-09-04 23:19:56.841656', time_epoch_executed='1630822796.84' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310590

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310590/ft1_4FGL_J1204.8+0407_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310590/ft1_4FGL_J1204.8+0407_daily_bin1177.fits outfile=/scratch/kocevski/310590/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1177.fits ra=181.203 dec=4.12 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.70
user 7.37
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.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/310590/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/310590/ft1_filtered_4FGL_J1204.8+0407_daily_bin1177.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.65
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310590/ft1_filtered_4FGL_J1204.8+0407_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/310590/ltcube_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.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/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.fits
.....................!
real 7.68
user 7.36
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310590/ft1_filtered_4FGL_J1204.8+0407_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/310590/ltcube_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.fits outfile=/scratch/kocevski/310590/expmap_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.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/310590/ltcube_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.fits
.....................!
real 191.94
user 187.55
sys 3.96

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/310590/ft1_filtered_4FGL_J1204.8+0407_daily_bin1177.fits scfile=/scratch/kocevski/310590/ft2_4FGL_J1204.8+0407_daily_bin1177.fits outfile=/scratch/kocevski/310590/cmap_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.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.59
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    25.440       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.205       1.0000         .10000E-03   10000.    
    20 'Prefactor '    211.92       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4665       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0616       1.0000         .10000E-03   10000.    
    25 'norm      '    .10868E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9596       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.772       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0835       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0428       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=   2688.802     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3613 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5766        .13155E-07** at limit **
   2  Prefactor     25.438        45.081        .13907E-05   -.12733E-04
   3  Prefactor     .10000E-03    16.756        .74748E-07** at limit **
   4  Prefactor     .10000E-03    137.17        .20726E-06** at limit **
   5  Prefactor     4.2998        22.446        .13201E-05    .19424E-04
   6  Prefactor     .10000E-03    18.553       -.43878E-07** at limit **
   7  Prefactor     .10000E-03    7.9101        .19610E-06** at limit **
   8  Prefactor     .10000E-03    32.721        .18015E-06** at limit **
   9  Prefactor     .10000E-03    37.101       -.60421E-06** at limit **
  10  Prefactor     .10000E-03    83.585        .25999E-06** at limit **
  11  Prefactor     28.637        36.141       -.40759E-06   -.25932E-04
  12  Prefactor     .10000E-03    56.145        .60750E-06** at limit **
  13  Prefactor     5.6458        39.486        .85690E-06   -.45117E-05
  14  Prefactor     .10000E-03    32.732        .61304E-06** at limit **
  15  Prefactor     .10000E-03    7.2773        .67051E-07** at limit **
  16  norm          .10000E-03    1.8218        .19158E-07** at limit **
  17  norm          17.516        9.7803        .59668E-06    .20647E-03
  18  Prefactor     .10000E-03    165.55       -.16500E-06** at limit **
  19  norm          28.039        87.516       -.36173E-05   -.11970E-04
  20  Prefactor     211.85        231.73       -.55923E-06   -.22688E-05
  21  norm          2.4674        1.0510        .15169E-06    .10530E-02
  22  Prefactor     .10000E-03    13.216        .59004E-07** at limit **
  23  Prefactor     .10000E-03    57.178        .61609E-07** at limit **
  24  Prefactor     2.0637        16.180        .14404E-05    .63211E-04
  25  norm          .10000E-03    1.7459       -.82383E-06** at limit **
  26  Prefactor     1.9638        18.873        .20390E-05    .61617E-04
  27  Prefactor     25.775        33.717        .28998E-07    .17679E-04
  28  Normalizat    1.0832        .40959       -.89267E-05    .91077E-05
  29  Prefactor     1.0427        .30731        .53012E-05   -.62686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.4376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6374
  Prefactor  = 0.0001
  Prefactor  = 5.64582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.516
  Prefactor  = 0.0001
  norm       = 28.0392
  Prefactor  = 211.853
  norm       = 2.4674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0637
  norm       = 0.0001
  Prefactor  = 1.96383
  Prefactor  = 25.7751
  Normalizat = 1.08318
  Prefactor  = 1.04274
 **********
 **   18 **HESSE 
 **********

 FCN=   2688.802     FROM HESSE     STATUS=OK           545 CALLS     4158 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5849        .63578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.438        45.111        .79422E-04   -1.4699    
   3  Prefactor     .10000E-03    16.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    137.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2998        22.466        .19412E-03   -1.5293    
   6  Prefactor     .10000E-03    18.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9357        .14250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    83.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.637        36.150        .37428E-03   -1.4637    
  12  Prefactor     .10000E-03    56.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6458        39.342        .16908E-03   -1.5233    
  14  Prefactor     .10000E-03    32.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2885        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8381        .68301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.516        9.8238        .95294E-04   -1.4871    
  18  Prefactor     .10000E-03    165.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.039        88.140        .75436E-04   -1.4648    
  20  Prefactor     211.85        231.64        .13887E-03   -1.2787    
  21  norm          2.4674        1.0548        .31034E-04   -1.5394    
  22  Prefactor     .10000E-03    13.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    57.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.0637        16.172        .28780E-03   -1.5421    
  25  norm          .10000E-03    2.4608        .12631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.9638        18.896        .29634E-03   -1.5428    
  27  Prefactor     25.775        33.703        .78910E-04   -1.4692    
  28  Normalizat    1.0832        .42203        .30901E-03   -.90294    
  29  Prefactor     1.0427        .32231        .25034E-03   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24551e-10
Minuit parameter uncertainties:
  1  3.17445e-06
  2  45.1719
  3  1.67413e-05
  4  0.000144985
  5  19.6682
  6  9.00928e-06
  7  2.14562e-05
  8  5.86834e-05
  9  8.02167e-06
  10  0.000200963
  11  36.1774
  12  0.000112857
  13  29.8351
  14  9.74922e-05
  15  5.92003e-06
  16  5.57776e-07
  17  9.82473
  18  0.000128878
  19  88.5536
  20  232.647
  21  1.05485
  22  1.63875e-05
  23  2.60502e-05
  24  11.5581
  25  3.16085e-05
  26  12.1882
  27  33.7279
  28  0.423346
  29  0.322913
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.043e+00  3.229e-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.083e+00  4.233e-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: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310590/likelihoodResults_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.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) = 2688.80159206
delta logL = -8.45820363793e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2688.80150817
delta logL = -6.97673840477e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1052       1.0000          .0000       10.000    
     3 'Normalizat'    1.0832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0427       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=   2688.802     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      273 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10499E-03    36.712        .18142E-01** at limit **
   2  Index         2.9796        8.3265        .50000        .51161E-05
   3  Normalizat    1.0832        .78533E-02    .30902E-03   -.15451E-05
   4  Prefactor     1.0427        .62925E-02    .25033E-03    .60855E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104986
  Index      = 2.97963
  Normalizat = 1.08318
  Prefactor  = 1.04274
 **********
 **   18 **HESSE 
 **********

 FCN=   2688.802     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10499E-03    270.22        .32952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9796        5.9255        .50000       -.41597    
   3  Normalizat    1.0832        .21417E-01    .12361E-04   -.90294    
   4  Prefactor     1.0427        .17161E-01    .10013E-04   -.91318    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66912e-09
Minuit parameter uncertainties:
  1  0.0737468
  2  759.472
  3  0.0214175
  4  0.0171609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310590': 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) = 2688.80150782
delta logL = -3.41527083947e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.043e+00  1.716e-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.083e+00  2.142e-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/310590/cmap_HighResolution_544406401_544665601_4FGL_J1204.8+0407_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2021-09-04 23:29:17.351543', job_id='310590', GAL2='1.04', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630823357.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-3.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1177' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 310590: <4FGL_J1204.8+0407_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1177 181.203 4.12 544406401 544665601 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 :                                   557.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

