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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1224
RA = 136.154, Dec = 52.0096
tmin = 556588801, tmax = 556848001
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='986504', job_status='RUN', time_executed='2021-08-30 23:39:33.218162', time_epoch_executed='1630391973.22' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986504

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986504/ft1_4FGL_J0904.6+5200_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986504/ft1_4FGL_J0904.6+5200_daily_bin1224.fits outfile=/scratch/kocevski/986504/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1224.fits ra=136.154 dec=52.0096 rad=12.0 tmin=556588801.0 tmax=556848001.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 4.30
user 3.36
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.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/986504/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/986504/ft1_filtered_4FGL_J0904.6+5200_daily_bin1224.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.15
user 0.32
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986504/ft1_filtered_4FGL_J0904.6+5200_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/986504/ltcube_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.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/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits
.....................!
real 12.48
user 11.37
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986504/ft1_filtered_4FGL_J0904.6+5200_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/986504/ltcube_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.fits outfile=/scratch/kocevski/986504/expmap_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.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/986504/ltcube_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.fits
.....................!
real 192.06
user 184.85
sys 6.60

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/986504/ft1_filtered_4FGL_J0904.6+5200_daily_bin1224.fits scfile=/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits outfile=/scratch/kocevski/986504/cmap_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.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.18
user 0.36
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986504/ft1_filtered_4FGL_J0904.6+5200_daily_bin1224.fits scfile=/scratch/kocevski/986504/ft2_4FGL_J0904.6+5200_daily_bin1224.fits outfile=/scratch/kocevski/986504/cmap_HighResolution_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.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.18
user 0.37
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.404       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8385       1.0000         .10000E-03   10000.    
    17 'Prefactor '    162.19       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29683       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    81.362       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    28.837       1.0000         .10000E-03   10000.    
    32 'norm      '    2.6100       1.0000         .10000E-03   10000.    
    33 'norm      '    57.175       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    25.400       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.6408       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .13919       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=   1166.256     FROM MIGRAD    STATUS=CONVERGED   1096 CALLS     5878 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6200        9.4119       -.10756E-06    .24743E-04
   2  Prefactor     .10000E-03    84.568        .36853E-06** at limit **
   3  Prefactor     .10000E-03    38.705       -.51390E-07** at limit **
   4  norm          13.398        11.068       -.16822E-06    .27833E-04
   5  norm          .10000E-03    2.9182        .64055E-07** at limit **
   6  Prefactor     26.344        23.941       -.21686E-06    .16035E-04
   7  Prefactor     8.0158        15.934       -.11750E-05    .19398E-04
   8  Prefactor     .10000E-03    39.323       -.82973E-07** at limit **
   9  Prefactor     .10000E-03    15.777        .24751E-06** at limit **
  10  Prefactor     .10000E-03    9.9232       -.47413E-06** at limit **
  11  norm          .10000E-03    6.6308       -.10181E-06** at limit **
  12  norm          .10000E-03    7.1366       -.44568E-06** at limit **
  13  Prefactor     .10000E-03    27.728       -.62000E-06** at limit **
  14  Prefactor     4.7446        15.800       -.57087E-06    .15149E-04
  15  Prefactor     7.0155        9.7042       -.72940E-07    .77656E-04
  16  Prefactor     3.6893        527.77        .29051E-05   -.39828E-05
  17  Prefactor     162.26        292.12       -.78762E-05   -.46557E-05
  18  Prefactor     .10000E-03    7.5464        .11778E-06** at limit **
  19  norm          .29586        1.7804       -.12730E-06    .11011E-03
  20  norm          1.5042        1.8446       -.18010E-06    .25241E-04
  21  Prefactor     .10000E-03    20.378       -.63482E-06** at limit **
  22  Prefactor     .10000E-03    16.132        .23632E-06** at limit **
  23  Prefactor     .10000E-03    163.64       -.14268E-04** at limit **
  24  Prefactor     .10000E-03    6.7645       -.64563E-06** at limit **
  25  Prefactor     81.251        91.141        .61464E-06    .46906E-04
  26  Prefactor     .10000E-03    88.070       -.34223E-07** at limit **
  27  Prefactor     .10000E-03    178.47        .11928E-06** at limit **
  28  Prefactor     .10000E-03    56.476       -.90555E-06** at limit **
  29  Prefactor     .10000E-03    14.124       -.70808E-06** at limit **
  30  norm          .10000E-03    16.141       -.17498E-06** at limit **
  31  Prefactor     28.738        161.81       -.81477E-05   -.12032E-05
  32  norm          2.6098        1.7090       -.59748E-07    .49081E-04
  33  norm          57.154        97.892       -.18304E-05    .93493E-05
  34  Prefactor     .10000E-03    13.029       -.56744E-06** at limit **
  35  norm          25.396        23.728       -.30364E-07    .11977E-04
  36  Prefactor     .10000E-03    142.39       -.11773E-05** at limit **
  37  Normalizat    1.6413        .60468        .85174E-05    .47402E-04
  38  Prefactor     .13906        .40787       -.18196E-04    .16114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.61999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.3984
  norm       = 0.0001
  Prefactor  = 26.3436
  Prefactor  = 8.01576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74461
  Prefactor  = 7.01552
  Prefactor  = 3.68929
  Prefactor  = 162.255
  Prefactor  = 0.0001
  norm       = 0.295865
  norm       = 1.5042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 81.251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.738
  norm       = 2.60981
  norm       = 57.1538
  Prefactor  = 0.0001
  norm       = 25.3956
  Prefactor  = 0.0001
  Normalizat = 1.64132
  Prefactor  = 0.139061
 **********
 **   18 **HESSE 
 **********

 FCN=   1166.256     FROM HESSE     STATUS=OK           884 CALLS     6762 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6200        9.4324        .10319E-03   -1.5121    
   2  Prefactor     .10000E-03    84.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.398        11.065        .96456E-04   -1.4976    
   5  norm          .10000E-03    2.9370        .56892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.344        23.935        .78039E-04   -1.4681    
   7  Prefactor     8.0158        15.959        .14154E-03   -1.5142    
   8  Prefactor     .10000E-03    39.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.790        .13252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9361        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.6333        .85897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.1421        .89116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.806        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7446        15.807        .18459E-03   -1.5272    
  15  Prefactor     7.0155        9.7387        .58073E-03   -1.5178    
  16  Prefactor     3.6893        531.47        .20599E-03   -1.5324    
  17  Prefactor     162.26        287.76        .15833E-03   -1.3153    
  18  Prefactor     .10000E-03    7.5579        .91622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .29586        1.6676        .84416E-04   -1.5599    
  20  norm          1.5042        1.8214        .48719E-04   -1.5463    
  21  Prefactor     .10000E-03    20.377        .29490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.272        .13374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    168.12        .42803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7826        .86781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     81.251        91.410        .22264E-03   -1.3903    
  26  Prefactor     .10000E-03    88.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    178.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    56.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    14.160        .12542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    16.140        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     28.738        163.48        .74606E-04   -1.4635    
  32  norm          2.6098        1.7125        .34999E-04   -1.5385    
  33  norm          57.154        98.094        .53054E-04   -1.4195    
  34  Prefactor     .10000E-03    13.040        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          25.396        23.731        .79484E-04   -1.4700    
  36  Prefactor     .10000E-03    142.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    1.6413        .61272        .21977E-03   -.73881    
  38  Prefactor     .13906        .40978        .54035E-03   -1.3344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30974e-11
