/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 67 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0904.6+5200_daily_bin5
RA = 136.154, Dec = 52.0096
tmin = 240624001, tmax = 240883201
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='973327', job_status='RUN', time_executed='2021-08-30 22:52:23.216479', time_epoch_executed='1630389143.22' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973327

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973327/ft1_4FGL_J0904.6+5200_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973327/ft1_4FGL_J0904.6+5200_daily_bin5.fits outfile=/scratch/kocevski/973327/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin5.fits ra=136.154 dec=52.0096 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.10
user 0.91
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.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/973327/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/973327/ft1_filtered_4FGL_J0904.6+5200_daily_bin5.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.46
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/973327/ft1_filtered_4FGL_J0904.6+5200_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/973327/ltcube_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.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/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits
.....................!
real 9.52
user 9.18
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973327/ft1_filtered_4FGL_J0904.6+5200_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/973327/ltcube_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.fits outfile=/scratch/kocevski/973327/expmap_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.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/973327/ltcube_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.fits
.....................!
real 139.90
user 136.60
sys 2.90

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/973327/ft1_filtered_4FGL_J0904.6+5200_daily_bin5.fits scfile=/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits outfile=/scratch/kocevski/973327/cmap_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973327/ft1_filtered_4FGL_J0904.6+5200_daily_bin5.fits scfile=/scratch/kocevski/973327/ft2_4FGL_J0904.6+5200_daily_bin5.fits outfile=/scratch/kocevski/973327/cmap_HighResolution_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.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.43
user 0.31
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10435E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7624       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14810E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7377       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.449       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1389       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5018       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5612       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.474       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .31482       1.0000         .10000E-03   10000.    
    30 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    3.6487       1.0000         .10000E-03   10000.    
    33 'norm      '    9.4486       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .24582E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    8.5971       1.0000         .10000E-03   10000.    
    36 'Prefactor '    25.237       1.0000         .10000E-03   10000.    
    37 'Normalizat'    .67836       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.0296       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=   4245.797     FROM MIGRAD    STATUS=CONVERGED   1149 CALLS     5938 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1007       -.40292E-06** at limit **
   2  Prefactor     .10000E-03    44.292        .26149E-05** at limit **
   3  Prefactor     .10000E-03    35.105       -.28563E-06** at limit **
   4  norm          .10000E-03    4.5569        .92614E-08** at limit **
   5  norm          .10000E-03    1.1353        .31679E-07** at limit **
   6  Prefactor     1.4114        22.062        .14125E-05    .95685E-05
   7  Prefactor     13.400        10.716        .47287E-07    .10082E-04
   8  Prefactor     3.7620        37.844        .10627E-06   -.40412E-04
   9  Prefactor     .10000E-03    19.480        .53556E-06** at limit **
  10  Prefactor     .10000E-03    3.5505       -.31576E-07** at limit **
  11  norm          2.7371        8.0479        .61993E-05    .15396E-03
  12  norm          1.0153        8.3279       -.55988E-06   -.33417E-04
  13  Prefactor     11.451        13.364       -.42520E-07    .41402E-05
  14  Prefactor     4.4919        15.333        .78253E-06    .24869E-04
  15  Prefactor     1.7442        3.7403       -.56221E-06    .27023E-04
  16  Prefactor     1.1744        119.99        .18433E-05    .13904E-04
  17  Prefactor     .10000E-03    31.385       -.21108E-05** at limit **
  18  Prefactor     .10000E-03    1.4081        .42005E-08** at limit **
  19  norm          .10000E-03    .31449        .27387E-07** at limit **
  20  norm          1.3891        1.6676        .84897E-07    .19483E-03
  21  Prefactor     3.5098        3.6432       -.43156E-08    .20778E-03
  22  Prefactor     2.5634        3.1667        .89950E-07    .23566E-04
  23  Prefactor     .10000E-03    5.3266       -.90173E-07** at limit **
  24  Prefactor     .10000E-03    5.9378       -.46226E-06** at limit **
  25  Prefactor     52.384        31.277        .24974E-05    .71336E-03
  26  Prefactor     .10000E-03    7.1164       -.38802E-07** at limit **
  27  Prefactor     .10000E-03    22.071        .80157E-06** at limit **
  28  Prefactor     .10000E-03    5.4108       -.47588E-06** at limit **
  29  Prefactor     .44954        21.663       -.77075E-05    .40204E-03
  30  norm          .10000E-03    25.489       -.76196E-06** at limit **
  31  Prefactor     .10000E-03    43.324        .29875E-05** at limit **
  32  norm          3.6473        1.1566        .15071E-06    .30067E-02
  33  norm          9.4580        18.225        .58848E-06    .18415E-03
  34  Prefactor     .10000E-03    15.558       -.83016E-06** at limit **
  35  norm          8.5963        4.2635        .13794E-06    .40597E-03
  36  Prefactor     25.257        53.372       -.17315E-05    .73603E-04
  37  Normalizat    .67783        .23419        .93691E-06    .42959E-03
  38  Prefactor     1.0297        .19643       -.19097E-05    .32205E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.41138
  Prefactor  = 13.3997
  Prefactor  = 3.76201
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.73712
  norm       = 1.01529
  Prefactor  = 11.4513
  Prefactor  = 4.49195
  Prefactor  = 1.74418
  Prefactor  = 1.17445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.38913
  Prefactor  = 3.50982
  Prefactor  = 2.56339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.3843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.449536
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 3.6473
  norm       = 9.45804
  Prefactor  = 0.0001
  norm       = 8.59629
  Prefactor  = 25.2566
  Normalizat = 0.677828
  Prefactor  = 1.02974
 **********
 **   18 **HESSE 
 **********

 FCN=   4245.797     FROM HESSE     STATUS=OK           900 CALLS     6838 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.621        .18157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6789        .27113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1908        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4114        21.908        .36500E-03   -1.5470    
   7  Prefactor     13.400        10.668        .10946E-03   -1.4976    
   8  Prefactor     3.7620        37.764        .20814E-03   -1.5320    
   9  Prefactor     .10000E-03    20.136        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5529        .11989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7371        8.3271        .12304E-02   -1.5377    
  12  norm          1.0153        8.0598        .34746E-03   -1.5506    
  13  Prefactor     11.451        13.355        .11840E-03   -1.5031    
  14  Prefactor     4.4919        15.179        .18998E-03   -1.5284    
  15  Prefactor     1.7442        3.6999        .16429E-03   -1.5444    
  16  Prefactor     1.1744        122.00        .43599E-02   -1.5491    
  17  Prefactor     .10000E-03    31.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4189        .75414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .38745        .65288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3891        1.6323        .82372E-04   -1.5472    
  21  Prefactor     3.5098        3.3897        .10623E-03   -1.5333    
  22  Prefactor     2.5634        3.1466        .12098E-03   -1.5388    
  23  Prefactor     .10000E-03    5.3188        .14666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.0582        .30840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.384        31.952        .55367E-04   -1.4259    
  26  Prefactor     .10000E-03    7.1183        .16976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.4123        .14792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .44954        97.061        .41539E-02   -1.5574    
  30  norm          .10000E-03    26.366        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    43.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          3.6473        1.1619        .36051E-04   -1.5326    
  33  norm          9.4580        18.255        .13038E-03   -1.5093    
  34  Prefactor     .10000E-03    15.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          8.5963        4.2654        .91922E-04   -1.5121    
  36  Prefactor     25.257        53.390        .79741E-04   -1.4702    
  37  Normalizat    .67783        .26691        .29185E-03   -1.0477    
  38  Prefactor     1.0297        .22193        .22972E-03   -.91745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65698e-09
