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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1771
RA = 181.203, Dec = 4.12
tmin = 698371201, tmax = 698630401
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='546350', job_status='RUN', time_executed='2023-02-21 00:48:35.383508', time_epoch_executed='1676969315.38' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546350/ft1_4FGL_J1204.8+0407_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546350/ft1_4FGL_J1204.8+0407_daily_bin1771.fits outfile=/scratch/kocevski/546350/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1771.fits ra=181.203 dec=4.12 rad=12.0 tmin=698371201.0 tmax=698630401.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.09
user 2.84
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.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/546350/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/546350/ft1_filtered_4FGL_J1204.8+0407_daily_bin1771.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 101

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546350/ft1_filtered_4FGL_J1204.8+0407_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/546350/ltcube_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.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/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits
.....................!
real 12.48
user 12.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546350/ft1_filtered_4FGL_J1204.8+0407_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/546350/ltcube_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.fits outfile=/scratch/kocevski/546350/expmap_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.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/546350/ltcube_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.fits
.....................!
real 189.77
user 185.28
sys 3.95

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/546350/ft1_filtered_4FGL_J1204.8+0407_daily_bin1771.fits scfile=/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits outfile=/scratch/kocevski/546350/cmap_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.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.84
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546350/ft1_filtered_4FGL_J1204.8+0407_daily_bin1771.fits scfile=/scratch/kocevski/546350/ft2_4FGL_J1204.8+0407_daily_bin1771.fits outfile=/scratch/kocevski/546350/cmap_HighResolution_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34942E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    61.338       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3547       1.0000          .0000       .10000E+07
     4 'Prefactor '    31.384       1.0000          .0000       .10000E+07
     5 'Prefactor '    .58963E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15921E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .85649E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .23053       1.0000          .0000       .10000E+07
     9 'Prefactor '    83.212       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9285       1.0000          .0000       .10000E+07
    11 'Prefactor '    .61430E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20133E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    19.670       1.0000          .0000       .10000E+07
    14 'norm      '    .61253       1.0000          .0000       .10000E+07
    15 'norm      '    .34194E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    73.456       1.0000          .0000       .10000E+07
    17 'norm      '    46.521       1.0000          .0000       .10000E+07
    18 'norm      '    .22501E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    88.396       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.2401       1.0000          .0000       .10000E+07
    21 'norm      '    1.6751       1.0000          .0000       .10000E+07
    22 'Prefactor '    7.3979       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.7671       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .25626       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=   1184.055     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2033 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    87.866       -.16744E-06** at limit **
   2  Prefactor     60.299        21.543        .19933E-06    .31054E-01
   3  Prefactor     .10740E-03    708.95        .36741E-05** at limit **
   4  Prefactor     31.834        38.459        .14819E-06    .65555E-01
   5  Prefactor     .43077E-07    16.968        .25025E-07** at limit **
   6  Prefactor      .0000        30.094       -.82453E-07** at limit **
   7  Prefactor     .53846E-08    16.097       -.12231E-06** at limit **
   8  Prefactor     .35693E-05    124.49       -.40415E-06** at limit **
   9  Prefactor     86.022        31.385       -.10235E-06    .22817    
  10  Prefactor     .18145E-03    424.54       -.26930E-05** at limit **
  11  Prefactor     .11102E-09    27.466        .43613E-06** at limit **
  12  Prefactor     .55511E-10    52.784       -.14616E-06** at limit **
  13  Prefactor     19.708        26.042       -.18902E-06   -.46521E-01
  14  norm          .68226        24.507        .23063E-06    .77552E-02
  15  norm          .27756E-09    8.8615       -.22127E-06** at limit **
  16  Prefactor     70.852        53.648        .44869E-06    .17046    
  17  norm          47.841        19.218       -.14870E-06    .91485E-01
  18  norm           .0000        1.1658        .46259E-07** at limit **
  19  Prefactor     88.352        11.203       -.67912E-07    .10650    
  20  Prefactor     4.1089        7.9247       -.13991E-06   -.16392E-01
  21  norm          1.6709        3.2613        .52259E-08    .10496E-02
  22  Prefactor     7.3021        15.201       -.13730E-06    .10333E-01
  23  Normalizat    1.7770        .57422        .49398E-05    .96409E-04
  24  Prefactor     .25030        .39362        .25035E-06    .48135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 60.2987
  Prefactor  = 0.000107395
  Prefactor  = 31.8339
  Prefactor  = 4.30767e-08
  Prefactor  = 0
  Prefactor  = 5.38458e-09
  Prefactor  = 3.56931e-06
  Prefactor  = 86.0218
  Prefactor  = 0.000181455
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 19.7081
  norm       = 0.682255
  norm       = 2.77556e-10
  Prefactor  = 70.8524
  norm       = 47.8415
  norm       = 0
  Prefactor  = 88.3524
  Prefactor  = 4.10891
  norm       = 1.6709
  Prefactor  = 7.30205
  Normalizat = 1.77696
  Prefactor  = 0.250301
 **********
 **   18 **HESSE 
 **********

 FCN=   1184.055     FROM HESSE     STATUS=OK           447 CALLS     2480 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    13.683        .77090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.299        102.29        .12769E-03   -1.5553    
   3  Prefactor     .10740E-03    1160.4        .66766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.834        39.678        .17853E-03   -1.5595    
   5  Prefactor     .43077E-07    17.048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        30.083        .17321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .53846E-08    16.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .35693E-05    128.24        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.022        82.131        .10963E-03   -1.5522    
  10  Prefactor     .18145E-03    445.33        .59334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11102E-09    27.561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    53.035        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.708        29.060        .22555E-03   -1.5619    
  14  norm          .68226        31.107        .68113E-03   -1.5691    
  15  norm          .27756E-09    8.8510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.852        111.68        .11668E-03   -1.5540    
  17  norm          47.841        83.436        .14663E-03   -1.5570    
  18  norm           .0000        1.1472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     88.352        46.770        .10637E-03   -1.5520    
  20  Prefactor     4.1089        28.500        .48910E-03   -1.5667    
  21  norm          1.6709        3.3107        .81392E-03   -1.5682    
  22  Prefactor     7.3021        17.617        .36851E-03   -1.5654    
  23  Normalizat    1.7770        .56690        .55426E-01   -.70267    
  24  Prefactor     .25030        .40913        .94024E-01   -1.2530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2344e-05
