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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1488
RA = 181.203, Dec = 4.12
tmin = 625017601, tmax = 625276801
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='312089', job_status='RUN', time_executed='2021-09-04 23:22:46.390739', time_epoch_executed='1630822966.39' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312089

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312089/ft1_4FGL_J1204.8+0407_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits


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

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

Done.
real 3.68
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312089/ft1_filtered_4FGL_J1204.8+0407_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/312089/ltcube_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.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/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits
.....................!
real 11.70
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312089/ft1_filtered_4FGL_J1204.8+0407_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/312089/ltcube_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.fits outfile=/scratch/kocevski/312089/expmap_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.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/312089/ltcube_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.fits
.....................!
real 191.48
user 186.16
sys 4.91

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/312089/ft1_filtered_4FGL_J1204.8+0407_daily_bin1488.fits scfile=/scratch/kocevski/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits outfile=/scratch/kocevski/312089/cmap_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312089/ft1_filtered_4FGL_J1204.8+0407_daily_bin1488.fits scfile=/scratch/kocevski/312089/ft2_4FGL_J1204.8+0407_daily_bin1488.fits outfile=/scratch/kocevski/312089/cmap_HighResolution_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2920       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86360       1.0000         .10000E-03   10000.    
    17 'norm      '    10.662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5854       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.690       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9590       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0586       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=   6051.051     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3646 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2922        2.8769        .14688E-06   -.12622E-04
   2  Prefactor     7.4690        16.430        .28914E-06   -.13153E-05
   3  Prefactor     .10000E-03    10.646        .25589E-06** at limit **
   4  Prefactor     43.796        57.399       -.67478E-06   -.26770E-05
   5  Prefactor     1.6673        19.641        .12585E-04   -.33091E-05
   6  Prefactor     .10000E-03    27.204        .21686E-05** at limit **
   7  Prefactor     4.9117        4.8655       -.32742E-06    .17668E-05
   8  Prefactor     .10000E-03    9.8491       -.23717E-06** at limit **
   9  Prefactor     22.467        20.082        .50747E-06    .78625E-05
  10  Prefactor     .10000E-03    54.086        .11417E-05** at limit **
  11  Prefactor     .10000E-03    43.367       -.19270E-05** at limit **
  12  Prefactor     .10000E-03    10.885        .29172E-06** at limit **
  13  Prefactor     19.195        20.785        .40098E-06    .22153E-04
  14  Prefactor     .10000E-03    43.280       -.24678E-05** at limit **
  15  Prefactor     .10000E-03    4.5484        .79994E-07** at limit **
  16  norm          .86341        1.8394       -.34214E-06   -.92332E-03
  17  norm          10.664        4.6859       -.49200E-07    .63088E-04
  18  Prefactor     11.471        44.829        .15423E-04   -.14218E-04
  19  norm          .10000E-03    16.927       -.88350E-06** at limit **
  20  Prefactor     .10000E-03    54.847        .75044E-06** at limit **
  21  norm          1.5856        .66660        .39465E-07    .41851E-04
  22  Prefactor     15.693        12.816       -.14168E-06   -.27331E-04
  23  Prefactor     .10000E-03    11.508        .86463E-07** at limit **
  24  Prefactor     .10000E-03    5.0457        .35462E-07** at limit **
  25  norm          2.9592        1.8293        .23301E-07   -.68041E-04
  26  Prefactor     .10000E-03    7.5153        .70204E-07** at limit **
  27  Prefactor     .10000E-03    10.440        .12295E-06** at limit **
  28  Normalizat    1.1140        .21950       -.13585E-05    .54058E-04
  29  Prefactor     1.0587        .17768       -.65806E-06   -.20869E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29221
  Prefactor  = 7.46905
  Prefactor  = 0.0001
  Prefactor  = 43.7964
  Prefactor  = 1.66735
  Prefactor  = 0.0001
  Prefactor  = 4.91174
  Prefactor  = 0.0001
  Prefactor  = 22.4673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.863414
  norm       = 10.6643
  Prefactor  = 11.4714
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58559
  Prefactor  = 15.6929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11401
  Prefactor  = 1.05874
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.051     FROM HESSE     STATUS=OK           553 CALLS     4199 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2922        2.8767        .10260E-03   -1.5294    
   2  Prefactor     7.4690        16.422        .14675E-03   -1.5161    
   3  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.796        57.467        .60579E-04   -1.4383    
   5  Prefactor     1.6673        19.708        .16335E-02   -1.5450    
   6  Prefactor     .10000E-03    27.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9117        4.8698        .83104E-03   -1.5265    
   8  Prefactor     .10000E-03    9.8977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.467        20.102        .84509E-04   -1.4760    
  10  Prefactor     .10000E-03    54.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.195        20.734        .91425E-04   -1.4831    
  14  Prefactor     .10000E-03    43.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5606        .16197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .86341        1.4785        .14979E-02   -1.5522    
  17  norm          10.664        4.6973        .10068E-03   -1.5055    
  18  Prefactor     11.471        44.518        .11792E-03   -1.5030    
  19  norm          .10000E-03    16.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    54.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5856        .66004        .37294E-04   -1.5456    
  22  Prefactor     15.693        12.822        .10112E-03   -1.4915    
  23  Prefactor     .10000E-03    11.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.0793        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9592        1.8235        .78710E-04   -1.5364    
  26  Prefactor     .10000E-03    7.5743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1140        .26242        .28831E-03   -.89303    
  29  Prefactor     1.0587        .21214        .24981E-03   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83669e-10
