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


Performing analysis on: 4FGL_J0958.0+4728_monthly_bin25
RA = 149.509, Dec = 47.4675
tmin = 301795201, tmax = 304387201
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='956164', job_status='RUN', time_executed='2021-10-21 08:47:16.914060', time_epoch_executed='1634831236.91' WHERE source_name='4FGL J0958.0+4728' and cadence='monthly' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956164

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956164/ft1_4FGL_J0958.0+4728_monthly_bin25.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956164/ft1_4FGL_J0958.0+4728_monthly_bin25.fits outfile=/scratch/kocevski/956164/ft1_filteredMKT_4FGL_J0958.0+4728_monthly_bin25.fits ra=149.509 dec=47.4675 rad=12.0 tmin=301795201.0 tmax=304387201.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 30.53
user 29.73
sys 0.68

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/956164/ltcube_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.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/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits
.....................!
real 118.44
user 117.63
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/956164/ltcube_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits outfile=/scratch/kocevski/956164/expmap_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.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/956164/ltcube_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits
.....................!
real 191.84
user 185.97
sys 4.78

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/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits scfile=/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits outfile=/scratch/kocevski/956164/cmap_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.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.77
user 0.59
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits scfile=/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits outfile=/scratch/kocevski/956164/cmap_HighResolution_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.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.78
user 0.62
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits', '/scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits', expMap='/scratch/kocevski/956164/expmap_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits', expCube='/scratch/kocevski/956164/ltcube_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956164/Model_4FGL_J0958.0+4728_monthly_bin25.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/956164/ft1_filtered_4FGL_J0958.0+4728_monthly_bin25.fits
Spacecraft file(s): /scratch/kocevski/956164/ft2_4FGL_J0958.0+4728_monthly_bin25.fits
Exposure map: /scratch/kocevski/956164/expmap_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits
Exposure cube: /scratch/kocevski/956164/ltcube_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956164/Model_4FGL_J0958.0+4728_monthly_bin25.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) = 65095.5039105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4715       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0241       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13550E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6282       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2440       1.0000         .10000E-03   10000.    
    10 'norm      '    .15384E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1368       1.0000         .10000E-03   10000.    
    15 'norm      '    .10440E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1918       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4118       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5681       1.0000         .10000E-03   10000.    
    22 'norm      '    .62780       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.2656       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.7129       1.0000         .10000E-03   10000.    
    30 'norm      '    .67733       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .94775E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .12062E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .86159       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1487       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .99635       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=   65095.34     FROM MIGRAD    STATUS=CONVERGED   1099 CALLS     4791 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4717        1.3716       -.33879E-07    .15053E-04
   2  norm          .10000E-03    .34924       -.17097E-07** at limit **
   3  Prefactor     1.0243        .63298       -.32408E-07   -.63657E-04
   4  Prefactor     .10000E-03    3.1350        .21435E-07** at limit **
   5  Prefactor     .10000E-03    5.7679       -.33329E-06** at limit **
   6  Prefactor     .10000E-03    .23009        .25432E-07** at limit **
   7  Prefactor     6.6441        6.0077       -.26986E-05   -.24932E-03
   8  norm          1.5165        .24151        .23365E-08   -.83832E-03
   9  Prefactor     2.2434        1.3814       -.83370E-07   -.27394E-03
  10  norm          .10069E-03    .73009        .17333E-06** at limit **
  11  Prefactor     1.0006        .70728        .94937E-07    .88775E-03
  12  Prefactor     .94214        1.8841       -.35810E-06   -.26074E-03
  13  Prefactor     .59635        .63672       -.26991E-07   -.59858E-05
  14  Prefactor     3.1383        4.4671        .94876E-06    .99012E-05
  15  norm          .10000E-03    .85218       -.21668E-06** at limit **
  16  Prefactor     .10000E-03    2.2360       -.13481E-06** at limit **
  17  Prefactor     3.1916        2.0466       -.10919E-06    .40577E-04
  18  norm          1.8871        1.9507        .12693E-06    .44742E-04
  19  Prefactor     5.5153        8.3881        .18911E-05    .12205E-04
  20  Prefactor     8.3897        9.6057       -.90387E-06    .17427E-04
  21  norm          1.5682        .17764        .47782E-07    .10758E-02
  22  norm          .62760        .29881       -.10503E-06   -.68101E-03
  23  Prefactor     2.7439        1.5833       -.52249E-08    .58060E-04
  24  Prefactor     .10004E-03    2.1408        .38582E-06** at limit **
  25  norm          5.2655        .87971       -.11379E-07    .60368E-04
  26  Prefactor     13.587        7.7596       -.55322E-05   -.35101E-05
  27  norm          .10000E-03    .49214       -.84156E-07** at limit **
  28  Prefactor     11.991        8.5102       -.35113E-06    .17294E-04
  29  Prefactor     6.7127        1.4808       -.69007E-07   -.17199E-04
  30  norm          .67745        .32510        .41927E-07    .62914E-03
  31  Prefactor     .10102E-03    2.1426       -.92619E-07** at limit **
  32  Prefactor     .10000E-03    4.3096        .24829E-06** at limit **
  33  Prefactor     .10000E-03    25.724        .29835E-05** at limit **
  34  Prefactor     .87429        4.2165        .17811E-06   -.11595E-03
  35  Normalizat    1.1487        .57265E-01    .48455E-06   -.42033E-03
  36  Prefactor     .99633        .66898E-01   -.79531E-07    .63063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47167
  norm       = 0.0001
  Prefactor  = 1.02433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6441
  norm       = 1.51652
  Prefactor  = 2.24339
  norm       = 0.00010069
  Prefactor  = 1.00064
  Prefactor  = 0.942138
  Prefactor  = 0.596351
  Prefactor  = 3.1383
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19158
  norm       = 1.88711
  Prefactor  = 5.51528
  Prefactor  = 8.38966
  norm       = 1.56823
  norm       = 0.6276
  Prefactor  = 2.74393
  Prefactor  = 0.00010004
  norm       = 5.26549
  Prefactor  = 13.5874
  norm       = 0.0001
  Prefactor  = 11.9913
  Prefactor  = 6.71271
  norm       = 0.677452
  Prefactor  = 0.000101021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.87429
  Normalizat = 1.14874
  Prefactor  = 0.996335
 **********
 **   18 **HESSE 
 **********

 FCN=   65095.34     FROM HESSE     STATUS=OK           869 CALLS     5660 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4717        1.3626        .21463E-03   -1.5394    
   2  norm          .10000E-03    2.0132        .29220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0243        .63367        .15136E-03   -1.5506    
   4  Prefactor     .10000E-03    3.2585        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .23806        .23821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6441        6.0928        .15587E-03   -1.5192    
   8  norm          1.5165        .25421        .35776E-04   -1.5462    
   9  Prefactor     2.2434        1.4464        .16196E-03   -1.5408    
  10  norm          .10069E-03    .87251        .61481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0006        .61657        .16200E-02   -1.5508    
  12  Prefactor     .94214        1.8053        .44565E-03   -1.5514    
  13  Prefactor     .59635        .63990        .19189E-02   -1.5554    
  14  Prefactor     3.1383        4.3493        .11445E-02   -1.5354    
  15  norm          .10000E-03    4.0763        .45400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1916        1.9805        .22681E-03   -1.5351    
  18  norm          1.8871        1.9255        .30307E-03   -1.5433    
  19  Prefactor     5.5153        8.3096        .17127E-03   -1.5238    
  20  Prefactor     8.3897        9.5208        .13822E-03   -1.5129    
  21  norm          1.5682        .17737        .34438E-04   -1.5458    
  22  norm          .62760        2.2275        .23564E-02   -1.5550    
  23  Prefactor     2.7439        1.5692        .22362E-03   -1.5377    
  24  Prefactor     .10004E-03    13.993        .70426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.2655        .87953        .47190E-03   -1.5249    
  26  Prefactor     13.587        7.6818        .10858E-03   -1.4971    
  27  norm          .10000E-03    1.5458        .33828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.991        8.4911        .11576E-03   -1.5015    
  29  Prefactor     6.7127        1.4672        .13647E-03   -1.5190    
  30  norm          .67745        .32599        .98058E-04   -1.5543    
  31  Prefactor     .10102E-03    2.2419        .13187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.3134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    26.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .87429        4.5522        .17073       -1.5521    
  35  Normalizat    1.1487        .66489E-01    .22886E-03   -.88202    
  36  Prefactor     .99633        .78355E-01    .30713E-03   -.92852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04222e-07
