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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin1444
RA = 147.244, Dec = 0.3717
tmin = 613612801, tmax = 613872001
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='519961', job_status='RUN', time_executed='2021-09-01 02:56:12.042327', time_epoch_executed='1630490172.04' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519961

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519961/ft1_4FGL_J0948.9+0022_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519961/ft1_4FGL_J0948.9+0022_daily_bin1444.fits outfile=/scratch/kocevski/519961/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin1444.fits ra=147.244 dec=0.3717 rad=12.0 tmin=613612801.0 tmax=613872001.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 2.55
user 2.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.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/519961/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/519961/ltcube_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.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/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits
.....................!
real 13.57
user 13.06
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/519961/ltcube_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits outfile=/scratch/kocevski/519961/expmap_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.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/519961/ltcube_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits
.....................!
real 190.87
user 186.08
sys 4.09

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/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits scfile=/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits outfile=/scratch/kocevski/519961/cmap_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits scfile=/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits outfile=/scratch/kocevski/519961/cmap_HighResolution_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.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.58
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits', '/scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits', expMap='/scratch/kocevski/519961/expmap_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits', expCube='/scratch/kocevski/519961/ltcube_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519961/Model_4FGL_J0948.9+0022_daily_bin1444.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/519961/ft1_filtered_4FGL_J0948.9+0022_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/519961/ft2_4FGL_J0948.9+0022_daily_bin1444.fits
Exposure map: /scratch/kocevski/519961/expmap_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits
Exposure cube: /scratch/kocevski/519961/ltcube_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519961/Model_4FGL_J0948.9+0022_daily_bin1444.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) = 9138.69549734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19941E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4315       1.0000         .10000E-03   10000.    
    10 'norm      '    .24088       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6089       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .25932E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7577       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0225       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89669       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0815       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.

 FCN=   9138.611     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2540 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.4478       -.81626E-06** at limit **
   2  norm          1.8432        3.4430       -.62873E-06   -.72894E-03
   3  Prefactor     .10000E-03    3.3795        .33071E-07** at limit **
   4  Prefactor     .10000E-03    1.3848       -.24838E-08** at limit **
   5  Prefactor     .10000E-03    6.9045        .40096E-05** at limit **
   6  Prefactor     10.749        11.758       -.71614E-05    .35989E-04
   7  Prefactor     .10000E-03    4.9464        .28899E-05** at limit **
   8  norm          .10000E-03    1.4914       -.35055E-07** at limit **
   9  norm          3.4317        1.2384       -.13046E-06   -.16039E-03
  10  norm          .24072        .39381       -.70630E-07   -.25424E-02
  11  norm          1.6621        1.1616       -.10720E-06    .29794E-04
  12  Prefactor     5.6080        8.9219       -.10896E-05   -.43082E-05
  13  Prefactor     .10000E-03    12.319       -.48260E-05** at limit **
  14  Prefactor     .10000E-03    18.210       -.42401E-06** at limit **
  15  norm          .10000E-03    18.557       -.21762E-05** at limit **
  16  Prefactor     .10000E-03    7.3744       -.47230E-05** at limit **
  17  Prefactor     31.842        33.635       -.23152E-05    .71336E-04
  18  Prefactor     .10000E-03    11.081        .59584E-05** at limit **
  19  Prefactor     .10000E-03    3.6555       -.49927E-08** at limit **
  20  norm          2.7576        1.0048       -.31215E-07    .16559E-03
  21  Prefactor     7.0229        5.3442       -.49140E-06   -.27794E-03
  22  Normalizat    .89642        .15992        .31393E-05    .22761E-03
  23  Prefactor     1.0818        .12555       -.43663E-06    .54099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  norm       = 1.84322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7486
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.43175
  norm       = 0.240724
  norm       = 1.66214
  Prefactor  = 5.60801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.8422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75755
  Prefactor  = 7.02289
  Normalizat = 0.896423
  Prefactor  = 1.08178
 **********
 **   18 **HESSE 
 **********

 FCN=   9138.611     FROM HESSE     STATUS=OK           366 CALLS     2906 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    5.0372        .21861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8432        3.4468        .23657E-03   -1.5436    
   3  Prefactor     .10000E-03    3.3865        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4112        .10976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.749        11.690        .12225E-03   -1.5052    
   7  Prefactor     .10000E-03    4.9396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5465        .22789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4317        1.2389        .61215E-04   -1.5337    
  10  norm          .24072        .37876        .71500E-04   -1.5610    
  11  norm          1.6621        1.1667        .83514E-04   -1.5450    
  12  Prefactor     5.6080        8.8900        .16963E-03   -1.5234    
  13  Prefactor     .10000E-03    12.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.915        .42900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5875        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.842        33.548        .70902E-04   -1.4579    
  18  Prefactor     .10000E-03    11.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6591        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7576        1.0044        .24512E-04   -1.5376    
  21  Prefactor     7.0229        5.3534        .15138E-03   -1.5178    
  22  Normalizat    .89642        .18337        .27205E-03   -.96586    
  23  Prefactor     1.0818        .14588        .20806E-03   -.90051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27462e-09
