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


Performing analysis on: 4FGL_J0958.0+4728_monthly_bin140
RA = 149.509, Dec = 47.4675
tmin = 599875201, tmax = 602467201
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='958374', job_status='RUN', time_executed='2021-10-21 08:46:04.657769', time_epoch_executed='1634831164.66' WHERE source_name='4FGL J0958.0+4728' and cadence='monthly' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958374

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958374/ft1_4FGL_J0958.0+4728_monthly_bin140.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958374/ft1_4FGL_J0958.0+4728_monthly_bin140.fits outfile=/scratch/kocevski/958374/ft1_filteredMKT_4FGL_J0958.0+4728_monthly_bin140.fits ra=149.509 dec=47.4675 rad=12.0 tmin=599875201.0 tmax=602467201.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 32.75
user 31.85
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.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/958374/ft1_filteredMKT_4FGL_J0958.0+4728_monthly_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.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.87
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/958374/ltcube_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.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/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits
.....................!
real 118.58
user 117.92
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/958374/ltcube_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits outfile=/scratch/kocevski/958374/expmap_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.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/958374/ltcube_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits
.....................!
real 191.89
user 187.20
sys 4.32

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

Setting source of interest to:
4FGL J0958.0+4728 @ 149.509 47.4675

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits outfile=/scratch/kocevski/958374/cmap_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.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=149.509 yref=47.4675 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.79
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits outfile=/scratch/kocevski/958374/cmap_HighResolution_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.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=149.509 yref=47.4675 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.77
user 0.63
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958374/Model_4FGL_J0958.0+4728_monthly_bin140.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/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits.....................!
real 398.16
user 395.41
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits', '/scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits', expMap='/scratch/kocevski/958374/expmap_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits', expCube='/scratch/kocevski/958374/ltcube_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958374/Model_4FGL_J0958.0+4728_monthly_bin140.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.0+4728'

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958374/ft1_filtered_4FGL_J0958.0+4728_monthly_bin140.fits
Spacecraft file(s): /scratch/kocevski/958374/ft2_4FGL_J0958.0+4728_monthly_bin140.fits
Exposure map: /scratch/kocevski/958374/expmap_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits
Exposure cube: /scratch/kocevski/958374/ltcube_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958374/Model_4FGL_J0958.0+4728_monthly_bin140.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) = 58570.7082633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.059       1.0000         .10000E-03   10000.    
     2 'norm      '    .66190       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7084       1.0000         .10000E-03   10000.    
     8 'norm      '    .20879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2796       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33704       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24910       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.9415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2476       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2776       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1910       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32856       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.0370       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5646       1.0000         .10000E-03   10000.    
    27 'norm      '    3.6630       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.2865       1.0000         .10000E-03   10000.    
    30 'norm      '    3.8143       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    7.4418       1.0000         .10000E-03   10000.    
    33 'Prefactor '    8.0854       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .89229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   58570.52     FROM MIGRAD    STATUS=CONVERGED   1026 CALLS     4628 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.059        2.4739       -.14502E-09   -.10172E-02
   2  norm          .66197        .98589       -.29153E-08   -.50833E-04
   3  Prefactor     1.4443        .72895       -.12406E-08    .11197E-03
   4  Prefactor     6.1905        5.4148       -.19031E-08    .19704E-04
   5  Prefactor     .10000E-03    7.2937        .37070E-08** at limit **
   6  Prefactor     1.4435        .91974        .29995E-08   -.17595E-04
   7  Prefactor     1.7083        2.5847       -.17793E-06   -.12686E-03
   8  norm          .20881        .21566       -.17263E-09   -.24462E-03
   9  Prefactor     1.2796        1.4192       -.17941E-08   -.82136E-04
  10  norm          5.5669        2.8144        .12361E-08   -.21856E-03
  11  Prefactor     1.2435        .65019        .20609E-08   -.18511E-04
  12  Prefactor     .33513        .92062       -.68918E-08    .79795E-03
  13  Prefactor     .24845        .52335       -.52467E-08   -.33143E-04
  14  Prefactor     .10000E-03    1.2297        .48463E-09** at limit **
  15  norm          5.9415        3.8246        .80445E-09   -.12771E-02
  16  Prefactor     .10000E-03    3.8084        .24405E-09** at limit **
  17  Prefactor     6.2469        2.0161        .18858E-08    .99050E-04
  18  norm          .10000E-03    .38764       -.48246E-10** at limit **
  19  Prefactor     9.6138        8.5761       -.10423E-07   -.16344E-03
  20  Prefactor     .10000E-03    2.1851       -.34637E-08** at limit **
  21  norm          1.2776        .16174       -.68588E-10    .40028E-03
  22  norm          1.1914        2.3546       -.13363E-07    .42008E-03
  23  Prefactor     .32904        .94711       -.22646E-07   -.11440E-03
  24  Prefactor     .10000E-03    7.2313       -.49714E-08** at limit **
  25  norm          6.0369        .95663        .49624E-10    .82722E-04
  26  Prefactor     4.5647        6.7434       -.50814E-08    .15357E-05
  27  norm          3.6628        2.4210       -.38595E-08    .19822E-02
  28  Prefactor     .10000E-03    1.6689       -.10945E-10** at limit **
  29  Prefactor     2.2866        1.1051       -.15582E-08   -.11103E-03
  30  norm          3.8143        .58336       -.22182E-09   -.56407E-04
  31  Prefactor     .10000E-03    3.1549       -.25649E-09** at limit **
  32  Prefactor     7.4429        16.184       -.26750E-08   -.48058E-03
  33  Prefactor     8.0852        19.537       -.15014E-07    .29132E-03
  34  Prefactor     .10000E-03    13.841        .38209E-09** at limit **
  35  Normalizat    1.0940        .55483E-01    .92280E-08    .17778E-04
  36  Prefactor     .89228        .66791E-01    .48977E-08    .99740E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0588
  norm       = 0.661968
  Prefactor  = 1.44432
  Prefactor  = 6.19047
  Prefactor  = 0.000100002
  Prefactor  = 1.4435
  Prefactor  = 1.70833
  norm       = 0.208812
  Prefactor  = 1.2796
  norm       = 5.5669
  Prefactor  = 1.24349
  Prefactor  = 0.335128
  Prefactor  = 0.248448
  Prefactor  = 0.0001
  norm       = 5.94154
  Prefactor  = 0.0001
  Prefactor  = 6.2469
  norm       = 0.0001
  Prefactor  = 9.61381
  Prefactor  = 0.0001
  norm       = 1.2776
  norm       = 1.19136
  Prefactor  = 0.329036
  Prefactor  = 0.000100003
  norm       = 6.03691
  Prefactor  = 4.56465
  norm       = 3.66283
  Prefactor  = 0.0001
  Prefactor  = 2.28657
  norm       = 3.81433
  Prefactor  = 0.0001
  Prefactor  = 7.44293
  Prefactor  = 8.08515
  Prefactor  = 0.0001
  Normalizat = 1.09397
  Prefactor  = 0.892278
 **********
 **   18 **HESSE 
 **********

 FCN=   58570.52     FROM HESSE     STATUS=OK           841 CALLS     5469 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.059        2.4542        .11084E-03   -1.4985    
   2  norm          .66197        .86137        .27943E-02   -1.5545    
   3  Prefactor     1.4443        .71874        .13894E-03   -1.5468    
   4  Prefactor     6.1905        5.3556        .16135E-03   -1.5210    
   5  Prefactor     .10000E-03    7.3190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4435        .90054        .17103E-03   -1.5468    
   7  Prefactor     1.7083        5.3517        .16083E-02   -1.5447    
   8  norm          .20881        .17124        .60654E-03   -1.5617    
   9  Prefactor     1.2796        1.2048        .15777E-03   -1.5482    
  10  norm          5.5669        2.7637        .85139E-03   -1.5236    
  11  Prefactor     1.2435        .63639        .12956E-03   -1.5485    
  12  Prefactor     .33513        2.0446        .36442E-02   -1.5592    
  13  Prefactor     .24845        .75497        .23114E-02   -1.5608    
  14  Prefactor     .10000E-03    1.2363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9415        3.8157        .16474E-03   -1.5220    
  16  Prefactor     .10000E-03    3.8493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2469        1.9663        .16060E-03   -1.5208    
  18  norm          .10000E-03    .39009        .14707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6138        8.5952        .64623E-03   -1.5088    
  20  Prefactor     .10000E-03    15.852        .68714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2776        .16142        .33111E-04   -1.5482    
  22  norm          1.1914        2.3503        .41731E-03   -1.5490    
  23  Prefactor     .32904        .97249        .38981E-03   -1.5593    
  24  Prefactor     .10000E-03    7.4223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.0369        .95520        .90768E-04   -1.5217    
  26  Prefactor     4.5647        6.7328        .18842E-03   -1.5281    
  27  norm          3.6628        2.4131        .21105E-03   -1.5325    
  28  Prefactor     .10000E-03    1.6702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.2866        1.1016        .16824E-03   -1.5406    
  30  norm          3.8143        .58345        .70242E-04   -1.5317    
  31  Prefactor     .10000E-03    3.1813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     7.4429        16.184        .14702E-03   -1.5162    
  33  Prefactor     8.0852        19.535        .14100E-03   -1.5139    
  34  Prefactor     .10000E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.0940        .64729E-01    .21942E-03   -.89946    
  36  Prefactor     .89228        .78153E-01    .30325E-03   -.96411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28476e-07
