/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 1 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_J0904.6+5200_daily_bin1158
RA = 136.154, Dec = 52.0096
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='984804', job_status='RUN', time_executed='2021-08-30 23:31:09.876881', time_epoch_executed='1630391469.88' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984804

Creating custom pfile directory:
/scratch/kocevski/984804/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/984804/ft1_4FGL_J0904.6+5200_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/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984804/ft1_4FGL_J0904.6+5200_daily_bin1158.fits outfile=/scratch/kocevski/984804/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1158.fits ra=136.154 dec=52.0096 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 7.17
user 4.89
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_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/984804/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_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 1.82
user 0.34
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/984804/ltcube_539481601_539740801_4FGL_J0904.6+5200_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/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits
.....................!
real 13.23
user 11.78
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/984804/ltcube_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits outfile=/scratch/kocevski/984804/expmap_539481601_539740801_4FGL_J0904.6+5200_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/984804/ltcube_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits
.....................!
real 191.83
user 185.35
sys 5.56

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 226 point sources and 0 extended sources

Setting source of interest to:
4FGL J0904.6+5200 @ 136.154 52.0096

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits outfile=/scratch/kocevski/984804/cmap_539481601_539740801_4FGL_J0904.6+5200_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=136.154 yref=52.0096 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 1.33
user 0.37
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits outfile=/scratch/kocevski/984804/cmap_HighResolution_539481601_539740801_4FGL_J0904.6+5200_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=136.154 yref=52.0096 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 1.11
user 0.37
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984804/Model_4FGL_J0904.6+5200_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/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits.....................!
real 37.48
user 34.46
sys 1.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits', '/scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits', expMap='/scratch/kocevski/984804/expmap_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits', expCube='/scratch/kocevski/984804/ltcube_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984804/Model_4FGL_J0904.6+5200_daily_bin1158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.6+5200'

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.897e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.565e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/984804/ft1_filtered_4FGL_J0904.6+5200_daily_bin1158.fits
Spacecraft file(s): /scratch/kocevski/984804/ft2_4FGL_J0904.6+5200_daily_bin1158.fits
Exposure map: /scratch/kocevski/984804/expmap_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits
Exposure cube: /scratch/kocevski/984804/ltcube_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984804/Model_4FGL_J0904.6+5200_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) = 3090.65977116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3787       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12196E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7129       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3798       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2640       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2193       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.517       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7096       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    124.87       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.651       1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    151.99       1.0000         .10000E-03   10000.    
    32 'norm      '    1.5260       1.0000         .10000E-03   10000.    
    33 'norm      '    11.513       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.6732       1.0000         .10000E-03   10000.    
    35 'norm      '    8.9434       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    .12978       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.4364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3090.268     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     5804 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6199        4.2705       -.49222E-05   -.50082E-02
   2  Prefactor     .10041E-03    6.6920        .98630E-05** at limit **
   3  Prefactor     .10005E-03    65.805        .11327E-05** at limit **
   4  norm          9.3788        1.0407       -.14222E-06   -.60508E-04
   5  norm          .10000E-03    1.5774        .64639E-08** at limit **
   6  Prefactor     .10000E-03    4.4973        .76542E-06** at limit **
   7  Prefactor     11.164        1.0067       -.21983E-07    .92061E-04
   8  Prefactor     .10041E-03    16.752       -.13645E-04** at limit **
   9  Prefactor     2.8087        1.0201        .14247E-06   -.47863E-04
  10  Prefactor     .13837E-03    21.030        .28018E-05** at limit **
  11  norm          .10031E-03    6.4723       -.52683E-05** at limit **
  12  norm          .10000E-03    6.7246        .72704E-05** at limit **
  13  Prefactor     .10001E-03    7.6390        .87361E-05** at limit **
  14  Prefactor     6.7129        1.0039        .82049E-08    .52427E-04
  15  Prefactor     8.3808        1.0245        .76706E-07   -.11481E-04
  16  Prefactor     24.776        1.0734       -.50771E-07   -.53706E-04
  17  Prefactor     .11152E-03    241.66       -.27905E-04** at limit **
  18  Prefactor     .10000E-03    3.1833       -.72332E-05** at limit **
  19  norm          3.2648        1.1137        .99474E-07   -.96012E-04
  20  norm          3.2194        1.7125       -.68876E-08   -.88072E-04
  21  Prefactor     .10006E-03    6.0493        .22615E-05** at limit **
  22  Prefactor     .10000E-03    3.9513        .10872E-05** at limit **
  23  Prefactor     26.519        1.0189       -.21043E-07    .28282E-03
  24  Prefactor     2.7099        1.0668       -.62248E-06    .65037E-04
  25  Prefactor     .10018E-03    9.5573       -.94838E-06** at limit **
  26  Prefactor     .10000E-03    3.2193       -.72444E-05** at limit **
  27  Prefactor     124.87        1.0985        .63853E-07   -.84084E-03
  28  Prefactor     .10000E-03    7.2997        .17851E-06** at limit **
  29  Prefactor     24.651        1.0013       -.21305E-07    .24840E-03
  30  norm          .10009E-03    14.180        .16332E-05** at limit **
  31  Prefactor     151.99        1.0442        .39308E-07   -.66494E-03
  32  norm          1.5260        .95179       -.12221E-06    .79253E-04
  33  norm          11.515        1.0066        .21855E-07    .21603E-03
  34  Prefactor     6.6742        1.0191        .17143E-06    .33424E-03
  35  norm          8.9442        3.9367        .35146E-05    .82749E-02
  36  Prefactor     .10000E-03    6.1896        .60930E-05** at limit **
  37  Normalizat    .12967        .27302       -.28072E-05    .87952E-05
  38  Prefactor     1.4364        .26974        .58951E-05    .35935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.61988
  Prefactor  = 0.000100415
  Prefactor  = 0.000100053
  norm       = 9.37875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1637
  Prefactor  = 0.000100413
  Prefactor  = 2.80869
  Prefactor  = 0.000138368
  norm       = 0.000100308
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 6.71291
  Prefactor  = 8.38082
  Prefactor  = 24.7757
  Prefactor  = 0.000111521
  Prefactor  = 0.000100002
  norm       = 3.26478
  norm       = 3.21944
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 26.5195
  Prefactor  = 2.70989
  Prefactor  = 0.000100178
  Prefactor  = 0.000100002
  Prefactor  = 124.872
  Prefactor  = 0.0001
  Prefactor  = 24.6514
  norm       = 0.000100093
  Prefactor  = 151.991
  norm       = 1.52602
  norm       = 11.5154
  Prefactor  = 6.67424
  norm       = 8.94423
  Prefactor  = 0.000100003
  Normalizat = 0.129671
  Prefactor  = 1.43641
 **********
 **   18 **HESSE 
 **********

 FCN=   3090.268     FROM HESSE     STATUS=NOT POSDEF  1002 CALLS     6806 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6199        4.6019        .38991E-02   -1.5193    
   2  Prefactor     .10041E-03    20.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    62.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3788        8.2487        .32716E-02   -1.5095    
   5  norm          .10000E-03    1.4595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.164        13.178        .29976E-02   -1.5040    
   8  Prefactor     .10041E-03    25.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8087        91.388        .60697E-02   -1.5373    
  10  Prefactor     .13837E-03    20.360        .74853E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10031E-03    16.287        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.5794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    8.3493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7129        11.053        .38718E-02   -1.5190    
  15  Prefactor     8.3808        13.540        .34621E-02   -1.5129    
  16  Prefactor     24.776        66.884        .20118E-02   -1.4712    
  17  Prefactor     .11152E-03    255.32        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7042        .37166E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2648        1.3306        .56039E-02   -1.5347    
  20  norm          3.2194        1.9130        .56446E-02   -1.5349    
  21  Prefactor     .10006E-03    7.5480        .64668E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6215        .32719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.519        25.092        .19449E-02   -1.4678    
  24  Prefactor     2.7099        8.7607        .61861E-02   -1.5379    
  25  Prefactor     .10018E-03    23.480        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.9528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     124.87        112.10        .90054E-03   -1.3468    
  28  Prefactor     .10000E-03    6.8078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.651        25.990        .20170E-02   -1.4715    
  30  norm          .10009E-03    14.420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     151.99        218.25        .81738E-03   -1.3236    
  32  norm          1.5260        .96461        .86419E-02   -1.5461    
  33  norm          11.515        25.086        .29516E-02   -1.5029    
  34  Prefactor     6.6742        18.487        .38834E-02   -1.5191    
  35  norm          8.9442        5.0474        .33506E-02   -1.5110    
  36  Prefactor     .10000E-03    18.665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .12967        7.2797        .15747       -1.3515    
  38  Prefactor     1.4364        1.2579        .48281E-01   -.79337    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12894e-07
