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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin841
RA = 147.244, Dec = 0.3717
tmin = 457315201, tmax = 457574401
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='518085', job_status='RUN', time_executed='2021-09-01 02:55:07.617032', time_epoch_executed='1630490107.62' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518085/ft1_4FGL_J0948.9+0022_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518085/ft2_4FGL_J0948.9+0022_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518085/ft1_4FGL_J0948.9+0022_daily_bin841.fits outfile=/scratch/kocevski/518085/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin841.fits ra=147.244 dec=0.3717 rad=12.0 tmin=457315201.0 tmax=457574401.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.98
user 4.70
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518085/ft1_filtered_4FGL_J0948.9+0022_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/518085/ft2_4FGL_J0948.9+0022_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/518085/ltcube_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.fits outfile=/scratch/kocevski/518085/expmap_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.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/518085/ltcube_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.fits
.....................!
real 192.25
user 186.16
sys 4.34

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/518085/ft1_filtered_4FGL_J0948.9+0022_daily_bin841.fits scfile=/scratch/kocevski/518085/ft2_4FGL_J0948.9+0022_daily_bin841.fits outfile=/scratch/kocevski/518085/cmap_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518085/ft1_filtered_4FGL_J0948.9+0022_daily_bin841.fits scfile=/scratch/kocevski/518085/ft2_4FGL_J0948.9+0022_daily_bin841.fits outfile=/scratch/kocevski/518085/cmap_HighResolution_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.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.57
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10549E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .11409E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20198E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18691E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6187       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4905       1.0000         .10000E-03   10000.    
     9 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .32993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.065       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2324       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2210       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0179       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=   4874.390     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2605 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10106E-03    2.7629       -.85835E-06** at limit **
   2  norm          .10006E-03    10.264        .26617E-05** at limit **
   3  Prefactor     .10000E-03    46.977       -.25991E-05** at limit **
   4  Prefactor     .10000E-03    2.3403       -.11123E-06** at limit **
   5  Prefactor     62.042        59.470       -.83820E-06   -.19143E-03
   6  Prefactor     .10000E-03    8.3901        .13292E-06** at limit **
   7  Prefactor     7.6118        63.133       -.51267E-06   -.39922E-04
   8  norm          4.4901        4.1750       -.15700E-06   -.12757E-03
   9  norm          .10000E-03    .65940        .19245E-06** at limit **
  10  norm          .10000E-03    .33533        .53447E-07** at limit **
  11  norm          .32998        2.3848        .21827E-05    .48210E-03
  12  Prefactor     16.525        14.440        .41412E-07   -.25331E-04
  13  Prefactor     21.058        61.190       -.35222E-06   -.34581E-04
  14  Prefactor     .10000E-03    14.982        .27012E-06** at limit **
  15  norm          .10000E-03    6.5744        .23092E-07** at limit **
  16  Prefactor     .10000E-03    15.428        .41095E-06** at limit **
  17  Prefactor     .10000E-03    18.659       -.63341E-06** at limit **
  18  Prefactor     .10000E-03    42.908        .60893E-06** at limit **
  19  Prefactor     .10000E-03    8.5788       -.70834E-07** at limit **
  20  norm          3.4089        1.9754        .26398E-07   -.27204E-04
  21  Prefactor     5.2321        9.7454        .44575E-06    .29441E-04
  22  Normalizat    1.2210        .23174        .23691E-06   -.25224E-03
  23  Prefactor     1.0179        .18033       -.99577E-06   -.26650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000101058
  norm       = 0.000100061
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 62.0422
  Prefactor  = 0.0001
  Prefactor  = 7.61183
  norm       = 4.49013
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.329981
  Prefactor  = 16.5254
  Prefactor  = 21.0583
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.40891
  Prefactor  = 5.23212
  Normalizat = 1.22103
  Prefactor  = 1.01788
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.390     FROM HESSE     STATUS=OK           378 CALLS     2983 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10106E-03    4.6161        .36092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10006E-03    29.179        .34717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.866        .20165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.042        59.672        .50935E-04   -1.4131    
   6  Prefactor     .10000E-03    8.4239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6118        63.252        .14529E-03   -1.5156    
   8  norm          4.4901        4.1751        .13317E-03   -1.5284    
   9  norm          .10000E-03    1.1294        .10940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .50469        .77610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .32998        2.5174        .21314E-03   -1.5593    
  12  Prefactor     16.525        14.481        .98525E-04   -1.4895    
  13  Prefactor     21.058        61.385        .87270E-04   -1.4790    
  14  Prefactor     .10000E-03    15.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5782        .17482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4089        1.9694        .70723E-04   -1.5339    
  21  Prefactor     5.2321        9.7260        .17573E-03   -1.5250    
  22  Normalizat    1.2210        .26994        .26400E-03   -.85956    
  23  Prefactor     1.0179        .21245        .23141E-03   -.92136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88962e-09
