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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1053
RA = 181.203, Dec = 4.12
tmin = 512265601, tmax = 512524801
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='310301', job_status='RUN', time_executed='2021-09-04 23:16:54.558614', time_epoch_executed='1630822614.56' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310301/ft1_4FGL_J1204.8+0407_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310301/ft2_4FGL_J1204.8+0407_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310301/ft1_4FGL_J1204.8+0407_daily_bin1053.fits outfile=/scratch/kocevski/310301/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1053.fits ra=181.203 dec=4.12 rad=12.0 tmin=512265601.0 tmax=512524801.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.54
user 3.31
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310301/ft1_filtered_4FGL_J1204.8+0407_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/310301/ft2_4FGL_J1204.8+0407_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/310301/ltcube_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.fits outfile=/scratch/kocevski/310301/expmap_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.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/310301/ltcube_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.fits
.....................!
real 189.13
user 184.88
sys 3.89

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/310301/ft1_filtered_4FGL_J1204.8+0407_daily_bin1053.fits scfile=/scratch/kocevski/310301/ft2_4FGL_J1204.8+0407_daily_bin1053.fits outfile=/scratch/kocevski/310301/cmap_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310301/ft1_filtered_4FGL_J1204.8+0407_daily_bin1053.fits scfile=/scratch/kocevski/310301/ft2_4FGL_J1204.8+0407_daily_bin1053.fits outfile=/scratch/kocevski/310301/cmap_HighResolution_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3377       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.721       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5866       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    44.971       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8293       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .21273E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1440       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.170       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2695       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83128       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=   5930.823     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3650 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3378        1.8582       -.51248E-07   -.56852E-05
   2  Prefactor     .10000E-03    7.6550        .41504E-08** at limit **
   3  Prefactor     11.342        12.718       -.20205E-06   -.19969E-04
   4  Prefactor     .10000E-03    192.58       -.21115E-04** at limit **
   5  Prefactor     9.1356        10.865        .12190E-05    .16782E-04
   6  Prefactor     .10000E-03    65.635       -.16004E-04** at limit **
   7  Prefactor     .10005E-03    5.0723        .10463E-05** at limit **
   8  Prefactor     .10000E-03    21.310       -.48469E-05** at limit **
   9  Prefactor     32.830        18.317       -.21462E-06    .24454E-04
  10  Prefactor     30.699        77.303       -.28148E-04    .21958E-04
  11  Prefactor     .10000E-03    16.733        .78246E-05** at limit **
  12  Prefactor     .10000E-03    22.369        .30764E-05** at limit **
  13  Prefactor     .10000E-03    12.134        .32084E-05** at limit **
  14  Prefactor     .10000E-03    13.028       -.22934E-05** at limit **
  15  Prefactor     .10000E-03    12.542       -.24590E-05** at limit **
  16  norm          6.5871        3.2290       -.44289E-07    .27428E-04
  17  norm          4.1340        5.9755       -.43105E-06   -.48075E-03
  18  Prefactor     .10000E-03    18.832       -.85327E-05** at limit **
  19  norm          44.971        59.245        .49379E-06    .36469E-05
  20  Prefactor     .10000E-03    65.915       -.16568E-04** at limit **
  21  norm          1.7739        .78792       -.27117E-07   -.29079E-03
  22  Prefactor     1.8016        7.0996       -.27207E-05   -.69830E-03
  23  Prefactor     .10000E-03    79.697        .41084E-04** at limit **
  24  Prefactor     .10000E-03    3.4613       -.48652E-08** at limit **
  25  norm          4.1437        1.9746       -.39491E-07   -.94452E-04
  26  Prefactor     13.170        10.763       -.12194E-06   -.13765E-04
  27  Prefactor     .10000E-03    41.987        .25434E-05** at limit **
  28  Normalizat    1.2698        .22207        .16816E-05   -.17501E-03
  29  Prefactor     .83096        .17329       -.20392E-06   -.80693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.33778
  Prefactor  = 0.0001
  Prefactor  = 11.342
  Prefactor  = 0.0001
  Prefactor  = 9.13562
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.000100002
  Prefactor  = 32.8296
  Prefactor  = 30.699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.58714
  norm       = 4.13403
  Prefactor  = 0.0001
  norm       = 44.971
  Prefactor  = 0.0001
  norm       = 1.77393
  Prefactor  = 1.80159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14365
  Prefactor  = 13.1704
  Prefactor  = 0.0001
  Normalizat = 1.26981
  Prefactor  = 0.83096
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.823     FROM HESSE     STATUS=OK           549 CALLS     4199 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3378        1.8611        .90712E-04   -1.5402    
   2  Prefactor     .10000E-03    7.6579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.342        12.709        .11896E-03   -1.5034    
   4  Prefactor     .10000E-03    193.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1356        10.861        .13259E-03   -1.5103    
   6  Prefactor     .10000E-03    65.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    22.508        .33229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.830        18.319        .69937E-04   -1.4561    
  10  Prefactor     30.699        76.950        .72288E-04   -1.4599    
  11  Prefactor     .10000E-03    16.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5871        3.2247        .92968E-04   -1.5195    
  17  norm          4.1340        5.9241        .16489E-03   -1.5301    
  18  Prefactor     .10000E-03    18.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          44.971        59.084        .59786E-04   -1.4366    
  20  Prefactor     .10000E-03    65.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7739        .78197        .39697E-04   -1.5442    
  22  Prefactor     1.8016        7.1791        .30860E-03   -1.5440    
  23  Prefactor     .10000E-03    80.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4651        .13991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1437        1.9706        .70706E-04   -1.5301    
  26  Prefactor     13.170        10.758        .11038E-03   -1.4982    
  27  Prefactor     .10000E-03    42.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2698        .26179        .27313E-03   -.84472    
  29  Prefactor     .83096        .20319        .26733E-03   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04709e-09
