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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1158
RA = 181.203, Dec = 4.12
tmin = 539481601, tmax = 539740801
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='310554', job_status='RUN', time_executed='2021-09-04 23:17:26.643164', time_epoch_executed='1630822646.64' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310554/ft1_4FGL_J1204.8+0407_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310554/ft1_4FGL_J1204.8+0407_daily_bin1158.fits outfile=/scratch/kocevski/310554/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1158.fits ra=181.203 dec=4.12 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.20
user 4.91
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310554/ft1_filtered_4FGL_J1204.8+0407_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/310554/ltcube_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.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/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits
.....................!
real 11.73
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310554/ft1_filtered_4FGL_J1204.8+0407_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/310554/ltcube_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.fits outfile=/scratch/kocevski/310554/expmap_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.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/310554/ltcube_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.fits
.....................!
real 191.21
user 185.54
sys 5.16

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/310554/ft1_filtered_4FGL_J1204.8+0407_daily_bin1158.fits scfile=/scratch/kocevski/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits outfile=/scratch/kocevski/310554/cmap_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.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/310554/ft1_filtered_4FGL_J1204.8+0407_daily_bin1158.fits scfile=/scratch/kocevski/310554/ft2_4FGL_J1204.8+0407_daily_bin1158.fits outfile=/scratch/kocevski/310554/cmap_HighResolution_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.199       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9283       1.0000         .10000E-03   10000.    
    16 'norm      '    .59362       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .14704E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0486       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5367       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.5174       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.665       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94524       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97245       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=   5440.050     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     4255 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7428        .11719E-05** at limit **
   2  Prefactor     .10000E-03    9.4285        .30511E-07** at limit **
   3  Prefactor     .10000E-03    9.6564        .86766E-07** at limit **
   4  Prefactor     8.5783        329.51       -.79464E-05    .25935E-05
   5  Prefactor     .10000E-03    5.4774        .44014E-06** at limit **
   6  Prefactor     16.186        30.731        .34258E-06   -.60275E-05
   7  Prefactor     .10000E-03    3.1715        .39681E-07** at limit **
   8  Prefactor     .42170        285.45       -.63853E-05    .32899E-06
   9  Prefactor     13.930        15.370       -.38574E-07   -.19845E-04
  10  Prefactor     90.321        137.85        .37453E-07    .55504E-06
  11  Prefactor     .10000E-03    13.670        .78679E-07** at limit **
  12  Prefactor     .10000E-03    17.359        .14372E-06** at limit **
  13  Prefactor     73.758        32.985        .30932E-06    .15023E-04
  14  Prefactor     .10000E-03    10.208        .61851E-07** at limit **
  15  Prefactor     9.8999        17.257        .14252E-05    .26026E-04
  16  norm          .59891        2.0407       -.68561E-06   -.61426E-04
  17  norm          8.3280        4.8379       -.76172E-07   -.13118E-04
  18  Prefactor     .10000E-03    12.945       -.41436E-07** at limit **
  19  norm          .10000E-03    53.905       -.29969E-06** at limit **
  20  Prefactor     .10000E-03    53.819       -.54003E-07** at limit **
  21  norm          1.0486        .55290        .28910E-08   -.10816E-04
  22  Prefactor     29.363        19.746       -.15752E-06    .80845E-05
  23  Prefactor     .10000E-03    176.70        .95788E-06** at limit **
  24  Prefactor     .10000E-03    4.5341       -.20640E-07** at limit **
  25  norm          3.5364        1.8366        .56645E-08   -.94701E-04
  26  Prefactor     6.5167        6.7424        .15253E-06   -.73664E-04
  27  Prefactor     29.690        39.615        .29409E-06   -.16883E-04
  28  Normalizat    .94548        .27950        .43549E-05   -.64412E-04
  29  Prefactor     .97230        .20058       -.36697E-05   -.16958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.57833
  Prefactor  = 0.0001
  Prefactor  = 16.1865
  Prefactor  = 0.0001
  Prefactor  = 0.421702
  Prefactor  = 13.9302
  Prefactor  = 90.3209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.7579
  Prefactor  = 0.0001
  Prefactor  = 9.89987
  norm       = 0.598914
  norm       = 8.32796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.04856
  Prefactor  = 29.363
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.53643
  Prefactor  = 6.5167
  Prefactor  = 29.6897
  Normalizat = 0.945475
  Prefactor  = 0.972299
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.050     FROM HESSE     STATUS=OK           563 CALLS     4818 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4639        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5783        331.72        .13649E-03   -1.5122    
   5  Prefactor     .10000E-03    5.4922        .16871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.186        30.729        .99513E-04   -1.4903    
   7  Prefactor     .10000E-03    3.1859        .12831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42170        27.420        .10362       -1.5578    
   9  Prefactor     13.930        15.365        .10728E-03   -1.4961    
  10  Prefactor     90.321        136.89        .21175E-03   -1.3804    
  11  Prefactor     .10000E-03    13.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     73.758        33.177        .46747E-04   -1.3988    
  14  Prefactor     .10000E-03    10.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8999        17.224        .12717E-03   -1.5079    
  16  norm          .59891        2.0778        .16114E-03   -1.5553    
  17  norm          8.3280        4.8132        .11173E-03   -1.5131    
  18  Prefactor     .10000E-03    12.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    53.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0486        .54431        .35740E-04   -1.5503    
  22  Prefactor     29.363        19.707        .73946E-04   -1.4624    
  23  Prefactor     .10000E-03    177.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5568        .15336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5364        1.8315        .68024E-04   -1.5332    
  26  Prefactor     6.5167        6.7383        .78601E-03   -1.5197    
  27  Prefactor     29.690        39.577        .73560E-04   -1.4618    
  28  Normalizat    .94548        .29128        .31173E-03   -.94880    
  29  Prefactor     .97230        .21444        .24445E-03   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83303e-10
