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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1282
RA = 136.154, Dec = 52.0096
tmin = 571622401, tmax = 571881601
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='986597', job_status='RUN', time_executed='2021-08-30 23:38:33.765779', time_epoch_executed='1630391913.77' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986597/ft1_4FGL_J0904.6+5200_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986597/ft1_4FGL_J0904.6+5200_daily_bin1282.fits outfile=/scratch/kocevski/986597/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1282.fits ra=136.154 dec=52.0096 rad=12.0 tmin=571622401.0 tmax=571881601.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.25
user 2.48
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.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/986597/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.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.00
user 0.30
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/986597/ltcube_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.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/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits
.....................!
real 12.88
user 12.19
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/986597/ltcube_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits outfile=/scratch/kocevski/986597/expmap_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.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/986597/ltcube_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits
.....................!
real 191.05
user 186.00
sys 4.28

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/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits outfile=/scratch/kocevski/986597/cmap_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.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 0.75
user 0.38
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits outfile=/scratch/kocevski/986597/cmap_HighResolution_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.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 0.74
user 0.37
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986597/Model_4FGL_J0904.6+5200_daily_bin1282.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/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits.....................!
real 18.20
user 16.57
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits', '/scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits', expMap='/scratch/kocevski/986597/expmap_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits', expCube='/scratch/kocevski/986597/ltcube_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/986597/Model_4FGL_J0904.6+5200_daily_bin1282.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/986597/ft1_filtered_4FGL_J0904.6+5200_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/986597/ft2_4FGL_J0904.6+5200_daily_bin1282.fits
Exposure map: /scratch/kocevski/986597/expmap_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits
Exposure cube: /scratch/kocevski/986597/ltcube_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/986597/Model_4FGL_J0904.6+5200_daily_bin1282.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) = 454.827908282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40083       1.0000         .10000E-03   10000.    
     2 'Prefactor '    761.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.073       1.0000         .10000E-03   10000.    
     4 'norm      '    9999.7       1.0000         .10000E-03   10000.    
     5 'norm      '    9999.7       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9996.1       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9982.3       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9989.5       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7966.2       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2001.0       1.0000         .10000E-03   10000.    
    11 'norm      '    8700.6       1.0000         .10000E-03   10000.    
    12 'norm      '    9999.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .38231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
    15 'Prefactor '    363.35       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21712E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6891       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1952       1.0000         .10000E-03   10000.    
    19 'norm      '    .14693E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .13682       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5793.3       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12479E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11290E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .70572E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11679E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .46930E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .79479E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15542E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    15.956       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.6379       1.0000         .10000E-03   10000.    
    32 'norm      '    1.3737       1.0000         .10000E-03   10000.    
    33 'norm      '    6.2754       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .11405E-02   1.0000         .10000E-03   10000.    
    35 'norm      '    .21795E-03   1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10698E-02   1.0000         .10000E-03   10000.    
    37 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    38 'Prefactor '    .67597       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=   452.5681     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4873 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    96.779       -.14621E-06** at limit **
   2  Prefactor     28.588        96.600        .12824E-05    .26151E-01
   3  Prefactor     .10099E-03    6165.8       -.76446E-07** at limit **
   4  norm         10000.0        6419.9       -.29256E-05** at limit **
   5  norm         10000.0        6464.4        .88627E-05** at limit **
   6  Prefactor    10000.0        1245.3        .36078E-06** at limit **
   7  Prefactor    10000.0        641.49       -.28719E-06** at limit **
   8  Prefactor     9999.1        1.7928       -.13421E-06   -.48070E-04
   9  Prefactor     8058.3        47.372       -.96163E-07   -.12253E-01
  10  Prefactor     1369.2        388.30        .92512E-06    .15087    
  11  norm          9967.4        149.07       -.16956E-05   -.43661E-01
  12  norm         10000.0        1753.2       -.23237E-06** at limit **
  13  Prefactor     .10012E-03    252.91        .71605E-06** at limit **
  14  Prefactor     12.197        23.347        .31622E-06    .80704E-03
  15  Prefactor     9997.7        6406.8       -.63987E-05    .22876E-01
  16  Prefactor     .10075E-03    496.24       -.18424E-05** at limit **
  17  Prefactor     .77056E-02    7051.0       -.27720E-05    .91618E-03
  18  Prefactor     9989.9        9248.1       -.33291E-04    .39929E-02
  19  norm          .10000E-03    246.26        .49907E-07** at limit **
  20  norm          .60460E-01    22.009       -.38753E-06   -.18106E-03
  21  Prefactor     6254.4        200.34        .43671E-07    .11575    
  22  Prefactor     9999.0        9927.9       -.10652E-04   -.24287E-02
  23  Prefactor     .10000E-03    69.091        .73712E-07** at limit **
  24  Prefactor     .10000E-03    10.793        .63558E-07** at limit **
  25  Prefactor     .10000E-03    93.777        .12469E-06** at limit **
  26  Prefactor     .10000E-03    9.2963        .32636E-07** at limit **
  27  Prefactor     .10125E-03    1747.8       -.41451E-08** at limit **
  28  Prefactor     .10000E-03    7.7422       -.43896E-08** at limit **
  29  Prefactor     .10000E-03    16.261       -.11132E-06** at limit **
  30  norm          14.655        37.673       -.37285E-06   -.34976E-03
  31  Prefactor     .10019E-03    181.42       -.92555E-06** at limit **
  32  norm          1.3631        1.1416       -.99528E-08   -.12579E-02
  33  norm          .10023E-03    188.68       -.49864E-06** at limit **
  34  Prefactor     .10000E-03    13.597        .13733E-07** at limit **
  35  norm          .10000E-03    7.3211        .71836E-07** at limit **
  36  Prefactor     .10001E-03    33.708        .18226E-06** at limit **
  37  Normalizat    .10000E-01    .12320        .23222E-07** at limit **
  38  Prefactor     .65929        .38868        .44904E-06    .15416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  Prefactor  = 28.5878
  Prefactor  = 0.000100988
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 9999.1
  Prefactor  = 8058.32
  Prefactor  = 1369.23
  norm       = 9967.37
  norm       = 10000
  Prefactor  = 0.000100117
  Prefactor  = 12.1968
  Prefactor  = 9997.75
  Prefactor  = 0.000100752
  Prefactor  = 0.00770559
  Prefactor  = 9989.87
  norm       = 0.000100001
  norm       = 0.0604599
  Prefactor  = 6254.4
  Prefactor  = 9999.01
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010125
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 14.6554
  Prefactor  = 0.000100187
  norm       = 1.36305
  norm       = 0.000100226
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Normalizat = 0.01
  Prefactor  = 0.659288
 **********
 **   18 **HESSE 
 **********

 FCN=   452.5681     FROM HESSE     STATUS=OK           948 CALLS     5821 TOTAL
                     EDM=   .15E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    96.952        .10859E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.588        8340.0        .37692E-03   -1.4638    
   3  Prefactor     .10099E-03    2295.8        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        6420.7        .10563E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        6476.3        .10422E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        1279.7        .50821E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        677.44        .23830E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9999.1        6208.1        .30949E-02    1.5518    
   9  Prefactor     8058.3        6075.2        .24844E-03    .65816    
  10  Prefactor     1369.2        6498.5        .24995E-03   -.81271    
  11  norm          9967.4        7894.1        .29741E-03    1.4565    
  12  norm         10000.0        1877.3        .10146E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10012E-03    250.15        .10780E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.197        23.270        .28477E-02   -1.5009    
  15  Prefactor     9997.7        6400.5        .53441E-03    1.6008    
  16  Prefactor     .10075E-03    486.90        .10077E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .77056E-02    7021.1        .52569E-02   -1.5691    
  18  Prefactor     9989.9        9253.0        .56670E-02    1.6345    
  19  norm          .10000E-03    228.18        .10243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .60460E-01    4.5043        .23066E-01   -1.5659    
  21  Prefactor     6254.4        7762.4        .20257E-03    .25359    
  22  Prefactor     9999.0        9916.8        .53123E-02    7.8341    
  23  Prefactor     .10000E-03    67.884        .90853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    91.576        .93433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.3229        .10328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10125E-03    1749.1        .92551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.4411        .10453E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          14.655        37.124        .25067E-02   -1.4942    
  31  Prefactor     .10019E-03    181.42        .62761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.3631        1.1375        .44870E-02   -1.5474    
  33  norm          .10023E-03    171.09        .40060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    12.450        .10337E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    7.0361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     .10001E-03    33.699        .10359E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .10000E-01    .11909        .10310       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .65929        .39001        .42080E-01   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.14502