Minuit parameter uncertainties:
  1  0.000561769
  2  3.4472
  3  2.08493e-07
  4  6.62543e-06
  5  4.43246e-06
  6  11.6926
  7  2.70822e-06
  8  5.6373e-06
  9  1.23889
  10  0.378766
  11  1.16675
  12  8.89206
  13  1.05423e-05
  14  3.90864e-05
  15  0.000179888
  16  7.09067e-05
  17  33.5676
  18  1.04967e-05
  19  2.37684e-06
  20  1.00445
  21  5.35381
  22  0.183497
  23  0.145934
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.407e-01  3.788e-01  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:  1.082e+00  1.459e-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:  8.964e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/519961/likelihoodResults_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.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) = 9138.40932727
delta logL = 0.201838336983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9138.21213128
delta logL = 0.3990343271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42886E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .91161       1.0000          .0000       5.0000    
     3 'Normalizat'    .91644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0728       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=   9138.212     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      220 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42731E-01    .13350        .57534E-02    .52200E-03
   2  alpha         .91002        .91708        .50000       -.73875E-04
   3  Normalizat    .91637        .14921        .45111E-01    .65431E-04
   4  Prefactor     1.0728        .12491        .38728E-01    .16209E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.042731
  alpha      = 0.910016
  Normalizat = 0.916371
  Prefactor  = 1.07283
 **********
 **   18 **HESSE 
 **********

 FCN=   9138.212     FROM HESSE     STATUS=OK            35 CALLS      255 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42731E-01    .13158        .33456E-03   -1.5667    
   2  alpha         .91002        1.1871        .25697E-01   -.68930    
   3  Normalizat    .91637        .17320        .26934E-03   -.95887    
   4  Prefactor     1.0728        .14501        .20873E-03   -.90340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46535e-08
Minuit parameter uncertainties:
  1  0.131583
  2  1.27874
  3  0.173307
  4  0.145063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519961': 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) = 9138.21213043
delta logL = 0.399035180399

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.273e-02  1.316e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  9.100e-01  1.279e+00  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:  1.073e+00  1.451e-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:  9.164e-01  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 147.244 0.372
Photon Index (Free Index): 0.91 +/- 1.28
Photon Flux (Free Index): 4.02e-09 +/- 8.23e-09
Energy Flux (Free Index): 7.97e-06 +/- 1.40e-05

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/519961/cmap_HighResolution_613612801_613872001_4FGL_J0948.9+0022_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', comment='SUCCESS', energy_flux2='7.97e-06', dlogl='3.99e-01', photon_flux2='4.02e-09', job_status='DONE', time_completed='2021-09-01 03:09:53.918764', photon_index_error2='1.28', photon_index2='0.91', ts='0.49', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='8.34e-08', energy_flux_error2='1.40e-05', EG='0.90', time_epoch_completed='1630490993.92', return_code='0', job_id='519961', GAL2='1.07', EG2='0.92', return_code2='0', photon_flux_error2='8.23e-09', ts2='1.29', photon_index='2.45' WHERE bin_id='1444' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:09:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 519961: <4FGL_J0948.9+0022_daily_bin1444> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin1444> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 02:55:35 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:55:36 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:55:36 2021
Terminated at Wed Sep  1 03:09:55 2021
Results reported at Wed Sep  1 03:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin1444 147.244 0.3717 613612801 613872001 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 :                                   740.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             324.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