Minuit parameter uncertainties:
  1  5.16744e-05
  2  2.40537e-05
  3  1.79284e-05
  4  107.334
  5  1.00476e-05
  6  30.7588
  7  1.20795e-05
  8  6.80329
  9  15.3698
  10  137.372
  11  1.41454e-06
  12  5.62685e-05
  13  33.1857
  14  1.03276e-05
  15  17.2324
  16  2.078
  17  4.81343
  18  1.96152e-05
  19  1.13672e-05
  20  2.75092e-05
  21  0.544317
  22  19.7111
  23  0.000962714
  24  1.20765e-05
  25  1.8315
  26  6.73912
  27  39.6124
  28  0.291772
  29  0.214628
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  5.627e-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:  9.723e-01  2.146e-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:  9.455e-01  2.918e-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: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310554/likelihoodResults_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.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) = 5440.04990113
delta logL = -0.000273877478321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5440.0496279
delta logL = -6.43976818537e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5054       1.0000          .0000       10.000    
     3 'Normalizat'    .94546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97231       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=   5440.050     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    151.34        .18142E-02** at limit **
   2  Index         3.4486        8.0158        .50000        .69499E-05
   3  Normalizat    .94547        .18225E-01    .31174E-03    .19110E-04
   4  Prefactor     .97230        .14565E-01    .24445E-03    .95805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100974
  Index      = 3.44856
  Normalizat = 0.945474
  Prefactor  = 0.9723
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    669.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4486        5.9116        .50000       -.31550    
   3  Normalizat    .94547        .40319E-01    .12469E-04   -.94880    
   4  Prefactor     .97230        .32221E-01    .97779E-05   -.93659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40094e-08
Minuit parameter uncertainties:
  1  0.0516519
  2  1252.59
  3  0.0403207
  4  0.0322216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310554': 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) = 5440.0496278
delta logL = -5.43169335288e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.010e-04  5.165e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.449e+00  1.253e+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:  9.723e-01  3.222e-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:  9.455e-01  4.032e-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/310554/cmap_HighResolution_539481601_539740801_4FGL_J1204.8+0407_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-04 23:31:13.874633', job_id='310554', GAL2='0.97', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630823473.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1158' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 310554: <4FGL_J1204.8+0407_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1158 181.203 4.12 539481601 539740801 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 :                                   817.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