Minuit parameter uncertainties:
  1  0.00135614
  2  1081.98
  3  0.099336
  4  0.378342
  5  1.06661
  6  0.220896
  7  0.219462
  8  1881.97
  9  40606.3
  10  7568.92
  11  924.656
  12  0.0324486
  13  0.0108626
  14  23.2872
  15  172.06
  16  0.0385924
  17  12.033
  18  1271.46
  19  0.000697767
  20  1.04292
  21  6182.71
  22  285.158
  23  0.000572671
  24  0.000195589
  25  0.00108104
  26  9.44828e-05
  27  0.0964886
  28  1.12974e-05
  29  0.000418791
  30  37.1824
  31  0.0116845
  32  1.13752
  33  0.0124639
  34  5.19595e-05
  35  0.000179606
  36  0.000994161
  37  2.41268e-07
  38  0.391634
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.008e-04  3.859e-02  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:  6.593e-01  3.916e-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:  1.000e-02  2.413e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.154 52.010
Photon Flux Upper Limit: 4.77e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986597/likelihoodResults_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.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) = 452.568082626
delta logL = -9.64277273852e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 452.568073651
delta logL = -6.66994822041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1207       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65947       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=   452.5681     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      255 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10427E-03    173.01        .21334E-01** at limit **
   2  Index         3.5173        7.1181        .50000        .17289E-05
   3  Normalizat    .10000E-01    .22794E-03    .22625E-02** at limit **
   4  Prefactor     .65928        .13659E-01    .26287E-03   -.49009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104272
  Index      = 3.51732
  Normalizat = 0.01
  Prefactor  = 0.659279
 **********
 **   18 **HESSE 
 **********

 FCN=   452.5681     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10427E-03    1222.6        .28163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5173        6.2181        .50000       -.30106    
   3  Normalizat    .10000E-01    .16915E-02    .45249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65928        .37210E-01    .52573E-04   -1.0515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.51771e-08
Minuit parameter uncertainties:
  1  0.147651
  2  1694.64
  3  2.68803e-07
  4  0.0372111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986597': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 452.568073166
delta logL = -1.82089081591e-07

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.043e-04  1.477e-01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  3.517e+00  1.695e+03  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:  6.593e-01  3.721e-02  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.000e-02  2.688e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.154 52.010

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/986597/cmap_HighResolution_571622401_571881601_4FGL_J0904.6+5200_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-01', job_status='DONE', photon_flux_upper_limit='4.77e-06', time_completed='2021-08-30 23:45:26.691150', job_id='986597', GAL2='0.66', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630392326.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1282' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 986597: <4FGL_J0904.6+5200_daily_bin1282> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1282> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 23:36:11 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 23:36:13 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:36:13 2021
Terminated at Mon Aug 30 23:45:27 2021
Results reported at Mon Aug 30 23:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1282 136.154 52.0096 571622401 571881601 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 :                                   410.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            556 sec.

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