Minuit parameter uncertainties:
  1  4.60218
  2  0.00582167
  3  0.00362681
  4  8.24973
  5  4.60569e-06
  6  4.41514e-07
  7  13.1813
  8  0.00648617
  9  32.0954
  10  0.0559183
  11  0.00448384
  12  2.4243e-05
  13  0.00049646
  14  11.0567
  15  13.5445
  16  67.0879
  17  0.108938
  18  0.000238442
  19  1.33063
  20  1.91308
  21  0.00131983
  22  1.55834e-06
  23  25.1024
  24  8.76486
  25  0.0040918
  26  0.000224954
  27  112.291
  28  2.91406e-05
  29  26.0019
  30  0.00231427
  31  219.423
  32  0.964622
  33  25.1087
  34  18.5033
  35  5.0476
  36  0.000450886
  37  1.87895
  38  1.28661
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3090.26768654

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  2.478e+01  6.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.565e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  1.436e+00  1.287e+00  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  1.297e-01  1.879e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 136.154 52.010
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984804/likelihoodResults_539481601_539740801_4FGL_J0904.6+5200_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): 0
logL (Free Index) = 3090.05278331
delta logL = 0.214903228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3090.02896112
delta logL = 0.238725418541

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2252       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5691       1.0000          .0000       10.000    
     3 'Normalizat'    .88024E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7190E+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=   3090.029     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      327 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2405        49.839        .13979E-03    .48390E-05
   2  Index         3.5686        2.7089        .53163E-02    .10550E-04
   3  Normalizat    .87655E-01    .30115        .79207E-02    .25951E-03
   4  Prefactor     1.4630        .29294        .21171E-03    .96389E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.24047
  Index      = 3.56865
  Normalizat = 0.0876553
  Prefactor  = 1.46298
 **********
 **   18 **HESSE 
 **********

 FCN=   3090.029     FROM HESSE     STATUS=OK            27 CALLS      354 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2405        22.793        .55916E-05   -1.5134    
   2  Index         3.5686        1.5837        .21265E-03   -.29033    
   3  Normalizat    .87655E-01    .28528        .15841E-02   -1.3942    
   4  Prefactor     1.4630        .27706        .84685E-05   -.78582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92885e-12
