/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 210 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 = 7389
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin603
RA = 147.244, Dec = 0.3717
tmin = 395625601, tmax = 395884801
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='516481', job_status='RUN', time_executed='2021-09-01 02:49:45.284068', time_epoch_executed='1630489785.28' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516481

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516481/ft1_4FGL_J0948.9+0022_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516481/ft1_4FGL_J0948.9+0022_daily_bin603.fits outfile=/scratch/kocevski/516481/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin603.fits ra=147.244 dec=0.3717 rad=12.0 tmin=395625601.0 tmax=395884801.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.52
user 4.27
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.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/516481/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin603.fits evtable="EVENTS" outfile="/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits" evtable="EVENTS" scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits sctable="SC_DATA" outfile=/scratch/kocevski/516481/ltcube_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.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/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits
.....................!
real 12.16
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/516481/ltcube_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits outfile=/scratch/kocevski/516481/expmap_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.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/516481/ltcube_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits
.....................!
real 189.99
user 185.21
sys 4.43

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

Setting source of interest to:
4FGL J0948.9+0022 @ 147.244 0.3717

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits outfile=/scratch/kocevski/516481/cmap_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.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=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits outfile=/scratch/kocevski/516481/cmap_HighResolution_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.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=147.244 yref=0.3717 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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516481/Model_4FGL_J0948.9+0022_daily_bin603.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/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits.....................!
real 58.65
user 57.39
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits', '/scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits', expMap='/scratch/kocevski/516481/expmap_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits', expCube='/scratch/kocevski/516481/ltcube_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516481/Model_4FGL_J0948.9+0022_daily_bin603.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0948.9+0022'

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516481/ft1_filtered_4FGL_J0948.9+0022_daily_bin603.fits
Spacecraft file(s): /scratch/kocevski/516481/ft2_4FGL_J0948.9+0022_daily_bin603.fits
Exposure map: /scratch/kocevski/516481/expmap_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits
Exposure cube: /scratch/kocevski/516481/ltcube_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516481/Model_4FGL_J0948.9+0022_daily_bin603.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) = 5755.82705328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2327       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.682       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0623       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7514       1.0000         .10000E-03   10000.    
    10 'norm      '    .11339E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.484       1.0000         .10000E-03   10000.    
    15 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1658       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+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=   5755.817     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     3051 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2333        2.4322        .16431E-03   -.29835E-03
   2  norm          .10000E-03    2.7778        .12275E-02** at limit **
   3  Prefactor     16.186        22.254        .99609E-04    .35381E-05
   4  Prefactor     .10000E-03    .78428        .65523E-03** at limit **
   5  Prefactor     75.654        55.154        .46156E-04   -.54189E-05
   6  Prefactor     .25933        242.97        .46761E-02    .75183E-04
   7  Prefactor     .10000E-03    15.274        .18142E-02** at limit **
   8  norm          2.0627        2.3945        .12294E-03   -.18772E-04
   9  norm          3.7512        1.6324        .60722E-04   -.40254E-04
  10  norm          .10000E-03    1.3081        .85982E-03** at limit **
  11  norm          1.0938        1.0145        .69288E-03   -.12959E-03
  12  Prefactor     16.213        13.362        .99441E-04   -.12004E-04
  13  Prefactor     36.107        50.111        .66769E-04   -.35246E-04
  14  Prefactor     12.540        37.288        .11337E-03   -.38106E-05
  15  norm          .10002E-03    94.367        .53381E-02** at limit **
  16  Prefactor     16.918        13.735        .97315E-04    .48014E-04
  17  Prefactor     .10000E-03    61.177        .18142E-02** at limit **
  18  Prefactor     .10000E-03    75.506        .18142E-02** at limit **
  19  Prefactor     .10000E-03    7.9041        .18142E-02** at limit **
  20  norm          3.3154        1.8792        .73407E-04    .55444E-04
  21  Prefactor     7.1657        9.0210        .14985E-03    .26175E-04
  22  Normalizat    1.2956        .25385        .23898E-03   -.27382E-03
  23  Prefactor     .62018        .17279        .25334E-03   -.14423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23328
  norm       = 0.0001
  Prefactor  = 16.1857
  Prefactor  = 0.0001
  Prefactor  = 75.6539
  Prefactor  = 0.25933
  Prefactor  = 0.0001
  norm       = 2.06267
  norm       = 3.75124
  norm       = 0.000100002
  norm       = 1.09377
  Prefactor  = 16.2132
  Prefactor  = 36.107
  Prefactor  = 12.5398
  norm       = 0.000100017
  Prefactor  = 16.9183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31544
  Prefactor  = 7.1657
  Normalizat = 1.29563
  Prefactor  = 0.620177
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.817     FROM HESSE     STATUS=OK           352 CALLS     3403 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2333        2.4320        .65724E-05   -1.5486    
   2  norm          .10000E-03    2.7783        .24550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.186        22.247        .39844E-05   -1.4903    
   4  Prefactor     .10000E-03    .78429        .13105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     75.654        55.134        .92311E-05   -1.3966    
   6  Prefactor     .25933        243.54        .18704E-02   -1.5606    
   7  Prefactor     .10000E-03    15.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0627        2.3941        .49176E-05   -1.5421    
   9  norm          3.7512        1.6314        .24289E-05   -1.5321    
  10  norm          .10000E-03    1.3129        .17196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0938        1.0145        .27715E-04   -1.5499    
  12  Prefactor     16.213        13.353        .39776E-05   -1.4902    
  13  Prefactor     36.107        50.049        .26707E-05   -1.4505    
  14  Prefactor     12.540        37.255        .45348E-05   -1.5000    
  15  norm          .10002E-03    97.143        .21353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.918        13.685        .38926E-05   -1.4885    
  17  Prefactor     .10000E-03    61.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    75.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3154        1.8785        .29363E-05   -1.5344    
  21  Prefactor     7.1657        9.0135        .59939E-05   -1.5173    
  22  Normalizat    1.2956        .25182        .47796E-04   -.83697    
  23  Prefactor     .62018        .17279        .10133E-04   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50019e-09
