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


Performing analysis on: 4FGL_J0905.6+1358_daily_bin37
RA = 136.402, Dec = 13.975
tmin = 248918401, tmax = 249177601
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='6594', job_status='RUN', time_executed='2021-08-31 00:37:01.200967', time_epoch_executed='1630395421.2' WHERE source_name='4FGL J0905.6+1358' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6594/ft1_4FGL_J0905.6+1358_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6594/ft1_4FGL_J0905.6+1358_daily_bin37.fits outfile=/scratch/kocevski/6594/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin37.fits ra=136.402 dec=13.975 rad=12.0 tmin=248918401.0 tmax=249177601.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.86
user 1.73
sys 2.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.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/6594/ft1_filteredMKT_4FGL_J0905.6+1358_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.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 2.63
user 0.31
sys 2.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/6594/ltcube_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.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/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits
.....................!
real 14.86
user 12.27
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/6594/ltcube_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits outfile=/scratch/kocevski/6594/expmap_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.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/6594/ltcube_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits
.....................!
real 193.00
user 184.61
sys 7.86

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0905.6+1358 @ 136.402 13.975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits outfile=/scratch/kocevski/6594/cmap_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.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.402 yref=13.975 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 2.68
user 0.37
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits outfile=/scratch/kocevski/6594/cmap_HighResolution_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.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.402 yref=13.975 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 2.59
user 0.38
sys 2.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6594/Model_4FGL_J0905.6+1358_daily_bin37.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/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits.....................!
real 73.29
user 67.81
sys 3.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits', '/scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits', expMap='/scratch/kocevski/6594/expmap_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits', expCube='/scratch/kocevski/6594/ltcube_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/6594/Model_4FGL_J0905.6+1358_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0905.6+1358'

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/6594/ft1_filtered_4FGL_J0905.6+1358_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/6594/ft2_4FGL_J0905.6+1358_daily_bin37.fits
Exposure map: /scratch/kocevski/6594/expmap_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits
Exposure cube: /scratch/kocevski/6594/ltcube_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/6594/Model_4FGL_J0905.6+1358_daily_bin37.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) = 7204.32488335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.784       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    70.771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .90077E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71196E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .89362E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    1.1429       1.0000         .10000E-01   10.000    
    14 'Prefactor '    1.0339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7204.316     FROM MIGRAD    STATUS=FAILED       490 CALLS     1647 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.269        14.655        .10990E-03    .30621E-04
   2  Prefactor     .48724        24.090        .39007E-02    .21945E-02
   3  Prefactor     .10000E-03    2.2278        .12340E-02** at limit **
   4  Prefactor     .10000E-03    26.337        .18142E-02** at limit **
   5  norm          1.8905        .82312        .47583E-04    .30606E-03
   6  Prefactor     22.788        15.111        .83916E-04   -.29805E-04
   7  norm          .10000E-03    1.9214        .11485E-02** at limit **
   8  norm          70.675        48.000        .47718E-04   -.81242E-04
   9  Prefactor     .26158E-01    39.485        .16132        .31162E-04
  10  Prefactor     .10001E-03    2.6332        .35577E-01** at limit **
  11  norm          .88833E-01    1.0280        .11905E-02    .95212E-02
  12  Prefactor     .10000E-03    13.850        .18142E-02** at limit **
  13  Normalizat    1.1429        .20840        .25697E-03    .27607E-04
  14  Prefactor     1.0339        .17693        .22908E-03   -.13261E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7204.316     FROM SIMPLEX   STATUS=UNCHANGED    582 CALLS     2229 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.269        14.655        .67546E-06   -1.4979    
   2  Prefactor     .48724        24.090        .57907E-05   -1.5568    
   3  Prefactor     .10000E-03    2.2278        .21842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.337        .51270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8905        .82312        .32258E-06   -1.5433    
   6  Prefactor     22.788        15.111        .32556E-06   -1.4753    
   7  norm          .10000E-03    1.9214        .22340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          70.675        48.000        .29554E-06   -1.4025    
   9  Prefactor     .26158E-01    39.485        .98453E-06   -1.5676    
  10  Prefactor     .10001E-03    2.6332        .24495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .88833E-01    1.0280        .36636E-06   -1.5648    
  12  Prefactor     .10000E-03    13.850        .48190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    1.1429        .20840        .20272E-06   -.88386    
  14  Prefactor     1.0339        .17693        .19674E-06   -.91608    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7204.316     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2414 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.269        14.655        .43959E-05   -.10345E-06
   2  Prefactor     .48726        24.263        .78013E-03    .89250E-04
   3  Prefactor     .10000E-03    2.2280        .24680E-03** at limit **
   4  Prefactor     .10000E-03    26.341        .36285E-03** at limit **
   5  norm          1.8905        .82295        .19033E-05   -.47785E-05
   6  Prefactor     22.788        15.110        .33566E-05    .67739E-06
   7  norm          .10000E-03    1.9215        .22969E-03** at limit **
   8  norm          70.675        47.997        .95437E-05    .21442E-05
   9  Prefactor     .26156E-01    39.825        .16026        .31616E-04
  10  Prefactor     .10001E-03    2.2815        .39639E-01** at limit **
  11  norm          .88837E-01    1.0281        .23811E-03    .39139E-03
  12  Prefactor     .10000E-03    13.851        .36285E-03** at limit **
  13  Normalizat    1.1429        .20855        .10279E-04   -.12830E-04
  14  Prefactor     1.0339        .17708        .91632E-05   -.15136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2685
  Prefactor  = 0.487264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89052
  Prefactor  = 22.7876
  norm       = 0.0001
  norm       = 70.6754
  Prefactor  = 0.0261562
  Prefactor  = 0.000100011
  norm       = 0.0888367
  Prefactor  = 0.0001
  Normalizat = 1.14291
  Prefactor  = 1.03389
 **********
 **   18 **HESSE 
 **********

 FCN=   7204.316     FROM HESSE     STATUS=OK           172 CALLS     2586 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.269        14.654        .43959E-05   -1.4979    
   2  Prefactor     .48726        24.241        .15603E-03   -1.5568    
   3  Prefactor     .10000E-03    2.2280        .49359E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.342        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8905        .82285        .38066E-06   -1.5433    
   6  Prefactor     22.788        15.138        .67133E-06   -1.4753    
   7  norm          .10000E-03    1.9215        .45938E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          70.675        48.017        .19087E-05   -1.4025    
   9  Prefactor     .26156E-01    39.749        .16049       -1.5676    
  10  Prefactor     .10001E-03    2.3551        .38682E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .88837E-01    1.0278        .47622E-04   -1.5648    
  12  Prefactor     .10000E-03    13.851        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    1.1429        .20839        .20557E-05   -.88386    
  14  Prefactor     1.0339        .17693        .18326E-05   -.91608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36506e-11