Minuit parameter uncertainties:
  1  2.45426
  2  0.861381
  3  0.718745
  4  5.35606
  5  0.000256494
  6  0.900552
  7  5.35319
  8  0.17124
  9  1.20485
  10  2.76378
  11  0.636392
  12  1.65537
  13  0.754999
  14  1.43925e-06
  15  3.81587
  16  6.94045e-06
  17  1.96628
  18  4.18937e-08
  19  8.59627
  20  0.000166808
  21  0.16142
  22  2.35052
  23  0.972535
  24  0.000287649
  25  0.955201
  26  6.73388
  27  2.41312
  28  1.95577e-06
  29  1.10164
  30  0.583447
  31  1.66437e-06
  32  16.1931
  33  19.5508
  34  0.000162837
  35  0.064734
  36  0.0781631
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  1.191e+00  2.351e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.365e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  8.923e-01  7.816e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.094e+00  6.473e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 149.509 47.468
Photon Flux Upper Limit: 1.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958374/likelihoodResults_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 58570.0438862
delta logL = 0.478077327549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 58569.9981176
delta logL = 0.523845936114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48469       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7396       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   58570.00     FROM MIGRAD    STATUS=FAILED        99 CALLS      312 TOTAL
                     EDM=   .84E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48408        1.9502        .14018E-03   -.49505E-03
   2  alpha         4.7407        4.3302        .50000       -.79618E-02
   3  Normalizat    1.0753        .66294E-01    .22110E-03   -.45496E-03
   4  Prefactor     .90855        .79087E-01    .30085E-03   -.10551E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   58570.00     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      385 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48408        1.9502        .14563E-03   -1.5569    
   2  alpha         4.7407        4.3302        .15542E-01    1.1113    
   3  Normalizat    1.0753        .66294E-01    .57883E-04   -.90548    
   4  Prefactor     .90855        .79087E-01    .10394E-03   -.95843    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   58570.00     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      436 TOTAL
                     EDM=   .24E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48408        1.4759         .0000        .55150E-04
   2  alpha         4.7407        4.8652         .0000       -.79561E-02
   3  Normalizat    1.0753        .64746E-01     .0000       -.19128E-03
   4  Prefactor     .90855        .78623E-01     .0000       -.22673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.484081
  alpha      = 4.74068
  Normalizat = 1.07534
  Prefactor  = 0.908555
 **********
 **   18 **HESSE 
 **********

 FCN=   58570.00     FROM HESSE     STATUS=OK            27 CALLS      463 TOTAL
                     EDM=   .48E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48408        1.4695        .11214E-05   -1.5569    
   2  alpha         4.7407        4.8665        .50000        1.1113    
   3  Normalizat    1.0753        .64852E-01    .17688E-05   -.90548    
   4  Prefactor     .90855        .78776E-01    .24068E-05   -.95843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000482309
