/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 238 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_J0904.6+5200_daily_bin1405
RA = 136.154, Dec = 52.0096
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='986795', job_status='RUN', time_executed='2021-08-30 23:43:00.894096', time_epoch_executed='1630392180.89' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986795

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


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986795/ft1_4FGL_J0904.6+5200_daily_bin1405.fits outfile=/scratch/kocevski/986795/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1405.fits ra=136.154 dec=52.0096 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 11.94
user 2.55
sys 9.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986795/ft1_filtered_4FGL_J0904.6+5200_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/986795/ft2_4FGL_J0904.6+5200_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/986795/ltcube_603504001_603763201_4FGL_J0904.6+5200_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/986795/ft2_4FGL_J0904.6+5200_daily_bin1405.fits
.....................!
real 23.01
user 12.38
sys 10.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986795/ft1_filtered_4FGL_J0904.6+5200_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/986795/ft2_4FGL_J0904.6+5200_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/986795/ltcube_603504001_603763201_4FGL_J0904.6+5200_daily_bin1405.fits outfile=/scratch/kocevski/986795/expmap_603504001_603763201_4FGL_J0904.6+5200_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/986795/ltcube_603504001_603763201_4FGL_J0904.6+5200_daily_bin1405.fits
.....................!
real 201.96
user 185.11
sys 16.04

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/986795/ft1_filtered_4FGL_J0904.6+5200_daily_bin1405.fits scfile=/scratch/kocevski/986795/ft2_4FGL_J0904.6+5200_daily_bin1405.fits outfile=/scratch/kocevski/986795/cmap_603504001_603763201_4FGL_J0904.6+5200_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=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 9.50
user 0.39
sys 8.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986795/ft1_filtered_4FGL_J0904.6+5200_daily_bin1405.fits scfile=/scratch/kocevski/986795/ft2_4FGL_J0904.6+5200_daily_bin1405.fits outfile=/scratch/kocevski/986795/cmap_HighResolution_603504001_603763201_4FGL_J0904.6+5200_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=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 9.56
user 0.38
sys 9.09

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11167E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30172E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.392       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    .96914       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17245E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0896       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12319E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9999.8       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .55705E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.8505       1.0000         .10000E-03   10000.    
    33 'norm      '    429.10       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .66695E-02   1.0000         .10000E-03   10000.    
    36 'Prefactor '    23.796       1.0000         .10000E-03   10000.    
    37 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    38 'Prefactor '    .47302E-10   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.

 FCN=   225.4944     FROM MIGRAD    STATUS=CONVERGED   1065 CALLS     6302 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.005        .23625E-09** at limit **
   2  Prefactor     .10000E-03    381.64       -.11264E-05** at limit **
   3  Prefactor     .10000E-03    638.10        .62962E-05** at limit **
   4  norm          .10000E-03    49.947        .12232E-06** at limit **
   5  norm          .10000E-03    24.975       -.11753E-08** at limit **
   6  Prefactor     .10000E-03    1012.1        .22402E-05** at limit **
   7  Prefactor    10000.0        2254.3        .43438E-05** at limit **
   8  Prefactor     .10008E-03    6776.8       -.26788E-04** at limit **
   9  Prefactor     .10004E-03    7178.7       -.17332E-04** at limit **
  10  Prefactor    10000.0        7201.7        .17992E-04** at limit **
  11  norm         10000.0        9994.0        .18961E-04** at limit **
  12  norm         10000.0        7701.2        .65394E-05** at limit **
  13  Prefactor    10000.0        2074.4        .11139E-05** at limit **
  14  Prefactor     19.393        18.197       -.15199E-07    .71874E-06
  15  Prefactor    10000.0        8745.0        .48813E-04** at limit **
  16  Prefactor    10000.0        7303.3        .39580E-05** at limit **
  17  Prefactor    10000.0        8941.3        .43274E-04** at limit **
  18  Prefactor    10000.0        8639.0        .53075E-05** at limit **
  19  norm         10000.0        2079.9        .73514E-05** at limit **
  20  norm          .96985        1.5242       -.74314E-07    .10712E-04
  21  Prefactor    10000.0        7429.6        .73202E-05** at limit **
  22  Prefactor    10000.0        5002.6        .73082E-04** at limit **
  23  Prefactor     .10000E-03    918.78        .13970E-05** at limit **
  24  Prefactor     3.5838        696.07        .73069E-04    .51554E-04
  25  Prefactor     .10000E-03    622.55        .53506E-05** at limit **
  26  Prefactor     .10000E-03    14.417        .25793E-07** at limit **
  27  Prefactor    10000.0        9934.4        .12508E-03** at limit **
  28  Prefactor     .10000E-03    7.1686       -.47514E-07** at limit **
  29  Prefactor     .10000E-03    675.41       -.61140E-04** at limit **
  30  norm          .10000E-03    15.609        .83152E-08** at limit **
  31  Prefactor     .10000E-03    45.862        .79765E-07** at limit **
  32  norm          2.8502        1.9295       -.20541E-06    .52554E-03
  33  norm          429.22        365.89       -.12606E-04    .10343E-04
  34  Prefactor     .10000E-03    40.957       -.20979E-05** at limit **
  35  norm          .10003E-03    378.40       -.70621E-04** at limit **
  36  Prefactor     23.664        89.397       -.15440E-04    .93945E-04
  37  Normalizat    .10000E-01    .10920        .20226E-05** at limit **
  38  Prefactor     .23814E-12    .88096E-01    .32038E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 0.000100084
  Prefactor  = 0.000100035
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 19.3933
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.969849
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 3.58383
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85018
  norm       = 429.22
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 23.6635
  Normalizat = 0.01
  Prefactor  = 2.38143e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   225.4944     FROM HESSE     STATUS=OK           862 CALLS     7164 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.005        .46444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    381.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    637.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    49.947        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    24.975        .73397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1012.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        2254.1        .19838E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    6771.3        .18346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    7176.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        7199.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        9994.0        .18990E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        7701.3        .20780E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        2074.5        .21263E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.393        18.195        .60242E-04   -1.4827    
  15  Prefactor    10000.0        8735.4        .18535E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        7304.1        .21364E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        8944.1        .18333E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        8639.0        .21154E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        2079.6        .18931E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .96985        1.5115        .22505E-04   -1.5511    
  21  Prefactor    10000.0        7429.6        .20502E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        5003.1        .18835E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    918.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5838        712.55        .23073E-03   -1.5329    
  25  Prefactor     .10000E-03    621.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.423        .55738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        9940.0        .19996E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.1773        .39309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    678.35        .21103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    15.609        .58017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    45.866        .99494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.8502        1.9314        .16286E-04   -1.5370    
  33  norm          429.22        366.27        .98690E-04   -1.1534    
  34  Prefactor     .10000E-03    40.970        .93996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10003E-03    377.78        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor     23.664        88.448        .82115E-04   -1.4735    
  37  Normalizat    .10000E-01    .10982        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .23814E-12    .88251E-01    .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01267e-09
