aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 51 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1904.1+3627_daily_bin1692
RA = 286.034, Dec = 36.4526
tmin = 677894401, tmax = 678153601
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='406389', job_status='RUN', time_executed='2022-06-29 04:53:46.590641', time_epoch_executed='1656503626.59' WHERE source_name='4FGL J1904.1+3627' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/406389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/406389/ft1_4FGL_J1904.1+3627_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/406389/ft1_4FGL_J1904.1+3627_daily_bin1692.fits outfile=/scratch/kocevski/406389/ft1_filteredMKT_4FGL_J1904.1+3627_daily_bin1692.fits ra=286.034 dec=36.4526 rad=12.0 tmin=677894401.0 tmax=678153601.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.55
user 4.21
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.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/406389/ft1_filteredMKT_4FGL_J1904.1+3627_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 2010

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/406389/ltcube_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.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/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits
.....................!
real 13.98
user 13.54
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/406389/ltcube_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits outfile=/scratch/kocevski/406389/expmap_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.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/406389/ltcube_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits
.....................!
real 193.08
user 187.66
sys 4.46

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Added 229 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1904.1+3627 @ 286.034 36.4526

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits outfile=/scratch/kocevski/406389/cmap_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.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=286.034 yref=36.4526 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits outfile=/scratch/kocevski/406389/cmap_HighResolution_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.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=286.034 yref=36.4526 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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/406389/Model_4FGL_J1904.1+3627_daily_bin1692.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 Cygnus Cocoon
adding source EG_v02
adding source GAL_V02
adding source gamma Cygni
Working on...
/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits.....................!
real 243.30
user 239.31
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits', '/scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits', expMap='/scratch/kocevski/406389/expmap_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits', expCube='/scratch/kocevski/406389/ltcube_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/406389/Model_4FGL_J1904.1+3627_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1904.1+3627'

4FGL J1904.1+3627
   Spectrum: PowerLaw
346    Prefactor:  2.483e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
347        Index:  1.837e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.513e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/406389/ft1_filtered_4FGL_J1904.1+3627_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/406389/ft2_4FGL_J1904.1+3627_daily_bin1692.fits
Exposure map: /scratch/kocevski/406389/expmap_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits
Exposure cube: /scratch/kocevski/406389/ltcube_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/406389/Model_4FGL_J1904.1+3627_daily_bin1692.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) = 19648.2058566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9804       1.0000         .10000E-03   10000.    
     3 'norm      '    15.283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12657E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8301       1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2793       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11515E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4516       1.0000         .10000E-03   10000.    
    15 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1463       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19648.20     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1756 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9658        6.0581        .11301E-05   -.11403E-03
   2  Prefactor     5.9808        5.2398        .10941E-06    .10551E-04
   3  norm          15.284        16.740       -.11477E-06   -.11885E-04
   4  Prefactor     .10002E-03    2.6572       -.55352E-06** at limit **
   5  norm          .10000E-03    18.579        .79546E-06** at limit **
   6  norm          .10000E-03    .71848       -.12239E-07** at limit **
   7  norm          .10000E-03    .52670        .17605E-07** at limit **
   8  Prefactor     4.8313        10.058        .61685E-05   -.53223E-03
   9  Prefactor     78.730        51.451        .95602E-06    .89105E-04
  10  Prefactor     .10000E-03    15.723       -.36263E-06** at limit **
  11  Prefactor     .10000E-03    25.482       -.16692E-06** at limit **
  12  Prefactor     2.1918        66.727        .71878E-05    .77707E-04
  13  Prefactor     .10029E-03    271.86       -.34810E-04** at limit **
  14  Prefactor     4.4511        4.9594        .16876E-06   -.19815E-05
  15  norm          .10000E-03    15.567        .37040E-06** at limit **
  16  norm          .10000E-03    1.8205        .24441E-07** at limit **
  17  Normalizat    1.1462        .18503       -.12186E-05    .39007E-04
  18  Prefactor     .97916        .41958E-01   -.10903E-06    .11180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96578
  Prefactor  = 5.98085
  norm       = 15.2836
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.83126
  Prefactor  = 78.7301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19183
  Prefactor  = 0.00010029
  Prefactor  = 4.45111
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.14619
  Prefactor  = 0.979157
 **********
 **   18 **HESSE 
 **********

 FCN=   19648.20     FROM HESSE     STATUS=OK           244 CALLS     2000 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9658        6.0687        .29594E-03   -1.5428    
   2  Prefactor     5.9808        5.2291        .16420E-03   -1.5219    
   3  norm          15.284        16.732        .10245E-03   -1.4926    
   4  Prefactor     .10002E-03    19.056        .43566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .72429        .11596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .54443        .19828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8313        10.578        .91522E-03   -1.5268    
   9  Prefactor     78.730        51.452        .45262E-04   -1.3931    
  10  Prefactor     .10000E-03    15.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1918        67.928        .27197E-03   -1.5412    
  13  Prefactor     .10029E-03    311.26        .20667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4511        4.9553        .19085E-03   -1.5286    
  15  norm          .10000E-03    16.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1462        .19223        .52838E-03   -.88282    
  18  Prefactor     .97916        .44333E-01    .13416E-03   -.93428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72141e-09
