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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1405
RA = 181.203, Dec = 4.12
tmin = 603504001, tmax = 603763201
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='311971', job_status='RUN', time_executed='2021-09-04 23:22:37.723182', time_epoch_executed='1630822957.72' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311971/ft1_4FGL_J1204.8+0407_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311971/ft2_4FGL_J1204.8+0407_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311971/ft1_4FGL_J1204.8+0407_daily_bin1405.fits outfile=/scratch/kocevski/311971/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1405.fits ra=181.203 dec=4.12 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.85
user 2.49
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311971/ft1_filtered_4FGL_J1204.8+0407_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/311971/ft2_4FGL_J1204.8+0407_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/311971/ltcube_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.fits outfile=/scratch/kocevski/311971/expmap_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.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/311971/ltcube_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.fits
.....................!
real 190.41
user 185.04
sys 4.94

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311971/ft1_filtered_4FGL_J1204.8+0407_daily_bin1405.fits scfile=/scratch/kocevski/311971/ft2_4FGL_J1204.8+0407_daily_bin1405.fits outfile=/scratch/kocevski/311971/cmap_HighResolution_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.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/311971/ft1_filtered_4FGL_J1204.8+0407_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/311971/ft2_4FGL_J1204.8+0407_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311971/Model_4FGL_J1204.8+0407_daily_bin1405.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/311971/ft1_filtered_4FGL_J1204.8+0407_daily_bin1405.fits.....................!
real 36.37
user 34.96
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    364.77       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .83209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9967       1.0000         .10000E-03   10000.    
    17 'norm      '    4.6301       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.863       1.0000         .10000E-03   10000.    
    19 'norm      '    36.877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    298.42       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3278       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.647       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0161       1.0000         .10000E-03   10000.    
    26 'Prefactor '    23.531       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .18676       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3630       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=   3345.402     FROM MIGRAD    STATUS=CONVERGED   1275 CALLS     4805 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5160        3.8440        .13495E-03   -.12144E-03
   2  Prefactor     .10000E-03    16.975        .18142E-02** at limit **
   3  Prefactor     .10000E-03    18.693        .18142E-02** at limit **
   4  Prefactor     364.79        310.35        .10668E-03   -.83335E-05
   5  Prefactor     .10000E-03    18.204        .18142E-02** at limit **
   6  Prefactor     .10000E-03    38.129        .18142E-02** at limit **
   7  Prefactor     9.9050        13.509        .12733E-03   -.25312E-04
   8  Prefactor     54.221        59.323        .54477E-04   -.30030E-04
   9  Prefactor     13.321        23.694        .10975E-03   -.35115E-04
  10  Prefactor     .10000E-03    286.40        .18142E-02** at limit **
  11  Prefactor     .83202        468.36        .65953E-02    .21120E-04
  12  Prefactor     14.823        57.670        .10404E-03   -.61740E-05
  13  Prefactor     34.978        29.869        .67761E-04   -.57044E-05
  14  Prefactor     .10000E-03    27.948        .18142E-02** at limit **
  15  Prefactor     .10000E-03    10.519        .18142E-02** at limit **
  16  norm          2.9966        2.4704        .79248E-04   -.31489E-04
  17  norm          4.6304        5.2810        .11499E-03   -.55462E-04
  18  Prefactor     14.866        37.862        .10389E-03   -.42677E-05
  19  norm          36.877        74.728        .65997E-04   -.65459E-05
  20  Prefactor     298.42        222.16        .11754E-03   -.26695E-05
  21  norm          1.3278        .77308        .33432E-04   -.20948E-03
  22  Prefactor     .10000E-03    9.4652        .17369E-02** at limit **
  23  Prefactor     57.653        64.468        .52838E-04   -.18741E-04
  24  Prefactor     .10000E-03    4.7694        .12318E-02** at limit **
  25  norm          4.0164        2.4042        .64061E-04   -.13896E-03
  26  Prefactor     23.533        14.915        .82575E-04   -.25539E-04
  27  Prefactor     .10000E-03    19.072        .18142E-02** at limit **
  28  Normalizat    .18679        .41212        .68282E-03   -.29911E-04
  29  Prefactor     1.3629        .29898        .21276E-03    .17794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 364.788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.90496
  Prefactor  = 54.2208
  Prefactor  = 13.3208
  Prefactor  = 0.000100001
  Prefactor  = 0.832018
  Prefactor  = 14.8232
  Prefactor  = 34.9783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99664
  norm       = 4.63038
  Prefactor  = 14.8657
  norm       = 36.8773
  Prefactor  = 298.42
  norm       = 1.32782
  Prefactor  = 0.0001
  Prefactor  = 57.6525
  Prefactor  = 0.0001
  norm       = 4.01636
  Prefactor  = 23.5328
  Prefactor  = 0.0001
  Normalizat = 0.18679
  Prefactor  = 1.36294
 **********
 **   18 **HESSE 
 **********

 FCN=   3345.402     FROM HESSE     STATUS=OK           525 CALLS     5330 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5160        3.8437        .53980E-05   -1.5391    
   2  Prefactor     .10000E-03    16.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     364.79        310.23        .21336E-04   -1.1864    
   5  Prefactor     .10000E-03    18.204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9050        13.508        .50932E-05   -1.5078    
   8  Prefactor     54.221        59.298        .10895E-04   -1.4234    
   9  Prefactor     13.321        23.379        .43902E-05   -1.4978    
  10  Prefactor     .10000E-03    286.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .83202        462.30        .26381E-03   -1.5526    
  12  Prefactor     14.823        57.694        .41615E-05   -1.4938    
  13  Prefactor     34.978        29.866        .27104E-05   -1.4524    
  14  Prefactor     .10000E-03    27.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9966        2.4702        .31699E-05   -1.5362    
  17  norm          4.6304        5.2803        .45997E-05   -1.5278    
  18  Prefactor     14.866        37.868        .41556E-05   -1.4937    
  19  norm          36.877        74.749        .26399E-05   -1.4493    
  20  Prefactor     298.42        222.16        .23509E-04   -1.2236    
  21  norm          1.3278        .77292        .13373E-05   -1.5478    
  22  Prefactor     .10000E-03    9.4653        .34737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     57.653        64.462        .10568E-04   -1.4188    
  24  Prefactor     .10000E-03    4.7696        .24636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0164        2.4039        .25624E-05   -1.5307    
  26  Prefactor     23.533        14.912        .33030E-05   -1.4737    
  27  Prefactor     .10000E-03    19.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .18679        .40950        .27313E-04   -1.3039    
  29  Prefactor     1.3629        .29670        .85102E-05   -.81454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23786e-10