Minuit parameter uncertainties:
  1  1.6461e-08
  2  0.000480089
  3  0.00348589
  4  1.88626e-05
  5  8.86007e-08
  6  0.00159444
  7  0.004378
  8  0.0370161
  9  0.0270712
  10  0.0274595
  11  0.060692
  12  0.00947153
  13  0.000824161
  14  18.1998
  15  0.110032
  16  0.00381844
  17  0.189814
  18  0.0472883
  19  0.00609203
  20  1.51152
  21  0.0103935
  22  0.493455
  23  0.00231414
  24  102.326
  25  0.00340879
  26  7.29057e-06
  27  1.21557
  28  5.20175e-06
  29  0.00295072
  30  2.4785e-06
  31  5.5695e-05
  32  1.93143
  33  368.289
  34  0.000108213
  35  0.00694083
  36  88.9442
  37  7.79794e-07
  38  2.9037e-07
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.000e+04  3.818e-03  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:  2.381e-13  2.904e-07  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  7.798e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 136.154 52.010
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.62e-05 +/- 6.16e-12
Energy Flux (Fixed Index): 4.38e-03 +/- 1.67e-09
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 1.90
Ra Dec: 136.154 52.010
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.81e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986795/likelihoodResults_603504001_603763201_4FGL_J0904.6+5200_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) = 200.684175275
delta logL = 24.810174814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 200.684171933
delta logL = 24.8101781559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    5.9001       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.

 FCN=   200.6842     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       66 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       5.9001        .17332        .11036E-01    .18670E-04
                               ERR DEF=  .500    
Final values: 
  Index      = 5.90008
 **********
 **   18 **HESSE 
 **********

 FCN=   200.6842     FROM HESSE     STATUS=OK             7 CALLS       73 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       5.9001        .17339        .48821E-04    .18100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00104e-13
Minuit parameter uncertainties:
  1  0.173422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986795': 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) = 200.684171933
delta logL = 24.8101781559

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
354        Index:  5.900e+00  1.734e-01  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.124e-09  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 51.52
Ra Dec: 136.154 52.010
Photon Index (Free Index): 5.90 +/- 0.17
Photon Flux (Free Index): 6.93e-03 +/- 2.32e-03
Energy Flux (Free Index): 8.67e-01 +/- 2.84e-01

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/986795/cmap_HighResolution_603504001_603763201_4FGL_J0904.6+5200_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.81e+04', comment='SUCCESS', photon_flux='1.62e-05', energy_flux2='8.67e-01', photon_flux_error='6.16e-12', dlogl='2.48e+01', energy_flux='4.38e-03', photon_flux2='6.93e-03', job_status='DONE', time_completed='2021-08-30 23:51:38.314289', photon_index_error2='0.17', photon_index2='5.90', ts='1.90', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.84e-01', EG='0.01', time_epoch_completed='1630392698.31', return_code='0', job_id='986795', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='1.67e-09', photon_flux_error2='2.32e-03', ts2='51.52', photon_index='2.56' WHERE bin_id='1405' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 986795: <4FGL_J0904.6+5200_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1405 136.154 52.0096 603504001 603763201 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 :                                   655.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             202.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

