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


Performing analysis on: 4FGL_J0958.4+5042_monthly_bin71
RA = 149.606, Dec = 50.7
tmin = 421027201, tmax = 423619201
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='960963', job_status='RUN', time_executed='2021-10-21 08:47:27.141258', time_epoch_executed='1634831247.14' WHERE source_name='4FGL J0958.4+5042' and cadence='monthly' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960963

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960963/ft1_4FGL_J0958.4+5042_monthly_bin71.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960963/ft1_4FGL_J0958.4+5042_monthly_bin71.fits outfile=/scratch/kocevski/960963/ft1_filteredMKT_4FGL_J0958.4+5042_monthly_bin71.fits ra=149.606 dec=50.7 rad=12.0 tmin=421027201.0 tmax=423619201.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 34.65
user 33.72
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.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/960963/ft1_filteredMKT_4FGL_J0958.4+5042_monthly_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.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.95
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/960963/ltcube_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.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/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits
.....................!
real 113.68
user 113.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/960963/ltcube_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits outfile=/scratch/kocevski/960963/expmap_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.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/960963/ltcube_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits
.....................!
real 192.20
user 186.14
sys 5.61

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

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits outfile=/scratch/kocevski/960963/cmap_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.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.606 yref=50.7 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.78
user 0.59
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits outfile=/scratch/kocevski/960963/cmap_HighResolution_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.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.606 yref=50.7 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.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960963/Model_4FGL_J0958.4+5042_monthly_bin71.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/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits.....................!
real 459.89
user 457.75
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits', '/scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits', expMap='/scratch/kocevski/960963/expmap_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits', expCube='/scratch/kocevski/960963/ltcube_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960963/Model_4FGL_J0958.4+5042_monthly_bin71.xml', optimizer='MINUIT')

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

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/960963/ft1_filtered_4FGL_J0958.4+5042_monthly_bin71.fits
Spacecraft file(s): /scratch/kocevski/960963/ft2_4FGL_J0958.4+5042_monthly_bin71.fits
Exposure map: /scratch/kocevski/960963/expmap_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits
Exposure cube: /scratch/kocevski/960963/ltcube_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960963/Model_4FGL_J0958.4+5042_monthly_bin71.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) = 64852.2214874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7659       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3444       1.0000         .10000E-03   10000.    
     3 'norm      '    7.2399       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5896       1.0000         .10000E-03   10000.    
     8 'norm      '    .27119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .93015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1794       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3728       1.0000         .10000E-03   10000.    
    15 'norm      '    22.250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14392E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45642       1.0000         .10000E-03   10000.    
    19 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.386       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5010       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7206       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.4375       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0159       1.0000         .10000E-03   10000.    
    26 'norm      '    9.7401       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    16.164       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.6874       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.588       1.0000         .10000E-03   10000.    
    31 'norm      '    5.4386       1.0000         .10000E-03   10000.    
    32 'norm      '    1.5418       1.0000         .10000E-03   10000.    
    33 'Prefactor '    17.052       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    1.3918       1.0000         .10000E-03   10000.    
    36 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    .95638       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.0200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   64852.11     FROM MIGRAD    STATUS=CONVERGED   1213 CALLS     5544 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7658        1.4998       -.56820E-07   -.14230E-03
   2  norm          8.3444        1.9522        .13091E-06    .44923E-04
   3  norm          7.2398        1.8720        .18783E-06    .40570E-04
   4  Prefactor     3.0934        2.3936       -.18282E-06   -.13450E-02
   5  Prefactor     1.4167        .65962        .16448E-07   -.36607E-04
   6  Prefactor     3.9238        4.8065        .46074E-07   -.62777E-03
   7  Prefactor     4.5876        17.044       -.46255E-05   -.62181E-05
   8  norm          .27116        .18152       -.57991E-08   -.67906E-03
   9  Prefactor     .93041        1.2061        .16756E-07   -.48668E-03
  10  Prefactor     4.0771        .90509        .12217E-07   -.58552E-04
  11  Prefactor     4.1793        2.0767        .14413E-06   -.11333E-02
  12  Prefactor     2.7821        1.0062       -.21210E-07    .73534E-04
  13  Prefactor     10.657        4.5143        .79665E-07    .93605E-04
  14  Prefactor     4.3727        2.5025       -.46353E-07   -.13499E-02
  15  norm          22.250        6.4445       -.11828E-08   -.72351E-05
  16  Prefactor     1.7913        6.7632        .30018E-06   -.45026E-03
  17  Prefactor     .10002E-03    .55473        .44241E-06** at limit **
  18  Prefactor     .45537        .81361       -.11999E-06   -.28847E-03
  19  norm          .10000E-03    .40028        .68077E-08** at limit **
  20  Prefactor     10.760        10.978       -.83581E-06   -.76147E-05
  21  Prefactor     12.387        7.4236       -.21617E-06   -.15931E-03
  22  norm          1.5010        .17237       -.17743E-08    .83740E-04
  23  norm          1.7209        3.0922       -.22870E-06   -.14091E-03
  24  Prefactor     6.4378        1.8773        .31635E-06    .23182E-03
  25  Prefactor     4.0156        9.5566       -.26851E-06    .28281E-07
  26  norm          9.7401        1.1415       -.25826E-07    .80630E-04
  27  Prefactor     .10000E-03    2.1736        .58290E-07** at limit **
  28  norm          16.165        4.2576        .28064E-07    .12860E-04
  29  Prefactor     1.6882        5.5738       -.12162E-06   -.21929E-04
  30  Prefactor     10.588        1.8982       -.20914E-06   -.15745E-04
  31  norm          5.4385        .96674        .38559E-08    .34142E-03
  32  norm          1.5418        .36689       -.51835E-09    .55397E-03
  33  Prefactor     17.052        15.363        .93272E-07   -.23592E-04
  34  Prefactor     .10000E-03    3.8191       -.30092E-05** at limit **
  35  norm          1.3918        .45955        .25859E-07    .17416E-02
  36  Prefactor     .10000E-03    11.425        .11803E-04** at limit **
  37  Prefactor     .10011E-03    2.2423       -.11359E-05** at limit **
  38  Prefactor     .10000E-03    8.5441       -.56108E-05** at limit **
  39  Normalizat    .95636        .56162E-01    .41685E-07   -.18928E-04
  40  Prefactor     1.0200        .65145E-01    .63985E-07   -.10017E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.7658
  norm       = 8.34442
  norm       = 7.23976
  Prefactor  = 3.09336
  Prefactor  = 1.41665
  Prefactor  = 3.92381
  Prefactor  = 4.58761
  norm       = 0.271161
  Prefactor  = 0.930411
  Prefactor  = 4.07712
  Prefactor  = 4.17934
  Prefactor  = 2.78206
  Prefactor  = 10.6568
  Prefactor  = 4.37273
  norm       = 22.2496
  Prefactor  = 1.79133
  Prefactor  = 0.000100025
  Prefactor  = 0.455369
  norm       = 0.0001
  Prefactor  = 10.76
  Prefactor  = 12.3873
  norm       = 1.50103
  norm       = 1.7209
  Prefactor  = 6.43776
  Prefactor  = 4.01564
  norm       = 9.74011
  Prefactor  = 0.0001
  norm       = 16.1648
  Prefactor  = 1.68817
  Prefactor  = 10.5881
  norm       = 5.43851
  norm       = 1.54182
  Prefactor  = 17.0524
  Prefactor  = 0.0001
  norm       = 1.39183
  Prefactor  = 0.0001
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  Normalizat = 0.956356
  Prefactor  = 1.01998
 **********
 **   18 **HESSE 
 **********

 FCN=   64852.11     FROM HESSE     STATUS=OK          1021 CALLS     6565 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7658        1.4920        .27801E-03   -1.5442    
   2  norm          8.3444        1.9492        .13878E-03   -1.5130    
   3  norm          7.2398        1.8691        .14907E-03   -1.5170    
   4  Prefactor     3.0934        2.6264        .11529E-02   -1.5356    
   5  Prefactor     1.4167        .65243        .13368E-03   -1.5470    
   6  Prefactor     3.9238        5.1147        .10183E-02   -1.5312    
   7  Prefactor     4.5876        16.971        .18789E-03   -1.5280    
   8  norm          .27116        .14482        .54739E-03   -1.5604    
   9  Prefactor     .93041        1.0331        .18874E-03   -1.5515    
  10  Prefactor     4.0771        .89938        .10791E-03   -1.5304    
  11  Prefactor     4.1793        2.1452        .98570E-03   -1.5299    
  12  Prefactor     2.7821        .99228        .14254E-03   -1.5374    
  13  Prefactor     10.657        4.4941        .12273E-03   -1.5055    
  14  Prefactor     4.3727        2.4143        .96304E-03   -1.5290    
  15  norm          22.250        6.6851        .84916E-04   -1.4764    
  16  Prefactor     1.7913        14.280        .15638E-02   -1.5440    
  17  Prefactor     .10002E-03    3.9309        .34216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .45537        1.4913        .27074E-02   -1.5573    
  19  norm          .10000E-03    1.3081        .30931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.760        11.131        .12214E-03   -1.5052    
  21  Prefactor     12.387        7.3003        .11382E-03   -1.5004    
  22  norm          1.5010        .17221        .34303E-04   -1.5463    
  23  norm          1.7209        3.0886        .32026E-03   -1.5446    
  24  Prefactor     6.4378        1.8583        .15818E-03   -1.5200    
  25  Prefactor     4.0156        9.5217        .20124E-03   -1.5307    
  26  norm          9.7401        1.1413        .89491E-04   -1.5084    
  27  Prefactor     .10000E-03    2.1827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          16.165        4.2453        .99619E-04   -1.4904    
  29  Prefactor     1.6882        5.4070        .32413E-03   -1.5448    
  30  Prefactor     10.588        1.8994        .12313E-03   -1.5057    
  31  norm          5.4385        .93203        .82141E-04   -1.5242    
  32  norm          1.5418        .36783        .73015E-04   -1.5460    
  33  Prefactor     17.052        15.375        .96990E-04   -1.4882    
  34  Prefactor     .10000E-03    3.8231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          1.3918        .45236        .94987E-04   -1.5472    
  36  Prefactor     .10000E-03    11.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10011E-03    14.539        .70814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10000E-03    8.5593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    .95636        .66469E-01    .24375E-03   -.94507    
  40  Prefactor     1.0200        .76917E-01    .29458E-03   -.92066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63599e-07
