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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin88
RA = 117.164, Dec = 24.0166
tmin = 262137601, tmax = 262396801
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='908600', job_status='RUN', time_executed='2021-08-28 14:32:54.984909', time_epoch_executed='1630186374.98' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908600/ft1_4FGL_J0748.6+2400_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908600/ft1_4FGL_J0748.6+2400_daily_bin88.fits outfile=/scratch/kocevski/908600/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin88.fits ra=117.164 dec=24.0166 rad=12.0 tmin=262137601.0 tmax=262396801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.58
user 0.91
sys 0.64

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.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/908600/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.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.92
user 0.28
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/908600/ltcube_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.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/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits
.....................!
real 10.27
user 9.42
sys 0.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/908600/ltcube_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits outfile=/scratch/kocevski/908600/expmap_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.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/908600/ltcube_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits
.....................!
real 141.59
user 137.24
sys 4.06

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 IC 443 in ROI with RadialGaussian spatial model.
Added 170 point sources and 1 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 J0748.6+2400 @ 117.164 24.0166

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits outfile=/scratch/kocevski/908600/cmap_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.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=117.164 yref=24.0166 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.87
user 0.28
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits outfile=/scratch/kocevski/908600/cmap_HighResolution_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.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=117.164 yref=24.0166 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.90
user 0.29
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908600/Model_4FGL_J0748.6+2400_daily_bin88.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 IC 443
Working on...
/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits.....................!
real 90.90
user 89.10
sys 1.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits', '/scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits', expMap='/scratch/kocevski/908600/expmap_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits', expCube='/scratch/kocevski/908600/ltcube_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/908600/Model_4FGL_J0748.6+2400_daily_bin88.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.6+2400'

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  6.975e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/908600/ft1_filtered_4FGL_J0748.6+2400_daily_bin88.fits
Spacecraft file(s): /scratch/kocevski/908600/ft2_4FGL_J0748.6+2400_daily_bin88.fits
Exposure map: /scratch/kocevski/908600/expmap_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits
Exposure cube: /scratch/kocevski/908600/ltcube_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/908600/Model_4FGL_J0748.6+2400_daily_bin88.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) = 11269.3805851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
     2 'norm      '    10.362       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9738       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2781       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6937       1.0000         .10000E-03   10000.    
     6 'norm      '    .40316       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12566E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28940E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    24.825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84175       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.906       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91197       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=   11269.38     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     3114 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.498        7.5999        .17664E-07   -.40822E-04
   2  norm          10.367        11.240        .26933E-05   -.11521E-03
   3  norm          2.9740        .78196        .20752E-07   -.10348E-03
   4  Prefactor     6.2795        5.0153        .31809E-06   -.58210E-04
   5  norm          1.6939        1.0303        .65318E-07   -.27056E-03
   6  norm          .40378        .85626        .60694E-06    .95539E-04
   7  Prefactor     .10000E-03    4.7351       -.14995E-06** at limit **
   8  norm          .10000E-03    1.9633        .12420E-06** at limit **
   9  Prefactor     .10000E-03    25.596        .14657E-06** at limit **
  10  Prefactor     .10000E-03    12.242        .20191E-06** at limit **
  11  Prefactor     .10000E-03    60.339        .26924E-06** at limit **
  12  Prefactor     7.6348        3.4709       -.39335E-06    .16589E-03
  13  Prefactor     .10000E-03    7.8040        .31572E-07** at limit **
  14  norm          11.761        11.044        .19138E-05   -.80857E-04
  15  Prefactor     .10007E-03    1433.7       -.44572E-04** at limit **
  16  norm          24.823        33.884        .18776E-06   -.73797E-05
  17  Prefactor     .10000E-03    9.6206        .34900E-07** at limit **
  18  Prefactor     .81127        11.531        .16217E-05   -.23708E-03
  19  Prefactor     18.781        23.934        .38487E-06   -.27399E-04
  20  Prefactor     36.905        20.328       -.17952E-07   -.10118E-03
  21  norm          1.1462        1.0600        .23046E-06   -.19627E-04
  22  Prefactor     .10000E-03    1.9485        .14964E-07** at limit **
  23  Normalizat    1.3276        .16361       -.13695E-05   -.22835E-03
  24  Prefactor     .91188        .10831       -.87693E-06   -.23339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4975
  norm       = 10.3668
  norm       = 2.97395
  Prefactor  = 6.27949
  norm       = 1.69393
  norm       = 0.403781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63483
  Prefactor  = 0.0001
  norm       = 11.7611
  Prefactor  = 0.000100067
  norm       = 24.8235
  Prefactor  = 0.0001
  Prefactor  = 0.811266
  Prefactor  = 18.781
  Prefactor  = 36.9051
  norm       = 1.14616
  Prefactor  = 0.0001
  Normalizat = 1.32764
  Prefactor  = 0.911877
 **********
 **   18 **HESSE 
 **********

 FCN=   11269.38     FROM HESSE     STATUS=OK           403 CALLS     3517 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.498        7.5957        .12367E-03   -1.5060    
   2  norm          10.367        11.243        .62235E-03   -1.5064    
   3  norm          2.9740        .78237        .46630E-04   -1.5363    
   4  Prefactor     6.2795        5.0190        .16020E-03   -1.5207    
   5  norm          1.6939        1.0219        .80743E-04   -1.5448    
   6  norm          .40378        .86798        .13727E-03   -1.5581    
   7  Prefactor     .10000E-03    4.7700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0498        .29038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.6348        3.4618        .12810E-03   -1.5155    
  13  Prefactor     .10000E-03    7.8095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.761        11.078        .58416E-03   -1.5022    
  15  Prefactor     .10007E-03    1482.4        .39734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.823        33.887        .80398E-04   -1.4711    
  17  Prefactor     .10000E-03    9.6278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .81127        99.904        .67993E-02   -1.5528    
  19  Prefactor     18.781        23.915        .92436E-04   -1.4841    
  20  Prefactor     36.905        20.180        .65971E-04   -1.4492    
  21  norm          1.1462        1.0320        .94213E-04   -1.5494    
  22  Prefactor     .10000E-03    1.9534        .14470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3276        .19152        .28342E-03   -.82745    
  24  Prefactor     .91188        .12689        .22590E-03   -.95727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4702e-09