Minuit parameter uncertainties:
  1  3.84405
  2  2.68938e-06
  3  1.3212e-05
  4  311.665
  5  3.45337e-05
  6  3.09055e-05
  7  13.5126
  8  59.3625
  9  23.3954
  10  0.000931581
  11  39.5326
  12  57.9122
  13  29.8784
  14  6.93047e-06
  15  1.54088e-05
  16  2.47029
  17  5.28078
  18  37.9297
  19  74.9398
  20  222.794
  21  0.772923
  22  2.51449e-05
  23  64.5406
  24  5.33532e-06
  25  2.40399
  26  14.9145
  27  1.70529e-05
  28  0.416404
  29  0.297076
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.482e+01  5.791e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.363e+00  2.971e-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.868e-01  4.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311971/likelihoodResults_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.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) = 3345.20285729
delta logL = 0.19901917305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3345.20252844
delta logL = 0.199348014444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.981       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8606       1.0000          .0000       10.000    
     3 'Normalizat'    .19985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3489       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.

 FCN=   3345.203     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      243 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.251        105.80        .16703E-02    .21393E-04
   2  Index         1.8653        1.1771        .26659       -.24547E-05
   3  Normalizat    .19935        .57458        .15125       -.52239E-04
   4  Prefactor     1.3492        .47899        .48296E-01   -.32299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.2509
  Index      = 1.86526
  Normalizat = 0.199352
  Prefactor  = 1.3492
 **********
 **   18 **HESSE 
 **********

 FCN=   3345.203     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.251        64.182        .66811E-04   -1.4503    
   2  Index         1.8653        .87547        .10160E-01   -.67763    
   3  Normalizat    .19935        .34908        .66219E-03   -1.2946    
   4  Prefactor     1.3492        .28245        .21348E-03   -.81856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78719e-10
Minuit parameter uncertainties:
  1  64.3042
  2  0.883013
  3  0.353017
  4  0.282768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311971': 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) = 3345.20250899
delta logL = 0.199367472418

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.625e+01  6.430e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.865e+00  8.830e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.349e+00  2.828e-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.994e-01  3.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/311971/cmap_HighResolution_603504001_603763201_4FGL_J1204.8+0407_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', job_status='DONE', photon_flux_upper_limit='1.98e-07', time_completed='2021-09-04 23:33:37.482494', job_id='311971', GAL2='1.35', fit_tolerance='1e-08', EG2='0.20', EG='0.19', time_epoch_completed='1630823617.48', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.99e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1405' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 311971: <4FGL_J1204.8+0407_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1405> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:40 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:20:41 2021
Terminated at Sat Sep  4 23:33:38 2021
Results reported at Sat Sep  4 23:33:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1405 181.203 4.12 603504001 603763201 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