Minuit parameter uncertainties:
  1  6.07061
  2  5.22948
  3  16.7367
  4  0.00119605
  5  0.000103413
  6  9.29141e-07
  7  1.01588e-06
  8  10.5823
  9  51.4814
  10  6.47084e-05
  11  2.42033e-05
  12  24.4336
  13  0.0190862
  14  4.95574
  15  3.99246e-05
  16  1.92261e-06
  17  0.192353
  18  0.0443349
Done.

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

Extracting fit parameters...

4FGL J1904.1+3627
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  6.471e-05  1.000e-04  1.000e+04 ( 1.000e-14)
347        Index:  1.837e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  4.513e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
813    Prefactor:  9.792e-01  4.433e-02  0.000e+00  1.000e+01 ( 1.000e+00)
814        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
815        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
812   Normalization:  1.146e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 286.034 36.453
Photon Flux Upper Limit: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/406389/likelihoodResults_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.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) = 19648.2020032
delta logL = -0.000300778079691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19648.2017028
delta logL = -3.48463800037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11942E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8778       1.0000          .0000       10.000    
     3 'Normalizat'    1.1462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97915       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19648.20     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.284        .90712E-02** at limit **
   2  Index         1.9286        5.8557        .50000       -.27141E-04
   3  Normalizat    1.1462        .65977E-02    .11910       -.28808E-03
   4  Prefactor     .97916        .15709E-02    .30361E-01   -.34892E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92864
  Normalizat = 1.14619
  Prefactor  = 0.979158
 **********
 **   18 **HESSE 
 **********

 FCN=   19648.20     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      249 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    203.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9286        8.3282        .50000       -.66146    
   3  Normalizat    1.1462        .18051E-01    .52838E-03   -.88282    
   4  Prefactor     .97916        .43155E-02    .13416E-03   -.93428    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05821e-08
Minuit parameter uncertainties:
  1  0.000532466
  2  12.9398
  3  0.0180513
  4  0.00431551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/406389': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19648.2017019
delta logL = 5.50335244043e-07

Extracting fit parameters...

4FGL J1904.1+3627
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  5.325e-04  1.000e-04  1.000e+04 ( 1.000e-14)
347        Index:  1.929e+00  1.294e+01  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  4.513e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
813    Prefactor:  9.792e-01  4.316e-03  0.000e+00  1.000e+01 ( 1.000e+00)
814        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
815        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
812   Normalization:  1.146e+00  1.805e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 286.034 36.453

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/406389/cmap_HighResolution_677894401_678153601_4FGL_J1904.1+3627_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2022-06-29 05:20:00.090764', job_id='406389', GAL2='0.98', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1656505200.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.84' WHERE bin_id='1692' AND source_name='4FGL J1904.1+3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 05:20:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 406389: <4FGL_J1904.1+3627_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1904.1+3627_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:42 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:52:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:52:46 2022
Terminated at Wed Jun 29 05:20:01 2022
Results reported at Wed Jun 29 05:20:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1904.1+3627_daily_bin1692 286.034 36.4526 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1904.1+3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1569.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             365.51 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1634 sec.
    Turnaround time :                            18739 sec.

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

