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


Performing analysis on: 4FGL_J0748.6+2400_daily_bin60
RA = 117.164, Dec = 24.0166
tmin = 254880001, tmax = 255139201
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='908559', job_status='RUN', time_executed='2021-08-28 14:34:13.587224', time_epoch_executed='1630186453.59' WHERE source_name='4FGL J0748.6+2400' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908559/ft1_4FGL_J0748.6+2400_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908559/ft1_4FGL_J0748.6+2400_daily_bin60.fits outfile=/scratch/kocevski/908559/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin60.fits ra=117.164 dec=24.0166 rad=12.0 tmin=254880001.0 tmax=255139201.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 6.08
user 1.23
sys 4.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.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/908559/ft1_filteredMKT_4FGL_J0748.6+2400_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.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 5.17
user 0.32
sys 4.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/908559/ltcube_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.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/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits
.....................!
real 18.21
user 12.64
sys 5.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/908559/ltcube_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits outfile=/scratch/kocevski/908559/expmap_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.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/908559/ltcube_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits
.....................!
real 196.33
user 185.37
sys 10.56

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/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits outfile=/scratch/kocevski/908559/cmap_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.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 5.07
user 0.38
sys 4.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits outfile=/scratch/kocevski/908559/cmap_HighResolution_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.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 5.07
user 0.40
sys 4.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908559/Model_4FGL_J0748.6+2400_daily_bin60.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/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits.....................!
real 74.47
user 66.94
sys 7.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits', '/scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits', expMap='/scratch/kocevski/908559/expmap_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits', expCube='/scratch/kocevski/908559/ltcube_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/908559/Model_4FGL_J0748.6+2400_daily_bin60.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/908559/ft1_filtered_4FGL_J0748.6+2400_daily_bin60.fits
Spacecraft file(s): /scratch/kocevski/908559/ft2_4FGL_J0748.6+2400_daily_bin60.fits
Exposure map: /scratch/kocevski/908559/expmap_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits
Exposure cube: /scratch/kocevski/908559/ltcube_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/908559/Model_4FGL_J0748.6+2400_daily_bin60.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) = 5740.24805933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.419       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3675       1.0000         .10000E-03   10000.    
     3 'norm      '    .26100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0791       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .56614E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.492       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6305       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
    21 'norm      '    1.1949       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.126       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85680       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0102       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=   5740.160     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2765 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.419        13.245       -.20916E-06    .19963E-05
   2  norm          7.3674        12.719       -.56138E-06   -.58065E-04
   3  norm          .26090        .60463       -.29167E-06   -.22420E-02
   4  Prefactor     .10000E-03    7.5328        .36609E-06** at limit **
   5  norm          4.0789        1.6061       -.48854E-07    .17984E-04
   6  norm          1.8007        1.3427       -.31430E-07    .13420E-03
   7  Prefactor     .10000E-03    7.2417       -.32185E-06** at limit **
   8  norm          .10000E-03    1.2395       -.89194E-08** at limit **
   9  Prefactor     .10000E-03    21.028        .33105E-05** at limit **
  10  Prefactor     26.598        20.757        .95066E-06   -.12742E-05
  11  Prefactor     .10000E-03    30.149       -.14501E-04** at limit **
  12  Prefactor     .10000E-03    1.9185       -.11980E-06** at limit **
  13  Prefactor     .10000E-03    56.794       -.75082E-05** at limit **
  14  norm          4.7521        13.126       -.74688E-06   -.70459E-04
  15  Prefactor     .10000E-03    41.274        .21211E-04** at limit **
  16  norm          27.480        89.273       -.21762E-04    .47913E-04
  17  Prefactor     1.5990        84.160       -.49042E-04    .11138E-04
  18  Prefactor     11.127        22.881        .11810E-04    .15519E-04
  19  Prefactor     .10000E-03    10.135       -.26935E-06** at limit **
  20  Prefactor     16.880        20.966        .44032E-06    .24329E-04
  21  norm          1.1954        1.3646       -.16085E-06   -.52286E-03
  22  Prefactor     17.126        10.921       -.98075E-07    .23778E-04
  23  Normalizat    .85669        .20208        .89284E-06    .21626E-03
  24  Prefactor     1.0102        .13950        .76419E-06    .25135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4187
  norm       = 7.36739
  norm       = 0.260897
  Prefactor  = 0.0001
  norm       = 4.07892
  norm       = 1.80074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5976
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.75211
  Prefactor  = 0.000100004
  norm       = 27.4796
  Prefactor  = 1.59898
  Prefactor  = 11.1268
  Prefactor  = 0.0001
  Prefactor  = 16.8797
  norm       = 1.19541
  Prefactor  = 17.1261
  Normalizat = 0.856688
  Prefactor  = 1.01022
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.160     FROM HESSE     STATUS=OK           403 CALLS     3168 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.419        13.240        .82773E-04   -1.4740    
   2  norm          7.3674        12.714        .14776E-03   -1.5165    
   3  norm          .26090        .54443        .87077E-03   -1.5606    
   4  Prefactor     .10000E-03    7.7571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0789        1.6051        .58126E-04   -1.5304    
   6  norm          1.8007        1.3392        .73202E-04   -1.5440    
   7  Prefactor     .10000E-03    7.3080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2432        .82333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.598        20.754        .77686E-04   -1.4676    
  11  Prefactor     .10000E-03    30.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4241        .20206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7521        13.120        .18459E-03   -1.5272    
  15  Prefactor     .10000E-03    40.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.480        89.260        .76406E-04   -1.4659    
  17  Prefactor     1.5990        87.571        .33118E-03   -1.5455    
  18  Prefactor     11.127        22.893        .12015E-03   -1.5041    
  19  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.880        20.834        .97488E-04   -1.4886    
  21  norm          1.1954        1.3238        .82033E-04   -1.5489    
  22  Prefactor     17.126        10.897        .96781E-04   -1.4880    
  23  Normalizat    .85669        .23280        .29832E-03   -.97999    
  24  Prefactor     1.0102        .16310        .19596E-03   -.92390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51251e-10
