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


Performing analysis on: 4FGL_J1048.4+7143_monthly_bin94
RA = 162.107, Dec = 71.7297
tmin = 480643201, tmax = 483235201
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='249578', job_status='RUN', time_executed='2021-10-22 02:34:13.893183', time_epoch_executed='1634895253.89' WHERE source_name='4FGL J1048.4+7143' and cadence='monthly' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249578

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249578/ft1_4FGL_J1048.4+7143_monthly_bin94.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249578/ft1_4FGL_J1048.4+7143_monthly_bin94.fits outfile=/scratch/kocevski/249578/ft1_filteredMKT_4FGL_J1048.4+7143_monthly_bin94.fits ra=162.107 dec=71.7297 rad=12.0 tmin=480643201.0 tmax=483235201.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 25.86
user 25.20
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.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/249578/ft1_filteredMKT_4FGL_J1048.4+7143_monthly_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.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.73
user 0.54
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/249578/ltcube_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.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/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits
.....................!
real 96.05
user 95.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/249578/ltcube_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits outfile=/scratch/kocevski/249578/expmap_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.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/249578/ltcube_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits
.....................!
real 156.85
user 151.55
sys 4.87

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

Setting source of interest to:
4FGL J1048.4+7143 @ 162.107 71.7297

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits outfile=/scratch/kocevski/249578/cmap_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.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=162.107 yref=71.7297 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.67
user 0.50
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits outfile=/scratch/kocevski/249578/cmap_HighResolution_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.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=162.107 yref=71.7297 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.67
user 0.51
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249578/Model_4FGL_J1048.4+7143_monthly_bin94.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/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits.....................!
real 814.24
user 810.68
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits', '/scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits', expMap='/scratch/kocevski/249578/expmap_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits', expCube='/scratch/kocevski/249578/ltcube_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249578/Model_4FGL_J1048.4+7143_monthly_bin94.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1048.4+7143'

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  2.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/249578/ft1_filtered_4FGL_J1048.4+7143_monthly_bin94.fits
Spacecraft file(s): /scratch/kocevski/249578/ft2_4FGL_J1048.4+7143_monthly_bin94.fits
Exposure map: /scratch/kocevski/249578/expmap_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits
Exposure cube: /scratch/kocevski/249578/ltcube_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249578/Model_4FGL_J1048.4+7143_monthly_bin94.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) = 98986.5078379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50041       1.0000         .10000E-03   10000.    
     3 'norm      '    9.3229       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5912       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7152       1.0000         .10000E-03   10000.    
    10 'norm      '    10.415       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.083       1.0000         .10000E-03   10000.    
    15 'norm      '    18.085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.891       1.0000         .10000E-03   10000.    
    17 'norm      '    26.130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5857       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4860       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2539       1.0000         .10000E-03   10000.    
    26 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9863       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3939       1.0000         .10000E-03   10000.    
    30 'norm      '    17.925       1.0000         .10000E-03   10000.    
    31 'norm      '    1.0846       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .74223E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93153       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0926       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98986.29     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     4946 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4401         .0000    ** at limit **
   2  Prefactor     .50050        .90534         .0000        .24225E-01
   3  norm          9.3229        .84636         .0000       -.35783E-02
   4  Prefactor     6.0704        8.9766         .0000        .25335E-02
   5  Prefactor     .10000E-03    3.6854         .0000    ** at limit **
   6  Prefactor     5.6388        2.7402         .0000        .21382E-01
   7  Prefactor     .52863        2.2050         .0000        .17922    
   8  Prefactor     4.5914        3.2540         .0000        .20211E-02
   9  norm          1.7152        .22564         .0000       -.11547E-02
  10  norm          10.415        3.8629         .0000        .51292E-03
  11  Prefactor     .10001E-03    1.0679         .0000    ** at limit **
  12  Prefactor     4.9445        2.9905         .0000        .97874E-03
  13  Prefactor     28.434        9.5402         .0000        .58416E-02
  14  Prefactor     24.084        9.9514         .0000        .10126E-03
  15  norm          18.085        1.5434         .0000        .11297E-02
  16  Prefactor     15.888        14.220         .0000        .26663E-02
  17  norm          26.130        2.3820         .0000       -.21884E-02
  18  Prefactor     .10000E-03    6.6596         .0000    ** at limit **
  19  Prefactor     .10000E-03    .38468         .0000    ** at limit **
  20  norm          3.5856        .32048         .0000        .10638E-02
  21  norm          6.6451        1.0889         .0000       -.24448E-02
  22  Prefactor     7.4858        3.8320         .0000        .20997E-01
  23  Prefactor     .10000E-03    .60880         .0000    ** at limit **
  24  Prefactor     .10000E-03    1.2203         .0000    ** at limit **
  25  Prefactor     1.2538        .71447         .0000        .58889E-02
  26  norm          .10000E-03    .91171         .0000    ** at limit **
  27  Prefactor     .10000E-03    1.1511         .0000    ** at limit **
  28  Prefactor     1.9864        5.6653         .0000        .67183E-03
  29  Prefactor     4.3939        4.2323         .0000        .18270E-01
  30  norm          17.925        1.9420         .0000        .38905E-02
  31  norm          1.0846        .65756         .0000        .99212E-02
  32  Prefactor     .10000E-03    2.1588         .0000    ** at limit **
  33  Normalizat    .93152        .50341E-01     .0000       -.34540E-03
  34  Prefactor     1.0926        .44881E-01     .0000        .22922E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.500499
  norm       = 9.3229
  Prefactor  = 6.07039
  Prefactor  = 0.0001
  Prefactor  = 5.63877
  Prefactor  = 0.528629
  Prefactor  = 4.59137
  norm       = 1.71523
  norm       = 10.4152
  Prefactor  = 0.000100006
  Prefactor  = 4.94452
  Prefactor  = 28.4338
  Prefactor  = 24.0842
  norm       = 18.0852
  Prefactor  = 15.8883
  norm       = 26.1297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5856
  norm       = 6.64514
  Prefactor  = 7.48579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98642
  Prefactor  = 4.39395
  norm       = 17.9246
  norm       = 1.08462
  Prefactor  = 0.000100002
  Normalizat = 0.931524
  Prefactor  = 1.09256
 **********
 **   18 **HESSE 
 **********

 FCN=   98986.29     FROM HESSE     STATUS=OK           758 CALLS     5704 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .50050        .89160        .39109E-03   -1.5566    
   3  norm          9.3229        .84520        .82922E-04   -1.5097    
   4  Prefactor     6.0704        8.9750        .81479E-03   -1.5215    
   5  Prefactor     .10000E-03    3.7310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6388        2.7392        .84585E-03   -1.5233    
   7  Prefactor     .52863        2.0756        .22774E-02   -1.5563    
   8  Prefactor     4.5914        3.1634        .18786E-03   -1.5279    
   9  norm          1.7152        .22438        .51562E-04   -1.5446    
  10  norm          10.415        3.8625        .62076E-03   -1.5062    
  11  Prefactor     .10001E-03    7.3399        .49794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9445        2.9833        .18087E-03   -1.5263    
  13  Prefactor     28.434        8.1829        .75140E-04   -1.4641    
  14  Prefactor     24.084        10.047        .81625E-04   -1.4726    
  15  norm          18.085        1.5565        .86884E-04   -1.4857    
  16  Prefactor     15.888        13.395        .10047E-03   -1.4911    
  17  norm          26.130        2.3752        .78368E-04   -1.4685    
  18  Prefactor     .10000E-03    6.6612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .85920        .32092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5856        .30131        .43047E-04   -1.5329    
  21  norm          6.6451        .88213        .94945E-04   -1.5192    
  22  Prefactor     7.4858        3.8149        .73290E-03   -1.5161    
  23  Prefactor     .10000E-03    2.1551        .35647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.2374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2538        .70264        .19488E-03   -1.5484    
  26  norm          .10000E-03    .95066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.1826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.9864        5.6395        .29402E-03   -1.5426    
  29  Prefactor     4.3939        4.2348        .96067E-03   -1.5289    
  30  norm          17.925        1.9449        .94601E-04   -1.4861    
  31  norm          1.0846        .64835        .19114E-03   -1.5500    
  32  Prefactor     .10000E-03    2.2226        .16535       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .93152        .57499E-01    .30195E-03   -.95361    
  34  Prefactor     1.0926        .51654E-01    .26038E-03   -.89705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28857e-08