Minuit parameter uncertainties:
  1  1.36263
  2  1.06309e-05
  3  0.633672
  4  5.49046e-06
  5  3.19934e-06
  6  1.14757e-06
  7  6.09338
  8  0.254215
  9  1.44643
  10  0.00155234
  11  0.616578
  12  1.8054
  13  0.639903
  14  4.34978
  15  5.53792e-06
  16  7.88199e-06
  17  1.98056
  18  1.92557
  19  8.31136
  20  9.52251
  21  0.177368
  22  2.22783
  23  1.56925
  24  0.00150359
  25  0.879535
  26  7.68239
  27  8.90541e-06
  28  8.49198
  29  1.46717
  30  0.325994
  31  0.00302585
  32  1.55522e-06
  33  5.45151e-05
  34  3.9902
  35  0.0664935
  36  0.0783635
Done.

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

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  6.276e-01  2.228e+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:  9.963e-01  7.836e-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.149e+00  6.649e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/956164/likelihoodResults_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 65095.3305078
delta logL = 0.00744524157926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 65095.3295479
delta logL = 0.00840510850685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72405       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6437       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99683       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=   65095.33     FROM MIGRAD    STATUS=FAILED        97 CALLS      284 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72245        2.5994        .24307E-02    .80323E-02
   2  alpha         2.6416        2.0068        .16495       -.29406E-04
   3  Normalizat    1.1479        .61098E-01    .22893E-03   -.11243E-03
   4  Prefactor     .99684        .76856E-01    .30706E-03   -.50945E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   65095.33     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      358 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72245        2.5994        .12657E-03   -1.5538    
   2  alpha         2.6416        2.0068        .32245E-02    .56659E-01
   3  Normalizat    1.1479        .61098E-01    .73136E-04   -.88227    
   4  Prefactor     .99684        .76856E-01    .12556E-03   -.92835    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   65095.33     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      392 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72245        2.3191        .48615E-03   -.13956E-03
   2  alpha         2.6416        1.8700        .65981E-02    .96490E-07
   3  Normalizat    1.1479        .61210E-01    .91571E-05   -.21851E-04
   4  Prefactor     .99684        .76856E-01    .12282E-04   -.88858E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.722449
  alpha      = 2.64159
  Normalizat = 1.14794
  Prefactor  = 0.996845
 **********
 **   18 **HESSE 
 **********

 FCN=   65095.33     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72245        2.3194        .19446E-04   -1.5538    
   2  alpha         2.6416        1.8705        .26392E-03    .56666E-01
   3  Normalizat    1.1479        .61253E-01    .18314E-05   -.88227    
   4  Prefactor     .99684        .76910E-01    .24565E-05   -.92835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70852e-11