Minuit parameter uncertainties:
  1  7.59639
  2  11.2457
  3  0.782373
  4  5.01936
  5  1.02193
  6  0.868011
  7  1.17843e-05
  8  1.06017e-05
  9  4.39731e-05
  10  4.06768e-05
  11  0.000176376
  12  3.46188
  13  5.11405e-06
  14  11.0801
  15  0.0204709
  16  33.9128
  17  1.4883e-06
  18  18.0351
  19  23.927
  20  20.1838
  21  1.03199
  22  1.30463e-06
  23  0.191618
  24  0.126934
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.068e-05  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.339e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.119e-01  1.269e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.328e+00  1.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.164 24.017
Photon Flux Upper Limit: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908600/likelihoodResults_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.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) = 11269.3763524
delta logL = -0.000383377560865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11269.3759689
delta logL = 3.8593498175e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3662       1.0000          .0000       10.000    
     3 'Normalizat'    1.3277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91187       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11269.38     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6330.0        .18142E-02** at limit **
   2  Index         2.3947        5.7042        .50000       -.19930E-04
   3  Normalizat    1.3276        .11419        .28342E-03    .19085E-03
   4  Prefactor     .91188        .77446E-01    .22590E-03    .19657E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11269.38     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      436 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6330.0        .65239E-03** at limit **
   2  Index         2.3947        5.7042        .23583E-06   -.19930E-04
   3  Normalizat    1.3276        .11419        .12900E-07    .19085E-03
   4  Prefactor     .91188        .77446E-01    .49646E-08    .19657E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11269.38     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      470 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    14.265        .36285E-03** at limit **
   2  Index         2.3949        6.1971        .50000       -.19933E-04
   3  Normalizat    1.3276        .18303        .11337E-04    .18211E-03
   4  Prefactor     .91188        .12433        .90361E-05    .18620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.39488
  Normalizat = 1.32765
  Prefactor  = 0.911877
 **********
 **   18 **HESSE 
 **********

 FCN=   11269.38     FROM HESSE     STATUS=OK            29 CALLS      499 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.244        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3949        6.1969        .50000       -.54805    
   3  Normalizat    1.3276        .18305        .22674E-05   -.82745    
   4  Prefactor     .91188        .12435        .18072E-05   -.95727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7663e-10
Minuit parameter uncertainties:
  1  0.000529856
  2  4.27454
  3  0.183137
  4  0.124392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908600': 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) = 11269.3759687
delta logL = 2.51471647061e-07

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.299e-04  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.395e+00  4.275e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  1.118e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.119e-01  1.244e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.328e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.164 24.017

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/908600/cmap_HighResolution_262137601_262396801_4FGL_J0748.6+2400_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-08-28 14:46:19.415120', job_id='908600', GAL2='0.91', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630187179.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='88' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:46:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 908600: <4FGL_J0748.6+2400_daily_bin88> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin88> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 14:30:23 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:30:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 14:30:25 2021
Terminated at Sat Aug 28 14:46:20 2021
Results reported at Sat Aug 28 14:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin88 117.164 24.0166 262137601 262396801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.6+2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   810.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