Minuit parameter uncertainties:
  1  0.000216894
  2  0.891623
  3  0.845198
  4  8.97695
  5  6.72043e-05
  6  2.73927
  7  2.07588
  8  3.16353
  9  0.224384
  10  3.86255
  11  0.000410074
  12  2.98338
  13  8.18318
  14  10.0473
  15  1.55648
  16  13.3973
  17  2.37524
  18  4.98512e-05
  19  1.78068e-05
  20  0.301306
  21  0.88213
  22  3.81501
  23  7.6968e-06
  24  1.42598e-05
  25  0.702646
  26  4.0598e-06
  27  8.22975e-06
  28  5.64097
  29  4.23506
  30  1.94488
  31  0.648359
  32  0.00012127
  33  0.0575032
  34  0.051656
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  3.586e+00  3.013e-01  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.093e+00  5.166e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.315e-01  5.750e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 457.44
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.84e-07 +/- 1.54e-08
Energy Flux (Fixed Index): 7.36e-05 +/- 6.18e-06

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) = 98982.0590248
delta logL = 4.22654392901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 98982.0554845
delta logL = 4.23008421824

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98982.06     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      286 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2384        .28689        .38862E-04    .46806E-05
   2  alpha         2.4300        .80747E-01    .73609E-02    .13871E-03
   3  Normalizat    .90114        .55166E-01    .30599E-03    .59446E-06
   4  Prefactor     1.1078        .50511E-01    .25867E-03    .39380E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23842
  alpha      = 2.43004
  Normalizat = 0.901144
  Prefactor  = 1.10781
 **********
 **   18 **HESSE 
 **********

 FCN=   98982.06     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .34E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2384        .28148        .15545E-05   -1.5348    
   2  alpha         2.4300        .79179E-01    .29444E-03   -.27989E-01
   3  Normalizat    .90114        .55171E-01    .12240E-04   -.96420    
   4  Prefactor     1.1078        .50524E-01    .51733E-04   -.89217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4318e-14
