/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 195 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1776
RA = 181.203, Dec = 4.12
tmin = 699667201, tmax = 699926401
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='832503', job_status='RUN', time_executed='2023-03-08 00:38:47.430067', time_epoch_executed='1678264727.43' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832503/ft1_4FGL_J1204.8+0407_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits


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

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

Done.
real 4.02
user 3.78
sys 0.20

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

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

Number of photons that the gtmktime cut: 522

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/832503/ltcube_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.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/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/832503/ltcube_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits outfile=/scratch/kocevski/832503/expmap_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.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/832503/ltcube_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits
.....................!
real 190.40
user 185.81
sys 4.12

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/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits scfile=/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits outfile=/scratch/kocevski/832503/cmap_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits scfile=/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits outfile=/scratch/kocevski/832503/cmap_HighResolution_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.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.56
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits', '/scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits', expMap='/scratch/kocevski/832503/expmap_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits', expCube='/scratch/kocevski/832503/ltcube_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832503/Model_4FGL_J1204.8+0407_daily_bin1776.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  0.000e+00  1.000e+06 ( 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/832503/ft1_filtered_4FGL_J1204.8+0407_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/832503/ft2_4FGL_J1204.8+0407_daily_bin1776.fits
Exposure map: /scratch/kocevski/832503/expmap_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits
Exposure cube: /scratch/kocevski/832503/ltcube_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832503/Model_4FGL_J1204.8+0407_daily_bin1776.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) = 5904.39631514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3645       1.0000          .0000       .10000E+07
     2 'Prefactor '    20.687       1.0000          .0000       .10000E+07
     3 'Prefactor '    99.276       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38004E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12188E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .25003E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9228       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14045E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    31.690       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23056E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.157       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13910E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .19061E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.6840       1.0000          .0000       .10000E+07
    15 'norm      '    1.7573       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14874E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .38378E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.1603       1.0000          .0000       .10000E+07
    19 'Prefactor '    15.138       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.070       1.0000          .0000       .10000E+07
    21 'norm      '    1.9100       1.0000          .0000       .10000E+07
    22 'Prefactor '    .41797       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1141       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92698       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5904.396     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2028 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3652        2.7252       -.14715E-06   -.26135E-02
   2  Prefactor     20.702        2.2954       -.40748E-06    .28748E-01
   3  Prefactor     99.218        2.4832       -.21013E-06    .14209    
   4  Prefactor     .11102E-09    4.8180       -.70029E-06** at limit **
   5  Prefactor     .11102E-09    3.0643       -.29329E-05** at limit **
   6  Prefactor     .32063E-06    10.146       -.13810E-05** at limit **
   7  Prefactor     4.9431        1.8062       -.24712E-06   -.46144E-02
   8  Prefactor     .17819E-07    28.348       -.82266E-05** at limit **
   9  Prefactor     31.650        1.5252       -.19055E-06    .14698E-01
  10  Prefactor     .82268E-07    23.927        .36179E-05** at limit **
  11  Prefactor     18.160        1.4960       -.19259E-06   -.12988E-01
  12  Prefactor     .16798E-06    4.2130        .14247E-05** at limit **
  13  Prefactor     .33307E-09    4.2815       -.62337E-06** at limit **
  14  norm          1.6839        1.7380       -.59436E-06    .66897E-02
  15  norm          1.7597        3.0425        .16649E-05    .44781E-02
  16  Prefactor     .14555E-06    4.1727        .13971E-05** at limit **
  17  norm          .16647E-05    3.1292       -.63492E-06** at limit **
  18  norm          1.1612        .57037       -.99312E-07    .18006E-02
  19  Prefactor     15.131        1.4421       -.83156E-08    .50487E-01
  20  Prefactor     11.059        8.5550        .13460E-05    .90549E-02
  21  norm          1.9111        1.5813        .55733E-06   -.21333E-02
  22  Prefactor     .37245        .85502        .73581E-06    .90560E-02
  23  Normalizat    1.1136        .24153        .29309E-04    .50669E-04
  24  Prefactor     .92742        .19471       -.21057E-04   -.14454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36519
  Prefactor  = 20.7021
  Prefactor  = 99.2176
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 3.20632e-07
  Prefactor  = 4.94312
  Prefactor  = 1.78191e-08
  Prefactor  = 31.6497
  Prefactor  = 8.22675e-08
  Prefactor  = 18.1597
  Prefactor  = 1.67977e-07
  Prefactor  = 3.33067e-10
  norm       = 1.68393
  norm       = 1.7597
  Prefactor  = 1.4555e-07
  norm       = 1.66467e-06
  norm       = 1.16118
  Prefactor  = 15.1311
  Prefactor  = 11.0593
  norm       = 1.91106
  Prefactor  = 0.372449
  Normalizat = 1.11359
  Prefactor  = 0.927423
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.396     FROM HESSE     STATUS=OK           449 CALLS     2477 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3652        2.7308        .43366E-03   -1.5662    
   2  Prefactor     20.702        33.388        .21993E-03   -1.5617    
   3  Prefactor     99.218        117.57        .10037E-03   -1.5509    
   4  Prefactor     .11102E-09    4.8347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    3.0586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32063E-06    11.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9431        15.949        .45307E-03   -1.5663    
   8  Prefactor     .17819E-07    28.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.650        30.908        .17767E-03   -1.5595    
  10  Prefactor     .82268E-07    24.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.160        20.067        .23477E-03   -1.5623    
  12  Prefactor     .16798E-06    9.7428        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    4.2913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6839        1.7375        .81125E-03   -1.5682    
  15  norm          1.7597        3.0773        .79029E-03   -1.5681    
  16  Prefactor     .14555E-06    9.7438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16647E-05    10.159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1612        .58310        .83953E-03   -1.5686    
  19  Prefactor     15.131        10.379        .25717E-03   -1.5630    
  20  Prefactor     11.059        8.7579        .30087E-03   -1.5641    
  21  norm          1.9111        1.5976        .75194E-03   -1.5680    
  22  Prefactor     .37245        4.2316        .87433E-02   -1.5696    
  23  Normalizat    1.1136        .21108        .62023E-01   -.89317    
  24  Prefactor     .92742        .16613        .45348E-01   -.95189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16502e-06