Minuit parameter uncertainties:
  1  1.49206
  2  1.94918
  3  1.86908
  4  2.62653
  5  0.652432
  6  5.11522
  7  16.9893
  8  0.144822
  9  1.03317
  10  0.899386
  11  2.14526
  12  0.992285
  13  4.49429
  14  2.41436
  15  6.68533
  16  10.1185
  17  0.000624483
  18  1.49145
  19  2.64085e-06
  20  11.1331
  21  7.30085
  22  0.172213
  23  3.08886
  24  1.85836
  25  9.5253
  26  1.14133
  27  6.54948e-07
  28  4.24539
  29  5.40853
  30  1.89941
  31  0.932033
  32  0.367826
  33  15.3789
  34  3.97094e-07
  35  0.452362
  36  3.4012e-05
  37  0.00248468
  38  1.07999e-06
  39  0.0664745
  40  0.0769252
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  6.438e+00  1.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.020e+00  7.693e-02  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  9.564e-01  6.647e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.18
Ra Dec: 149.606 50.700
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 2.92e-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) = 64852.0979499
delta logL = 0.00775897413405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64852.0930793
delta logL = 0.0126295507871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7196       1.0000          .0000       10.000    
     3 'Normalizat'    .95401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   64852.09     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      223 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2345        18.182        .40193E-02    .29757E-02
   2  Index         2.7195        1.8933        .22832        .62857E-03
   3  Normalizat    .95401        .19276E-01    .45588E-01    .12771E-03
   4  Prefactor     1.0222        .20982E-01    .66535E-01    .12740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23452
  Index      = 2.71955
  Normalizat = 0.954013
  Prefactor  = 1.02218
 **********
 **   18 **HESSE 
 **********

 FCN=   64852.09     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2345        2.4039        .16077E-03   -1.5209    
   2  Index         2.7195        .39253        .10043E-01   -.47360    
   3  Normalizat    .95401        .62902E-01    .24401E-03   -.94587    
   4  Prefactor     1.0222        .76568E-01    .29431E-03   -.91994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19562e-11
