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


Performing analysis on: 4FGL_J0904.6+5200_daily_bin1510
RA = 136.154, Dec = 52.0096
tmin = 630720001, tmax = 630979201
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='987963', job_status='RUN', time_executed='2021-08-30 23:40:46.773904', time_epoch_executed='1630392046.77' WHERE source_name='4FGL J0904.6+5200' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987963/ft1_4FGL_J0904.6+5200_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987963/ft1_4FGL_J0904.6+5200_daily_bin1510.fits outfile=/scratch/kocevski/987963/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1510.fits ra=136.154 dec=52.0096 rad=12.0 tmin=630720001.0 tmax=630979201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.26
user 2.73
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.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/987963/ft1_filteredMKT_4FGL_J0904.6+5200_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.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.75
user 0.31
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/987963/ltcube_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.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/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits
.....................!
real 12.62
user 11.94
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/987963/ltcube_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits outfile=/scratch/kocevski/987963/expmap_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.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/987963/ltcube_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits
.....................!
real 190.70
user 185.45
sys 4.83

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/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits scfile=/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits outfile=/scratch/kocevski/987963/cmap_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.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.84
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits scfile=/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits outfile=/scratch/kocevski/987963/cmap_HighResolution_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.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.81
user 0.38
sys 0.40

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits', '/scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits', expMap='/scratch/kocevski/987963/expmap_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits', expCube='/scratch/kocevski/987963/ltcube_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/987963/Model_4FGL_J0904.6+5200_daily_bin1510.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/987963/ft1_filtered_4FGL_J0904.6+5200_daily_bin1510.fits
Spacecraft file(s): /scratch/kocevski/987963/ft2_4FGL_J0904.6+5200_daily_bin1510.fits
Exposure map: /scratch/kocevski/987963/expmap_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits
Exposure cube: /scratch/kocevski/987963/ltcube_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/987963/Model_4FGL_J0904.6+5200_daily_bin1510.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11661E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3783.8       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11857E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    60.688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27298E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.687       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0148       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .75096       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3755       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8674       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9007       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.276       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    20.592       1.0000         .10000E-03   10000.    
    32 'norm      '    1.0549       1.0000         .10000E-03   10000.    
    33 'norm      '    32.441       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    7.7997       1.0000         .10000E-03   10000.    
    36 'Prefactor '    75.037       1.0000         .10000E-03   10000.    
    37 'Normalizat'    .65161       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .45281       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=   2574.202     FROM MIGRAD    STATUS=CONVERGED   1131 CALLS     6835 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    118.42        .13883E-05** at limit **
   2  Prefactor     .10000E-03    419.77       -.96939E-06** at limit **
   3  Prefactor     3782.8        2279.3       -.74542E-05   -.24334E-04
   4  norm          .10000E-03    44.882       -.15818E-06** at limit **
   5  norm          19.835        19.848        .58659E-07   -.83095E-05
   6  Prefactor     .10019E-03    1265.9       -.37983E-04** at limit **
   7  Prefactor     60.619        76.266        .26297E-05   -.12271E-03
   8  Prefactor     .10000E-03    204.49        .80359E-06** at limit **
   9  Prefactor     .10000E-03    17.501        .83218E-07** at limit **
  10  Prefactor     .10001E-03    75.315        .79275E-05** at limit **
  11  norm          23.688        25.707       -.10091E-06   -.34598E-04
  12  norm          9.8764        20.548       -.18587E-07   -.79853E-04
  13  Prefactor     4.0460        128.86       -.24065E-04   -.11272E-03
  14  Prefactor     .10000E-03    3.3586       -.30729E-06** at limit **
  15  Prefactor     8.8235        6.7480       -.52162E-07   -.36529E-04
  16  Prefactor     .10000E-03    18.888        .30130E-06** at limit **
  17  Prefactor     .10000E-03    48.066        .21015E-06** at limit **
  18  Prefactor     .10000E-03    3.8333        .33793E-07** at limit **
  19  norm          .75066        .79876       -.55800E-07   -.93938E-04
  20  norm          1.3756        .85829       -.41110E-07   -.14695E-03
  21  Prefactor     .10000E-03    5.8824       -.20415E-07** at limit **
  22  Prefactor     8.8671        4.6325       -.36830E-07   -.17139E-04
  23  Prefactor     .10000E-03    6.4219       -.37418E-07** at limit **
  24  Prefactor     4.9019        5.0988       -.68922E-07   -.76048E-04
  25  Prefactor     .10000E-03    29.268       -.59675E-06** at limit **
  26  Prefactor     .10000E-03    7.9090       -.64098E-06** at limit **
  27  Prefactor     .10000E-03    46.657        .42799E-06** at limit **
  28  Prefactor     13.276        7.5252       -.63370E-07   -.24396E-03
  29  Prefactor     .10000E-03    8.4996       -.76387E-07** at limit **
  30  norm          .10013E-03    14.350        .49071E-05** at limit **
  31  Prefactor     20.580        29.021        .85536E-06   -.34465E-03
  32  norm          1.0550        .48193       -.12874E-07   -.48752E-03
  33  norm          32.447        18.335       -.25790E-06   -.79365E-05
  34  Prefactor     .10000E-03    2.7550        .51534E-07** at limit **
  35  norm          7.7998        3.4118       -.35430E-07   -.23693E-04
  36  Prefactor     75.041        41.038       -.23691E-06   -.31810E-04
  37  Normalizat    .65159        .26691        .61765E-06   -.17323E-03
  38  Prefactor     .45271        .25181        .68454E-06   -.17395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 3782.82
  norm       = 0.0001
  norm       = 19.8352
  Prefactor  = 0.000100192
  Prefactor  = 60.6187
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 23.6876
  norm       = 9.87639
  Prefactor  = 4.04599
  Prefactor  = 0.0001
  Prefactor  = 8.8235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.750663
  norm       = 1.37562
  Prefactor  = 0.0001
  Prefactor  = 8.86715
  Prefactor  = 0.0001
  Prefactor  = 4.90193
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.276
  Prefactor  = 0.0001
  norm       = 0.000100127
  Prefactor  = 20.5805
  norm       = 1.05497
  norm       = 32.4473
  Prefactor  = 0.0001
  norm       = 7.79979
  Prefactor  = 75.0413
  Normalizat = 0.651594
  Prefactor  = 0.452708
 **********
 **   18 **HESSE 
 **********

 FCN=   2574.202     FROM HESSE     STATUS=OK           890 CALLS     7725 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    118.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    419.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3782.8        2268.2        .41239E-04   -.24591    
   4  norm          .10000E-03    44.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.835        19.849        .89931E-04   -1.4817    
   6  Prefactor     .10019E-03    1256.2        .20646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     60.619        75.767        .51504E-04   -1.4149    
   8  Prefactor     .10000E-03    204.98        .21429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    81.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.688        25.694        .82304E-04   -1.4734    
  12  norm          9.8764        20.464        .12750E-03   -1.5079    
  13  Prefactor     4.0460        135.60        .20126E-03   -1.5306    
  14  Prefactor     .10000E-03    3.3679        .90784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8235        6.7311        .10442E-03   -1.5114    
  16  Prefactor     .10000E-03    18.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    48.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8879        .96892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .75066        .69670        .38801E-04   -1.5535    
  20  norm          1.3756        .85279        .34513E-04   -1.5473    
  21  Prefactor     .10000E-03    8.9668        .20529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8671        4.6231        .75344E-04   -1.5112    
  23  Prefactor     .10000E-03    6.4470        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9019        5.1085        .10666E-03   -1.5265    
  25  Prefactor     .10000E-03    29.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.9391        .13912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.276        7.5026        .97591E-04   -1.4979    
  29  Prefactor     .10000E-03    8.5826        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10013E-03    25.119        .29765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     20.580        27.433        .88264E-04   -1.4800    
  32  norm          1.0550        .48267        .22548E-04   -1.5503    
  33  norm          32.447        18.523        .70351E-04   -1.4568    
  34  Prefactor     .10000E-03    2.7762        .82157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          7.7998        3.4136        .59645E-04   -1.5149    
  36  Prefactor     75.041        41.671        .46352E-04   -1.3973    
  37  Normalizat    .65159        .30181        .25566E-03   -1.0584    
  38  Prefactor     .45271        .27904        .31763E-03   -1.1420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18148e-09