Minuit parameter uncertainties:
  1  0.00029725
  2  0.00011369
  3  1.99276e-05
  4  2.62812e-06
  5  2.16507e-06
  6  11.1258
  7  10.6694
  8  23.8578
  9  0.00020117
  10  4.25233e-06
  11  8.33065
  12  5.72198
  13  13.3585
  14  15.192
  15  3.70038
  16  23.9892
  17  0.000132494
  18  3.62238e-07
  19  1.43874e-06
  20  1.63239
  21  3.38987
  22  3.14676
  23  5.93435e-05
  24  2.89325e-05
  25  31.962
  26  1.82797e-06
  27  2.46009e-05
  28  2.9166e-06
  29  13.2312
  30  0.000235673
  31  0.000309668
  32  1.16189
  33  18.2653
  34  0.000169847
  35  4.26552
  36  53.4912
  37  0.267426
  38  0.222124
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.174e+00  2.399e+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.030e+00  2.221e-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:  6.778e-01  2.674e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973327/likelihoodResults_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.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) = 4245.79455226
delta logL = 0.00234482388623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4245.79449138
delta logL = 0.00240570538244

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3000       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9148       1.0000          .0000       10.000    
     3 'Normalizat'    .67606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0306       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=   4245.794     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      254 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3317        345.97        .96895E-02    .27479E-03
   2  Index         2.9178        2.5235        .50000        .10427E-04
   3  Normalizat    .67580        .14899E-01    .66053E-01    .88327E-04
   4  Prefactor     1.0306        .14280E-01    .41209E-01    .20411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33173
  Index      = 2.91783
  Normalizat = 0.675799
  Prefactor  = 1.03063
 **********
 **   18 **HESSE 
 **********

 FCN=   4245.794     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3317        74.799        .38758E-03   -1.5477    
   2  Index         2.9178        6.4409        .12969E-01   -.42952    
   3  Normalizat    .67580        .22227        .29227E-03   -1.0486    
   4  Prefactor     1.0306        .20984        .22964E-03   -.91715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57607e-10
Minuit parameter uncertainties:
  1  19.9867
  2  5.7341
  3  0.22257
  4  0.210005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973327': 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) = 4245.79448716
delta logL = 0.00240992206363

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.332e+00  1.999e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.918e+00  5.734e+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.031e+00  2.100e-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:  6.758e-01  2.226e-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/973327/cmap_HighResolution_240624001_240883201_4FGL_J0904.6+5200_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-08-30 23:04:28.689691', job_id='973327', GAL2='1.03', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630389868.69', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.41e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='5' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 973327: <4FGL_J0904.6+5200_daily_bin5> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin5> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Aug 30 22:50:57 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 22:50:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 22:50:58 2021
Terminated at Mon Aug 30 23:04:29 2021
Results reported at Mon Aug 30 23:04:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin5 136.154 52.0096 240624001 240883201 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