Minuit parameter uncertainties:
  1  0.281479
  2  0.0791919
  3  0.0551745
  4  0.0505264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249578': 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) = 98982.0554845
delta logL = 4.23008421977

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  3.238e+00  2.815e-01  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.430e+00  7.919e-02  0.000e+00  5.000e+00 ( 1.000e+00)
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.108e+00  5.053e-02  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.011e-01  5.517e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 467.72
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.43 +/- 0.08
Photon Flux (Free Index): 2.15e-07 +/- 1.83e-08
Energy Flux (Free Index): 6.64e-05 +/- 5.22e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/249578/cmap_HighResolution_480643201_483235201_4FGL_J1048.4+7143_monthly_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.84e-07', energy_flux2='6.64e-05', photon_flux_error='1.54e-08', dlogl='4.23e+00', energy_flux='7.36e-05', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-10-22 05:19:23.157755', photon_index_error2='0.08', photon_index2='2.43', ts='457.44', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='5.22e-06', EG='0.93', time_epoch_completed='1634905163.16', return_code='0', job_id='249578', GAL2='1.11', EG2='0.90', return_code2='0', energy_flux_error='6.18e-06', photon_flux_error2='1.83e-08', ts2='467.72', photon_index='2.20' WHERE bin_id='94' AND source_name='4FGL J1048.4+7143' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 05:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 249578: <4FGL_J1048.4+7143_monthly_bin94> in cluster <slac> Done

Job <4FGL_J1048.4+7143_monthly_bin94> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct 22 02:30:15 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 02:30:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 02:30:29 2021
Terminated at Fri Oct 22 05:19:24 2021
Results reported at Fri Oct 22 05:19:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1048.4+7143_monthly_bin94 162.107 71.7297 480643201 483235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1048.4+7143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9819.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             461.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10136 sec.
    Turnaround time :                            10149 sec.

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