Minuit parameter uncertainties:
  1  0.000104082
  2  102.298
  3  0.706161
  4  39.6785
  5  0.00171369
  6  3.17362e-05
  7  0.000588871
  8  0.0427903
  9  82.1318
  10  0.568573
  11  0.000101696
  12  0.00012969
  13  29.0603
  14  9.21365
  15  9.64104e-05
  16  111.684
  17  83.4376
  18  5.28968e-06
  19  46.7706
  20  21.643
  21  3.31069
  22  17.6168
  23  0.569008
  24  0.413963
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.815e-04  5.686e-01  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:  2.503e-01  4.140e-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.777e+00  5.690e-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: 4.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546350/likelihoodResults_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.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) = 1184.05607717
delta logL = -0.00108246640457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1184.03623195
delta logL = 0.0187627442911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.182       1.0000          .0000       .10000E+07
     2 'Index     '    3.5653       1.0000          .0000       10.000    
     3 'Normalizat'    1.7284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27021       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=   1184.036     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      409 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.176        161.50        .11974E-04    .27819E-03
   2  Index         3.5674        3.1849        .10743E-01    .15289E-04
   3  Normalizat    1.7283        .60070        .24786E-03   -.53602E-04
   4  Prefactor     .27014        .39223        .40189E-03    .48464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1764
  Index      = 3.56736
  Normalizat = 1.72831
  Prefactor  = 0.270138
 **********
 **   18 **HESSE 
 **********

 FCN=   1184.036     FROM HESSE     STATUS=OK            25 CALLS      434 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.176        122.37        .47895E-06   -1.5641    
   2  Index         3.5674        2.8281        .42973E-03   -.29060    
   3  Normalizat    1.7283        .60105        .49573E-04   -.71550    
   4  Prefactor     .27014        .39244        .16076E-04   -1.2406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03644e-10
Minuit parameter uncertainties:
  1  73.9661
  2  3.02526
  3  0.603624
  4  0.396381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546350': 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): 0
logL (Free Index) = 1184.03623153
delta logL = 0.0187631691063

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.118e+01  7.397e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  3.567e+00  3.025e+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:  2.701e-01  3.964e-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.728e+00  6.036e-01  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/546350/cmap_HighResolution_698371201_698630401_4FGL_J1204.8+0407_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-02', job_status='DONE', photon_flux_upper_limit='4.75e-07', time_completed='2023-02-21 00:54:51.562674', job_id='546350', GAL2='0.27', fit_tolerance='1e-08', EG2='1.73', EG='1.78', time_epoch_completed='1676969691.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.25', dlogl='1.88e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1771' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:54:51 PST 2023


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

Job <4FGL_J1204.8+0407_daily_bin1771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 00:45:18 2023
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:45:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:45:19 2023
Terminated at Tue Feb 21 00:54:51 2023
Results reported at Tue Feb 21 00:54:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1771 181.203 4.12 698371201 698630401 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 :                                   377.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             235.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            573 sec.

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