Minuit parameter uncertainties:
  1  2.73083
  2  33.3878
  3  117.576
  4  4.18311e-05
  5  3.7297e-05
  6  0.00386294
  7  15.9487
  8  0.00143771
  9  30.9086
  10  0.00284797
  11  20.0666
  12  0.00255855
  13  7.25797e-05
  14  1.73752
  15  3.07735
  16  0.00238163
  17  0.00822454
  18  0.583103
  19  10.3792
  20  8.75788
  21  1.59761
  22  2.51081
  23  0.211243
  24  0.166218
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.227e-08  2.848e-03  0.000e+00  1.000e+06 ( 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.274e-01  1.662e-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.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/832503/likelihoodResults_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.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): 0
logL (Free Index) = 5904.41528978
delta logL = -0.0194967594762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5904.39579305
delta logL = -3.00678948406e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61079E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.3024       1.0000          .0000       10.000    
     3 'Normalizat'    1.1136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92742       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5904.396     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      214 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.0006        .42118E-03** at limit **
   2  Index         3.6611        1.5414        .18081E-03     .0000    
   3  Normalizat    1.1136        1.1462       -.45014E-05    .10681E-04
   4  Prefactor     .92742        1.2709        .57649E-05    .12148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.66105
  Normalizat = 1.11359
  Prefactor  = 0.927423
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5904.396     FROM HESSE     STATUS=FAILED         9 CALLS      223 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.0006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4797        2.2517        .18081E-03   -.27110    
   3  Normalizat    1.1136        1.1462       -.45014E-05   -.89317    
   4  Prefactor     .92742        1.2709        .57649E-05   -.95189    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.13122e-13
Minuit parameter uncertainties:
  1  1.98712e-06
  2  1.56896
  3  1.1735
  4  1.31558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832503': 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): 101
logL (Free Index) = 5904.39579302
delta logL = 1.67892721947e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  1.987e-06  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  3.661e+00  1.569e+00  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.274e-01  1.316e+00  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  1.174e+00  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/832503/cmap_HighResolution_699667201_699926401_4FGL_J1204.8+0407_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2023-03-08 00:49:04.958945', job_id='832503', GAL2='0.93', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1678265344.96', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.68e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1776' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:49:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 832503: <4FGL_J1204.8+0407_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1776> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Mar  8 00:35:23 2023
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:35:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:35:24 2023
Terminated at Wed Mar  8 00:49:05 2023
Results reported at Wed Mar  8 00:49:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1776 181.203 4.12 699667201 699926401 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