Minuit parameter uncertainties:
  1  0.00157424
  2  0.00198881
  3  2360.29
  4  0.000119371
  5  19.8552
  6  0.0317446
  7  75.8876
  8  0.000729698
  9  2.22797e-05
  10  0.00220179
  11  25.7058
  12  20.4782
  13  46.9622
  14  7.87892e-06
  15  6.73164
  16  3.12714e-05
  17  0.000122057
  18  1.04066e-06
  19  0.696703
  20  0.852798
  21  5.238e-05
  22  4.62331
  23  8.7079e-08
  24  5.10894
  25  0.000253658
  26  3.40058e-05
  27  0.000128102
  28  7.50313
  29  2.00021e-07
  30  0.00357161
  31  27.4494
  32  0.482672
  33  18.5267
  34  8.01735e-07
  35  3.41373
  36  41.6869
  37  0.302576
  38  0.279881
Done.

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

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  3.127e-05  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:  4.527e-01  2.799e-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.516e-01  3.026e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/987963/likelihoodResults_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2574.20238572
delta logL = -0.000250790017617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2574.20213797
delta logL = -3.0438700378e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6273       1.0000          .0000       10.000    
     3 'Normalizat'    .65157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45273       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=   2574.202     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    162.03        .90712E-02** at limit **
   2  Index         3.6053        8.1772        .50000        .24414E-04
   3  Normalizat    .65159        .24750E-01    .41640E-01    .74706E-05
   4  Prefactor     .45271        .26075E-01    .71727E-01    .11588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.60533
  Normalizat = 0.651593
  Prefactor  = 0.45271
 **********
 **   18 **HESSE 
 **********

 FCN=   2574.202     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9711        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6053        6.6997        .50000       -.28268    
   3  Normalizat    .65159        .24808        .25566E-03   -1.0584    
   4  Prefactor     .45271        .26069        .31763E-03   -1.1420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04985e-10
Minuit parameter uncertainties:
  1  6.226e-05
  2  4.80243
  3  0.248506
  4  0.261379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987963': 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) = 2574.20213784
delta logL = -2.90834168482e-06

Extracting fit parameters...

4FGL J0904.6+5200
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  6.226e-05  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  3.605e+00  4.802e+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:  4.527e-01  2.614e-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.516e-01  2.485e-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/987963/cmap_HighResolution_630720001_630979201_4FGL_J0904.6+5200_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-08-30 23:53:42.380763', job_id='987963', GAL2='0.45', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630392822.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='-2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1510' AND source_name='4FGL J0904.6+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 23:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 987963: <4FGL_J0904.6+5200_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0904.6+5200_daily_bin1510> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 23:40:24 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 23:40:26 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:40:26 2021
Terminated at Mon Aug 30 23:53:43 2021
Results reported at Mon Aug 30 23:53:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.6+5200_daily_bin1510 136.154 52.0096 630720001 630979201 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 :                                   775.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