Minuit parameter uncertainties:
  1  13.2415
  2  12.7189
  3  0.544443
  4  3.27904e-05
  5  1.60511
  6  1.33924
  7  3.4837e-07
  8  1.95049e-06
  9  0.00010378
  10  20.7593
  11  0.000491395
  12  7.13303e-05
  13  0.000373332
  14  13.1281
  15  0.000843778
  16  89.6984
  17  23.7022
  18  22.9113
  19  7.58315e-06
  20  20.8431
  21  1.32382
  22  10.8984
  23  0.233076
  24  0.163179
Done.

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

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  2.660e+01  2.076e+01  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:  1.010e+00  1.632e-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:  8.567e-01  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 117.164 24.017
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.57e-05

TS (Fixed Index): 2.67
Ra Dec: 117.164 24.017
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/908559/likelihoodResults_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.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) = 5740.15591917
delta logL = 0.00421724982698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5740.15273629
delta logL = 0.00740013130053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.623       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4126       1.0000          .0000       10.000    
     3 'Normalizat'    .85285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0120       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.

 FCN=   5740.153     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.623        511.35        .20181E-02    .35775E-03
   2  Index         2.4126        6.2040        .12979        .10379E-03
   3  Normalizat    .85273        .98865E-01    .67572E-01    .18090E-04
   4  Prefactor     1.0121        .59779E-01    .43047E-01    .27150E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6234
  Index      = 2.41264
  Normalizat = 0.852732
  Prefactor  = 1.0121
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.153     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.623        27.231        .80726E-04   -1.4715    
   2  Index         2.4126        .64953        .64050E-02   -.54389    
   3  Normalizat    .85273        .22635        .29894E-03   -.98142    
   4  Prefactor     1.0121        .15930        .19580E-03   -.92327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63463e-09
Minuit parameter uncertainties:
  1  27.2452
  2  0.652049
  3  0.226599
  4  0.159378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908559': 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) = 5740.15273614
delta logL = 0.00740028410655

Extracting fit parameters...

4FGL J0748.6+2400
   Spectrum: PowerLaw
256    Prefactor:  2.462e+01  2.725e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.413e+00  6.520e-01  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:  1.012e+00  1.594e-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:  8.527e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 117.164 24.017
Photon Index (Free Index): 2.41 +/- 0.65
Photon Flux (Free Index): 5.91e-08 +/- 4.92e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.77e-05

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/908559/cmap_HighResolution_254880001_255139201_4FGL_J0748.6+2400_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='1.90e-05', photon_flux_error='4.40e-08', dlogl='7.40e-03', energy_flux='2.01e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-08-28 14:46:21.176395', photon_index_error2='0.65', photon_index2='2.41', ts='2.67', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.77e-05', EG='0.86', time_epoch_completed='1630187181.18', return_code='0', job_id='908559', GAL2='1.01', EG2='0.85', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.92e-08', ts2='2.66', photon_index='2.34' WHERE bin_id='60' AND source_name='4FGL J0748.6+2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 908559: <4FGL_J0748.6+2400_daily_bin60> in cluster <slac> Done

Job <4FGL_J0748.6+2400_daily_bin60> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 14:30:21 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:30:22 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:22 2021
Terminated at Sat Aug 28 14:46:22 2021
Results reported at Sat Aug 28 14:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.6+2400_daily_bin60 117.164 24.0166 254880001 255139201 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 :                                   799.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