Minuit parameter uncertainties:
  1  2.3197
  2  2.11451
  3  0.0612567
  4  0.0769186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956164': 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) = 65095.3295471
delta logL = 0.00840592501481

Extracting fit parameters...

4FGL J0958.0+4728
   Spectrum: LogParabola
353         norm:  7.224e-01  2.320e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.642e+00  2.115e+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.968e-01  7.692e-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.148e+00  6.126e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 149.509 47.468

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/956164/cmap_HighResolution_301795201_304387201_4FGL_J0958.0+4728_monthly_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-06', job_status='DONE', photon_flux_upper_limit='1.44e-08', time_completed='2021-10-21 11:45:09.292947', job_id='956164', GAL2='1.00', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1634841909.29', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.41e-03', ts2='0.11', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='25' AND source_name='4FGL J0958.0+4728' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 21 11:45:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 956164: <4FGL_J0958.0+4728_monthly_bin25> in cluster <slac> Done

Job <4FGL_J0958.0+4728_monthly_bin25> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Oct 21 08:05:14 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 08:43:33 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:43:33 2021
Terminated at Thu Oct 21 11:45:10 2021
Results reported at Thu Oct 21 11:45:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.0+4728_monthly_bin25 149.509 47.4675 301795201 304387201 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 :                                   9618.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             370.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10896 sec.
    Turnaround time :                            13196 sec.

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