Minuit parameter uncertainties:
  1  1.86113
  2  2.36009e-06
  3  12.7121
  4  4.95121e-05
  5  10.8635
  6  5.45954e-05
  7  0.00218986
  8  0.00045522
  9  18.3217
  10  77.2
  11  9.70845e-07
  12  1.56236e-05
  13  1.2144e-05
  14  5.46627e-06
  15  7.28035e-06
  16  3.22478
  17  5.92489
  18  8.52726e-06
  19  59.161
  20  5.7241e-06
  21  0.781971
  22  7.1825
  23  8.23856e-05
  24  1.24819e-06
  25  1.97059
  26  10.76
  27  2.91622e-05
  28  0.262059
  29  0.203373
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.562e-05  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:  8.310e-01  2.034e-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.270e+00  2.621e-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: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310301/likelihoodResults_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.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) = 5930.82275862
delta logL = -0.00021263355211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5930.82254733
delta logL = -1.34018137032e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1128       1.0000          .0000       10.000    
     3 'Normalizat'    1.2698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83096       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=   5930.823     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10681E-03    13.412        .18142E-01** at limit **
   2  Index         2.9655        5.7824        .50000        .15011E-04
   3  Normalizat    1.2698        .48759E-02    .27313E-03   -.84578E-04
   4  Prefactor     .83096        .39734E-02    .26733E-03   -.11172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106815
  Index      = 2.96546
  Normalizat = 1.26981
  Prefactor  = 0.830959
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.823     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10681E-03    114.79        .30401E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9655        5.4956        .50000       -.41907    
   3  Normalizat    1.2698        .14295E-01    .10925E-04   -.84472    
   4  Prefactor     .83096        .11649E-01    .10693E-04   -.98597    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22072e-09
Minuit parameter uncertainties:
  1  0.0560463
  2  497.323
  3  0.0142947
  4  0.0116487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310301': 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) = 5930.82254699
delta logL = -9.99042640615e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.068e-04  5.605e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.965e+00  4.973e+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:  8.310e-01  1.165e-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.270e+00  1.429e-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/310301/cmap_HighResolution_512265601_512524801_4FGL_J1204.8+0407_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-04 23:30:28.744335', job_id='310301', GAL2='0.83', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630823428.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-9.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1053' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 310301: <4FGL_J1204.8+0407_daily_bin1053> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1053> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:52 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15:53 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:15:53 2021
Terminated at Sat Sep  4 23:30:29 2021
Results reported at Sat Sep  4 23:30:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1053 181.203 4.12 512265601 512524801 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 :                                   802.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

