/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 197 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0753.9+0923_daily_bin434
RA = 118.491, Dec = 9.3904
tmin = 351820801, tmax = 352080001
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='992487', job_status='RUN', time_executed='2021-08-28 18:49:17.370001', time_epoch_executed='1630201757.37' WHERE source_name='4FGL J0753.9+0923' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992487/ft1_4FGL_J0753.9+0923_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992487/ft1_4FGL_J0753.9+0923_daily_bin434.fits outfile=/scratch/kocevski/992487/ft1_filteredMKT_4FGL_J0753.9+0923_daily_bin434.fits ra=118.491 dec=9.3904 rad=12.0 tmin=351820801.0 tmax=352080001.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.85
user 3.38
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.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/992487/ft1_filteredMKT_4FGL_J0753.9+0923_daily_bin434.fits evtable="EVENTS" outfile="/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/992487/ltcube_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.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/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits
.....................!
real 13.38
user 11.72
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/992487/ltcube_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits outfile=/scratch/kocevski/992487/expmap_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.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/992487/ltcube_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits
.....................!
real 191.46
user 185.12
sys 5.89

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 166 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 J0753.9+0923 @ 118.491 9.3904

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits outfile=/scratch/kocevski/992487/cmap_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.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=118.491 yref=9.3904 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.68
user 0.38
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits outfile=/scratch/kocevski/992487/cmap_HighResolution_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.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=118.491 yref=9.3904 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.68
user 0.37
sys 1.28

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992487/Model_4FGL_J0753.9+0923_daily_bin434.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits.....................!
real 86.95
user 84.04
sys 2.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits', '/scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits', expMap='/scratch/kocevski/992487/expmap_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits', expCube='/scratch/kocevski/992487/ltcube_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992487/Model_4FGL_J0753.9+0923_daily_bin434.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0753.9+0923'

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  2.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  2.464e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992487/ft1_filtered_4FGL_J0753.9+0923_daily_bin434.fits
Spacecraft file(s): /scratch/kocevski/992487/ft2_4FGL_J0753.9+0923_daily_bin434.fits
Exposure map: /scratch/kocevski/992487/expmap_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits
Exposure cube: /scratch/kocevski/992487/ltcube_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992487/Model_4FGL_J0753.9+0923_daily_bin434.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) = 6263.93030417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.45       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3650       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.770       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3848       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2985       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.638       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5740       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .37379       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3883       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76212       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6263.925     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2707 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.44        71.546       -.61585E-05    .18928E-05
   2  norm          1.3650        2.2127        .13470E-06   -.63859E-03
   3  norm          3.3877        1.4623       -.46917E-07    .36761E-03
   4  Prefactor     62.561        64.645       -.26918E-05    .29312E-05
   5  Prefactor     32.768        43.223       -.18263E-05    .71810E-05
   6  norm          2.3846        1.6213        .14570E-06    .21741E-02
   7  norm          1.3653        1.5995       -.81208E-07   -.51928E-03
   8  Prefactor     .10053E-03    7.2306       -.20073E-05** at limit **
   9  Prefactor     23.394        23.907       -.43852E-07    .66748E-05
  10  Prefactor     .10000E-03    13.118       -.89812E-06** at limit **
  11  Prefactor     1.2985        1.7523       -.10508E-06   -.14524E-03
  12  norm          .10000E-03    19.802        .22366E-04** at limit **
  13  Prefactor     25.394        13.662       -.35046E-06   -.23835E-03
  14  Prefactor     .10000E-03    37.576        .29096E-04** at limit **
  15  norm          .10000E-03    33.933        .56169E-06** at limit **
  16  Prefactor     51.637        34.807       -.41807E-06    .29166E-03
  17  norm          .10000E-03    3.4955       -.73468E-09** at limit **
  18  norm          .10000E-03    22.960       -.34630E-04** at limit **
  19  norm          5.5742        4.4027       -.13568E-05    .35308E-04
  20  Prefactor     .10000E-03    69.464       -.14262E-04** at limit **
  21  Prefactor     .10000E-03    3.9319       -.79267E-07** at limit **
  22  norm          .37346        .77258       -.20203E-06   -.17124E-02
  23  Normalizat    1.3881        .20573        .81606E-06    .45908E-03
  24  Prefactor     .76220        .12945        .84675E-06    .32373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.441
  norm       = 1.36501
  norm       = 3.38772
  Prefactor  = 62.5609
  Prefactor  = 32.7682
  norm       = 2.38464
  norm       = 1.36531
  Prefactor  = 0.000100533
  Prefactor  = 23.3941
  Prefactor  = 0.0001
  Prefactor  = 1.29853
  norm       = 0.0001
  Prefactor  = 25.3939
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.6369
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.57415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.373461
  Normalizat = 1.38813
  Prefactor  = 0.762198
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.925     FROM HESSE     STATUS=OK           395 CALLS     3102 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.44        71.530        .17970E-03   -1.3463    
   2  norm          1.3650        2.1574        .13391E-03   -1.5474    
   3  norm          3.3877        1.4598        .60020E-04   -1.5340    
   4  Prefactor     62.561        64.418        .50731E-04   -1.4124    
   5  Prefactor     32.768        42.978        .69998E-04   -1.4562    
   6  norm          2.3846        1.4553        .71697E-04   -1.5399    
   7  norm          1.3653        1.5707        .10326E-03   -1.5474    
   8  Prefactor     .10053E-03    69.580        .35762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.394        23.908        .82816E-04   -1.4740    
  10  Prefactor     .10000E-03    13.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2985        1.7260        .11769E-03   -1.5480    
  12  norm          .10000E-03    19.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.394        13.676        .79493E-04   -1.4700    
  14  Prefactor     .10000E-03    37.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    33.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.637        34.903        .55811E-04   -1.4270    
  17  norm          .10000E-03    3.5009        .14451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5742        4.4004        .14249E-03   -1.5236    
  20  Prefactor     .10000E-03    69.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.9359        .15327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .37346        .64105        .96874E-03   -1.5586    
  23  Normalizat    1.3881        .23178        .26946E-03   -.80973    
  24  Prefactor     .76220        .14786        .22275E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43692e-09