Minuit parameter uncertainties:
  1  1.46965
  2  3.06033
  3  0.0648565
  4  0.0787859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958374': 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) = 58569.9981156
delta logL = 0.52384790314

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  4.841e-01  1.470e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  4.741e+00  3.060e+00  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  2.538e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  4.863e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  9.086e-01  7.879e-02  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  1.075e+00  6.486e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 149.509 47.468
Photon Index (Free Index): 4.74 +/- 3.06
Photon Flux (Free Index): 1.50e-08 +/- 2.02e-08
Energy Flux (Free Index): 2.15e-06 +/- 2.38e-06

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/958374/cmap_HighResolution_599875201_602467201_4FGL_J0958.0+4728_monthly_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-06', comment='SUCCESS', energy_flux2='2.15e-06', dlogl='5.24e-01', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-10-21 11:08:05.669459', photon_index_error2='3.06', photon_index2='4.74', ts='0.30', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.53e-08', energy_flux_error2='2.38e-06', EG='1.09', time_epoch_completed='1634839685.67', return_code='0', job_id='958374', GAL2='0.91', EG2='1.08', return_code2='0', photon_flux_error2='2.02e-08', ts2='1.42', photon_index='2.37' WHERE bin_id='140' AND source_name='4FGL J0958.0+4728' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 11:08:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 958374: <4FGL_J0958.0+4728_monthly_bin140> in cluster <slac> Done

Job <4FGL_J0958.0+4728_monthly_bin140> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Oct 21 08:10:15 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 08:45:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 08:45:52 2021
Terminated at Thu Oct 21 11:08:06 2021
Results reported at Thu Oct 21 11:08:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_monthly_bin140 149.509 47.4675 599875201 602467201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.0+4728 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8438.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             398.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   8534 sec.
    Turnaround time :                            10671 sec.

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