Minuit parameter uncertainties:
  1  2.43221
  2  2.44916e-06
  3  22.2586
  4  1.10584e-07
  5  55.1718
  6  15.9566
  7  1.16044e-05
  8  2.39417
  9  1.63145
  10  0.000105463
  11  1.01453
  12  13.3551
  13  50.1075
  14  37.3237
  15  0.00258528
  16  13.6872
  17  7.84968e-07
  18  0.000140559
  19  8.26371e-06
  20  1.87853
  21  9.01518
  22  0.252054
  23  0.172935
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.055e-04  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  6.202e-01  1.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.296e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516481/likelihoodResults_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.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) = 5755.82035401
delta logL = -0.00370063182709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5755.39792773
delta logL = 0.418725645447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17262       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5755.398     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      317 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17264        7.8111        .76505E-02    .18584E-02
   2  alpha         5.0000        2.5102        .46267    ** at limit **
   3  Normalizat    1.2172        .10108        .55527E-01   -.17970E-04
   4  Prefactor     .65722        .62156E-01    .41829E-01    .34829E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.172644
  alpha      = 5
  Normalizat = 1.21725
  Prefactor  = 0.657222
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.398     FROM HESSE     STATUS=OK            35 CALLS      352 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17264        .24814        .34651E-04   -1.5625    
   2  alpha         5.0000        4.7922        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2172        .23888        .24554E-03   -.86071    
   4  Prefactor     .65722        .17579        .24677E-03   -1.0523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07799e-11
Minuit parameter uncertainties:
  1  0.248138
  2  1.37644e-05
  3  0.239095
  4  0.175941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516481': 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) = 5755.39792772
delta logL = 0.41872565673

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.726e-01  2.481e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  1.376e-05  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  6.572e-01  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.217e+00  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

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/516481/cmap_HighResolution_395625601_395884801_4FGL_J0948.9+0022_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 03:00:03.066402', job_id='516481', GAL2='0.66', fit_tolerance='1e-08', EG2='1.22', EG='1.30', time_epoch_completed='1630490403.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.19e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='603' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 516481: <4FGL_J0948.9+0022_daily_bin603> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:45:59 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:00 2021
Terminated at Wed Sep  1 03:00:03 2021
Results reported at Wed Sep  1 03:00:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin603 147.244 0.3717 395625601 395884801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0948.9+0022 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

