/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 176 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin389
RA = 147.244, Dec = 0.3717
tmin = 340156801, tmax = 340416001
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='514798', job_status='RUN', time_executed='2021-09-01 02:44:24.325099', time_epoch_executed='1630489464.33' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514798/ft1_4FGL_J0948.9+0022_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514798/ft1_4FGL_J0948.9+0022_daily_bin389.fits outfile=/scratch/kocevski/514798/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin389.fits ra=147.244 dec=0.3717 rad=12.0 tmin=340156801.0 tmax=340416001.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 3.39
user 3.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514798/ft1_filtered_4FGL_J0948.9+0022_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/514798/ltcube_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.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/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits
.....................!
real 12.24
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514798/ft1_filtered_4FGL_J0948.9+0022_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/514798/ltcube_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.fits outfile=/scratch/kocevski/514798/expmap_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.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/514798/ltcube_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.fits
.....................!
real 191.15
user 184.96
sys 4.27

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/514798/ft1_filtered_4FGL_J0948.9+0022_daily_bin389.fits scfile=/scratch/kocevski/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits outfile=/scratch/kocevski/514798/cmap_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514798/ft1_filtered_4FGL_J0948.9+0022_daily_bin389.fits scfile=/scratch/kocevski/514798/ft2_4FGL_J0948.9+0022_daily_bin389.fits outfile=/scratch/kocevski/514798/cmap_HighResolution_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9078       1.0000         .10000E-03   10000.    
     2 'norm      '    .78030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2320       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8396       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7138       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19646E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.877       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.542       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9971       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92432       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94580       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=   7573.572     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     3052 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9078        4.4241        .81698E-03    .14148E-03
   2  norm          .10000E-03    4.5729        .46756E-01** at limit **
   3  Prefactor     .10000E-03    4.8727        .18142E-02** at limit **
   4  Prefactor     .10000E-03    9.3069        .19642E-02** at limit **
   5  Prefactor     .10000E-03    34.651        .18142E-02** at limit **
   6  Prefactor     9.4274        12.288        .13053E-03    .40760E-04
   7  Prefactor     .10000E-03    14.181        .18142E-02** at limit **
   8  norm          .10000E-03    1.1953        .92227E-03** at limit **
   9  norm          2.2322        1.3699        .75330E-04    .78930E-04
  10  norm          3.8397        .77214        .32256E-04    .15649E-03
  11  norm          2.7138        1.4288        .73359E-04   -.19527E-04
  12  Prefactor     10.409        7.7970        .12419E-03    .79186E-04
  13  Prefactor     20.469        43.742        .88437E-04   -.26481E-04
  14  Prefactor     .10000E-03    34.004        .12052    ** at limit **
  15  norm          .10000E-03    4.7639        .18142E-02** at limit **
  16  Prefactor     11.876        8.5820        .11624E-03    .24001E-03
  17  Prefactor     .10000E-03    37.294        .18142E-02** at limit **
  18  Prefactor     19.570        25.248        .90602E-04    .40229E-04
  19  Prefactor     .10000E-03    4.4244        .17870E-02** at limit **
  20  norm          3.1595        1.3744        .64626E-04    .96754E-04
  21  Prefactor     2.9974        3.8990        .94937E-03    .23794E-04
  22  Normalizat    .92423        .20570        .27747E-03    .12898E-03
  23  Prefactor     .94583        .15541        .22180E-03    .11871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.90783
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.42737
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.23216
  norm       = 3.83966
  norm       = 2.71384
  Prefactor  = 10.4088
  Prefactor  = 20.4687
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.876
  Prefactor  = 0.0001
  Prefactor  = 19.5697
  Prefactor  = 0.0001
  norm       = 3.15946
  Prefactor  = 2.99737
  Normalizat = 0.924231
  Prefactor  = 0.945827
 **********
 **   18 **HESSE 
 **********

 FCN=   7573.572     FROM HESSE     STATUS=OK           370 CALLS     3422 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9078        4.4229        .32679E-04   -1.5265    
   2  norm          .10000E-03    3.9376        .52113E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4318        .39285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4274        12.288        .52214E-05   -1.5094    
   7  Prefactor     .10000E-03    14.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1955        .18445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2322        1.3698        .30132E-05   -1.5409    
  10  norm          3.8397        .77213        .12902E-05   -1.5316    
  11  norm          2.7138        1.4288        .29344E-05   -1.5378    
  12  Prefactor     10.409        7.7969        .49675E-05   -1.5063    
  13  Prefactor     20.469        43.746        .35375E-05   -1.4803    
  14  Prefactor     .10000E-03    33.702        .12121       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.876        8.5821        .46496E-05   -1.5019    
  17  Prefactor     .10000E-03    37.298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.570        25.249        .18120E-04   -1.4823    
  19  Prefactor     .10000E-03    4.4245        .35740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1595        1.3743        .25850E-05   -1.5352    
  21  Prefactor     2.9974        3.8982        .37975E-04   -1.5362    
  22  Normalizat    .92423        .20587        .11099E-04   -.95614    
  23  Prefactor     .94583        .15558        .88722E-05   -.94558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28889e-10