Minuit parameter uncertainties:
  1  9.43405
  2  3.88778e-07
  3  5.60617e-05
  4  11.0668
  5  8.53922e-06
  6  23.9439
  7  15.9676
  8  4.03825e-05
  9  1.1207e-06
  10  9.93423e-06
  11  1.32388e-06
  12  7.37314e-06
  13  7.69878e-05
  14  15.8205
  15  9.74094
  16  89.3802
  17  290.303
  18  2.73195e-06
  19  1.40465
  20  1.82142
  21  4.71125e-05
  22  2.0721e-05
  23  0.000776724
  24  9.84903e-06
  25  91.5688
  26  0.000148707
  27  3.36157e-05
  28  4.14585e-05
  29  4.68649e-05
  30  9.59558e-06
  31  137.662
  32  1.71253
  33  98.373
  34  1.49507e-06
  35  23.7399
  36  0.000327342
  37  0.615569
  38  0.418642
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  3.689e+00  8.938e+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.391e-01  4.186e-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.641e+00  6.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986504/likelihoodResults_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.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) = 1166.17815166
delta logL = 0.0777987700483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1166.16559054
delta logL = 0.0903598937857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3377       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7427       1.0000          .0000       10.000    
     3 'Normalizat'    1.5738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .17283       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=   1166.166     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      297 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3571        110.37        .17395E-03   -.29421E-03
   2  Index         3.7449        3.9905        .68584E-02   -.72172E-04
   3  Normalizat    1.5732        .50954        .22344E-03    .19471E-03
   4  Prefactor     .17311        .38218        .48906E-03   -.33358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.35705
  Index      = 3.74487
  Normalizat = 1.57322
  Prefactor  = 0.173105
 **********
 **   18 **HESSE 
 **********

 FCN=   1166.166     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3571        35.470        .69582E-05   -1.5245    
   2  Index         3.7449        2.5211        .27434E-03   -.25374    
   3  Normalizat    1.5732        .50821        .44688E-04   -.75741    
   4  Prefactor     .17311        .38187        .19562E-04   -1.3069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13182e-09
Minuit parameter uncertainties:
  1  27.5925
  2  2.6518
  3  0.50989
  4  0.387545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986504': 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) = 1166.16558588
delta logL = 0.0903645490148

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  5.357e+00  2.759e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  3.745e+00  2.652e+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.731e-01  3.875e-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.573e+00  5.099e-01  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/986504/cmap_HighResolution_556588801_556848001_4FGL_J0904.6+5200_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-02', job_status='DONE', photon_flux_upper_limit='3.39e-07', time_completed='2021-08-30 23:48:35.494835', job_id='986504', GAL2='0.17', fit_tolerance='1e-08', EG2='1.57', EG='1.64', time_epoch_completed='1630392515.49', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.14', dlogl='9.04e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1224' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 986504: <4FGL_J0904.6+5200_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1224 136.154 52.0096 556588801 556848001 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 :                                   549.59 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            753 sec.

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