Minuit parameter uncertainties:
  1  71.5796
  2  2.1575
  3  1.45984
  4  64.4896
  5  43.019
  6  1.45536
  7  1.57074
  8  0.012195
  9  23.9181
  10  9.20469e-07
  11  1.72602
  12  6.85933e-05
  13  13.6778
  14  6.13908e-06
  15  4.50642e-06
  16  34.9173
  17  1.54742e-06
  18  0.000127795
  19  4.40061
  20  0.000202547
  21  1.21936e-06
  22  0.641057
  23  0.231959
  24  0.147937
Done.

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

Extracting fit parameters...

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  1.000e-04  6.859e-05  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  2.464e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.622e-01  1.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.388e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 118.491 9.390
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992487/likelihoodResults_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.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) = 6263.92504302
delta logL = -0.000239946641159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6263.92480865
delta logL = -5.57845305593e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2230       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+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=   6263.925     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      284 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    670.89        .18142E-01** at limit **
   2  alpha         1.7677        2.6009        .17428       -.42009E-07
   3  Normalizat    1.3881        .24853E-01    .26946E-03    .38165E-02
   4  Prefactor     .76220        .15828E-01    .22275E-03    .46150E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.76773
  Normalizat = 1.38813
  Prefactor  = 0.762205
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.925     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    34.689        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7677        4.0506        .69713E-02   -.29727    
   3  Normalizat    1.3881        .22032        .53893E-04   -.80973    
   4  Prefactor     .76220        .14034        .44549E-04   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93683e-08
Minuit parameter uncertainties:
  1  0.000635009
  2  491.94
  3  0.220467
  4  0.140402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992487': 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) = 6263.92480201
delta logL = 1.06576044345e-06

Extracting fit parameters...

4FGL J0753.9+0923
   Spectrum: LogParabola
259         norm:  1.000e-04  6.350e-04  1.000e-04  1.000e+04 ( 1.000e-13)
260        alpha:  1.768e+00  4.919e+02  0.000e+00  5.000e+00 ( 1.000e+00)
261         beta:  3.240e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.320e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.622e-01  1.404e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.388e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 118.491 9.390

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/992487/cmap_HighResolution_351820801_352080001_4FGL_J0753.9+0923_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-08-28 19:01:22.623360', job_id='992487', GAL2='0.76', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630202482.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='434' AND source_name='4FGL J0753.9+0923' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 19:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 992487: <4FGL_J0753.9+0923_daily_bin434> in cluster <slac> Done

Job <4FGL_J0753.9+0923_daily_bin434> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 18:45:30 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 18:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 18:45:31 2021
Terminated at Sat Aug 28 19:01:23 2021
Results reported at Sat Aug 28 19:01:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0753.9+0923_daily_bin434 118.491 9.3904 351820801 352080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0753.9+0923 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