Minuit parameter uncertainties:
  1  0.00441966
  2  0.00267504
  3  0.000659336
  4  0.000262816
  5  59.73
  6  4.64443e-05
  7  43.9473
  8  4.17542
  9  7.39684e-07
  10  2.83964e-06
  11  1.82268
  12  14.4839
  13  61.5701
  14  0.000129613
  15  1.2902e-06
  16  7.94707e-05
  17  0.000289468
  18  0.000324646
  19  3.44427e-05
  20  1.96945
  21  9.72898
  22  0.270254
  23  0.212622
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  2.840e-06  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.018e+00  2.126e-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.221e+00  2.703e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518085/likelihoodResults_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.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) = 4874.39038817
delta logL = -7.10031872586e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4874.39035731
delta logL = 2.37590720644e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4910       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0179       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4874.390     FROM MIGRAD    STATUS=FAILED        94 CALLS      293 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    .71552        .81125E-03** at limit **
   2  alpha         3.5485        2.7802        .50000       -.17813E-05
   3  Normalizat    1.2210        .25643        .26400E-03    .57060E-04
   4  Prefactor     1.0179        .20858        .23141E-03   -.56448E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4874.390     FROM SIMPLEX   STATUS=UNCHANGED    111 CALLS      404 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    .71552        .62041E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5485        2.7802        .77617E-03    .43278    
   3  Normalizat    1.2210        .25643        .99692E-04   -.85956    
   4  Prefactor     1.0179        .20858        .11285E-03   -.92136    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4874.390     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      411 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .66249       -.56051E-06** at limit **
   2  alpha         3.5947        3.4132        .10813E-01   -.17230E-07
   3  Normalizat    1.2210        .25619        .50675E-06    .44125E-04
   4  Prefactor     1.0179        .20854       -.23566E-06    .47027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.59469
  Normalizat = 1.22102
  Prefactor  = 1.01789
 **********
 **   18 **HESSE 
 **********

 FCN=   4874.390     FROM HESSE     STATUS=OK            29 CALLS      440 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66794        .16225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5947        3.2010        .50000        .45323    
   3  Normalizat    1.2210        .25664        .10560E-04   -.85956    
   4  Prefactor     1.0179        .20877        .92564E-05   -.92136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03695e-11
Minuit parameter uncertainties:
  1  1.51139e-06
  2  195.314
  3  0.256911
  4  0.208938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518085': 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) = 4874.39035714
delta logL = 2.3930554562e-05

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.511e-06  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.595e+00  1.953e+02  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.018e+00  2.089e-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.221e+00  2.569e-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/518085/cmap_HighResolution_457315201_457574401_4FGL_J0948.9+0022_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-01 03:05:08.179560', job_id='518085', GAL2='1.02', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630490708.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.39e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='841' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 518085: <4FGL_J0948.9+0022_daily_bin841> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin841> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:50:48 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:50:49 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:50:49 2021
Terminated at Wed Sep  1 03:05:08 2021
Results reported at Wed Sep  1 03:05:08 2021

Your job looked like:

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

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