Minuit parameter uncertainties:
  1  2.40389
  2  0.393036
  3  0.062907
  4  0.0765762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960963': 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) = 64852.0930793
delta logL = 0.0126295604568

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  6.235e+00  2.404e+00  1.000e-04  1.000e+04 ( 1.000e-12)
370        Index:  2.720e+00  3.930e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.022e+00  7.658e-02  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  9.540e-01  6.291e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.20
Ra Dec: 149.606 50.700
Photon Index (Free Index): 2.72 +/- 0.39
Photon Flux (Free Index): 4.21e-08 +/- 1.42e-08
Energy Flux (Free Index): 9.99e-06 +/- 2.97e-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/960963/cmap_HighResolution_421027201_423619201_4FGL_J0958.4+5042_monthly_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='9.99e-06', photon_flux_error='1.17e-08', dlogl='1.26e-02', energy_flux='1.01e-05', photon_flux2='4.21e-08', job_status='DONE', time_completed='2021-10-21 11:32:32.678769', photon_index_error2='0.39', photon_index2='2.72', ts='19.18', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.97e-06', EG='0.96', time_epoch_completed='1634841152.68', return_code='0', job_id='960963', GAL2='1.02', EG2='0.95', return_code2='0', energy_flux_error='2.92e-06', photon_flux_error2='1.42e-08', ts2='19.20', photon_index='2.66' WHERE bin_id='71' AND source_name='4FGL J0958.4+5042' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 11:32:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 960963: <4FGL_J0958.4+5042_monthly_bin71> in cluster <slac> Done

Job <4FGL_J0958.4+5042_monthly_bin71> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Oct 21 08:15:14 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 08:47:17 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:47:17 2021
Terminated at Thu Oct 21 11:32:33 2021
Results reported at Thu Oct 21 11:32:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_monthly_bin71 149.606 50.7 421027201 423619201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9081.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             390.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9916 sec.
    Turnaround time :                            11839 sec.

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