Minuit parameter uncertainties:
  1  2.87681
  2  16.4322
  3  4.18759e-06
  4  57.54
  5  11.469
  6  5e-06
  7  4.87021
  8  2.35918e-06
  9  20.1078
  10  2.38439e-05
  11  1.81169e-05
  12  1.34405e-06
  13  20.7416
  14  0.00012402
  15  9.19345e-06
  16  1.47852
  17  4.69749
  18  44.6477
  19  4.96119e-07
  20  7.8983e-05
  21  0.660047
  22  12.8244
  23  4.96951e-06
  24  5.79524e-06
  25  1.82352
  26  7.46248e-06
  27  1.54532e-06
  28  0.262727
  29  0.212308
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.344e-06  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.059e+00  2.123e-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.114e+00  2.627e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312089/likelihoodResults_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.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) = 6051.05143031
delta logL = -0.000435958633716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6051.05099429
delta logL = 5.35337676411e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5586       1.0000          .0000       10.000    
     3 'Normalizat'    1.1140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       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=   6051.051     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      262 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.987        .18142E-01** at limit **
   2  Index         1.9681        5.9840        .50000        .26157E-06
   3  Normalizat    1.1140        .10112E-01    .28831E-03   -.45124E-03
   4  Prefactor     1.0587        .86110E-02    .24981E-03   -.52392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9681
  Normalizat = 1.114
  Prefactor  = 1.05874
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    321.15        .28861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9681        5.1068        .50000       -.65150    
   3  Normalizat    1.1140        .25755E-01    .57662E-04   -.89303    
   4  Prefactor     1.0587        .21931E-01    .49962E-04   -.90796    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38159e-09
Minuit parameter uncertainties:
  1  6.87086e-06
  2  1006.77
  3  0.0257555
  4  0.0219315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312089': 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) = 6051.05099322
delta logL = 1.12774887384e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.871e-06  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.968e+00  1.007e+03  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.059e+00  2.193e-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.114e+00  2.576e-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/312089/cmap_HighResolution_625017601_625276801_4FGL_J1204.8+0407_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-04 23:37:01.741073', job_id='312089', GAL2='1.06', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630823821.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1488' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 312089: <4FGL_J1204.8+0407_daily_bin1488> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1488> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:48 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:50 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:50 2021
Terminated at Sat Sep  4 23:37:02 2021
Results reported at Sat Sep  4 23:37:02 2021

Your job looked like:

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

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