Minuit parameter uncertainties:
  1  4.42321
  2  7.85815e-05
  3  6.17195e-06
  4  0.000241156
  5  6.96769e-05
  6  12.2914
  7  1.24526e-05
  8  2.71723e-06
  9  1.36986
  10  0.772133
  11  1.42885
  12  7.79763
  13  43.8148
  14  4.38553e-05
  15  5.53283e-06
  16  8.583
  17  2.49602e-05
  18  25.2624
  19  8.90966e-06
  20  1.37432
  21  3.89853
  22  0.206049
  23  0.15565
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.840e+00  7.721e-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:  9.458e-01  1.557e-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.242e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 65.81
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.95e-07 +/- 5.92e-08
Energy Flux (Fixed Index): 7.35e-05 +/- 1.48e-05

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) = 7573.56051387
delta logL = 0.0115549871589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7573.55939728
delta logL = 0.0126715718325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8169       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4094       1.0000          .0000       5.0000    
     3 'Normalizat'    .93201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94143       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=   7573.559     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8169        .76882        .51648E-02   -.13575E-02
   2  alpha         2.4094        .26077        .20042       -.21208E-04
   3  Normalizat    .93202        .16888        .45309E-01    .16899E-04
   4  Prefactor     .94143        .13458        .45531E-01   -.55665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.81692
  alpha      = 2.40936
  Normalizat = 0.932022
  Prefactor  = 0.941425
 **********
 **   18 **HESSE 
 **********

 FCN=   7573.559     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8169        .78030        .32331E-04   -1.5317    
   2  alpha         2.4094        .27191        .86518E-02   -.36263E-01
   3  Normalizat    .93202        .19752        .27650E-03   -.95344    
   4  Prefactor     .94143        .15619        .22226E-03   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9723e-10
Minuit parameter uncertainties:
  1  0.780306
  2  0.272453
  3  0.197674
  4  0.156268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514798': 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) = 7573.55939728
delta logL = 0.0126715736023

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.817e+00  7.803e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.409e+00  2.725e-01  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:  9.414e-01  1.563e-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.320e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.35
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.41 +/- 0.27
Photon Flux (Free Index): 2.89e-07 +/- 6.93e-08
Energy Flux (Free Index): 7.39e-05 +/- 1.51e-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/514798/cmap_HighResolution_340156801_340416001_4FGL_J0948.9+0022_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-07', energy_flux2='7.39e-05', photon_flux_error='5.92e-08', dlogl='1.27e-02', energy_flux='7.35e-05', photon_flux2='2.89e-07', job_status='DONE', time_completed='2021-09-01 02:55:05.165240', photon_index_error2='0.27', photon_index2='2.41', ts='65.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.92', time_epoch_completed='1630490105.17', return_code='0', job_id='514798', GAL2='0.94', EG2='0.93', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='6.93e-08', ts2='65.35', photon_index='2.45' WHERE bin_id='389' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:55:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 514798: <4FGL_J0948.9+0022_daily_bin389> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin389> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:54 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:40:56 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:40:56 2021
Terminated at Wed Sep  1 02:55:05 2021
Results reported at Wed Sep  1 02:55:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin389 147.244 0.3717 340156801 340416001 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 :                                   636.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