Minuit parameter uncertainties:
  1  14.6584
  2  6.87595
  3  2.70627e-08
  4  6.48601e-07
  5  0.822855
  6  15.1402
  7  6.09518e-09
  8  48.0429
  9  2.03674
  10  0.000324145
  11  0.604024
  12  1.97685e-07
  13  0.208543
  14  0.177032
Done.

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

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  1.000e-04  6.095e-09  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  1.592e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.034e+00  1.770e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.143e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 136.402 13.975
Photon Flux Upper Limit: 1.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6594/likelihoodResults_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.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) = 7204.31815781
delta logL = -0.0022749363734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7204.31588289
delta logL = -1.50157575263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5873       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   7204.316     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    468.20        .11493E-02** at limit **
   2  alpha         1.4629        2.6801        .18122       -.23212E-07
   3  Normalizat    1.1429        .17581        .25697E-03    .13405E-04
   4  Prefactor     1.0339        .15075        .22908E-03    .15037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.46291
  Normalizat = 1.14291
  Prefactor  = 1.03389
 **********
 **   18 **HESSE 
 **********

 FCN=   7204.316     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9443        .22987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4629        2.9951        .72487E-02   -.42776    
   3  Normalizat    1.1429        .20541        .10279E-04   -.88386    
   4  Prefactor     1.0339        .17613        .91632E-05   -.91608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67965e-11
Minuit parameter uncertainties:
  1  1.88712e-05
  2  163.349
  3  0.205555
  4  0.176231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6594': 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) = 7204.31588257
delta logL = 3.03632077703e-07

Extracting fit parameters...

4FGL J0905.6+1358
   Spectrum: LogParabola
282         norm:  1.000e-04  1.887e-05  1.000e-04  1.000e+04 ( 1.000e-13)
283        alpha:  1.463e+00  1.633e+02  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.283e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  2.458e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  1.034e+00  1.762e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.143e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.402 13.975

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/6594/cmap_HighResolution_248918401_249177601_4FGL_J0905.6+1358_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', job_status='DONE', photon_flux_upper_limit='1.75e-08', time_completed='2021-08-31 00:47:18.981893', job_id='6594', GAL2='1.03', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630396038.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.59' WHERE bin_id='37' AND source_name='4FGL J0905.6+1358' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 00:47:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 6594: <4FGL_J0905.6+1358_daily_bin37> in cluster <slac> Done

Job <4FGL_J0905.6+1358_daily_bin37> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 00:35:18 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 00:35:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 00:35:22 2021
Terminated at Tue Aug 31 00:47:23 2021
Results reported at Tue Aug 31 00:47:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0905.6+1358_daily_bin37 136.402 13.975 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0905.6+1358 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            725 sec.

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