Minuit parameter uncertainties:
  1  22.8167
  2  1.61403
  3  0.290558
  4  0.277348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984804': 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) = 3090.0289598
delta logL = 0.238726741122

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  8.240e+00  2.282e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  3.569e+00  1.614e+00  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
716    Prefactor:  1.463e+00  2.773e-01  0.000e+00  1.000e+01 ( 1.000e+00)
717        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
718        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
715   Normalization:  8.766e-02  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 136.154 52.010
Photon Index (Free Index): 3.57 +/- 1.61
Photon Flux (Free Index): 7.08e-08 +/- 8.20e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.30e-05

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/984804/cmap_HighResolution_539481601_539740801_4FGL_J0904.6+5200_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='2.39e-01', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-08-30 23:46:32.033682', photon_index_error2='1.61', photon_index2='3.57', ts='0.64', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.30e-05', EG='0.13', time_epoch_completed='1630392392.03', return_code='102', job_id='984804', GAL2='1.46', EG2='0.09', return_code2='0', photon_flux_error2='8.20e-08', ts2='1.19', photon_index='2.56' WHERE bin_id='1158' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 984804: <4FGL_J0904.6+5200_daily_bin1158> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1158> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 23:30:38 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 23:30:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 23:30:40 2021
Terminated at Mon Aug 30 23:46:32 2021
Results reported at Mon Aug 30 23:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1158 136.154 52.0096 539481601 539740801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0904.6+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   919.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

