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


Performing analysis on: 4FGL_J0710.4+5908_monthly_bin151
RA = 107.623, Dec = 59.1352
tmin = 628387201, tmax = 630979201
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='604363', job_status='RUN', time_executed='2021-10-17 16:31:17.711059', time_epoch_executed='1634513477.71' WHERE source_name='4FGL J0710.4+5908' and cadence='monthly' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604363

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604363/ft1_4FGL_J0710.4+5908_monthly_bin151.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604363/ft1_4FGL_J0710.4+5908_monthly_bin151.fits outfile=/scratch/kocevski/604363/ft1_filteredMKT_4FGL_J0710.4+5908_monthly_bin151.fits ra=107.623 dec=59.1352 rad=12.0 tmin=628387201.0 tmax=630979201.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.55
user 29.96
sys 0.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.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/604363/ft1_filteredMKT_4FGL_J0710.4+5908_monthly_bin151.fits evtable="EVENTS" outfile="/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.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.85
user 0.65
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/604363/ltcube_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.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/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits
.....................!
real 134.13
user 133.42
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/604363/ltcube_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits outfile=/scratch/kocevski/604363/expmap_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.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/604363/ltcube_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits
.....................!
real 192.12
user 186.41
sys 5.29

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 204 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0710.4+5908 @ 107.623 59.1352

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits outfile=/scratch/kocevski/604363/cmap_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.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=107.623 yref=59.1352 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits outfile=/scratch/kocevski/604363/cmap_HighResolution_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.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=107.623 yref=59.1352 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604363/Model_4FGL_J0710.4+5908_monthly_bin151.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 G150.3+4.5
adding source GAL_V02
Working on...
/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits.....................!
real 721.23
user 718.06
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits', '/scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits', expMap='/scratch/kocevski/604363/expmap_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits', expCube='/scratch/kocevski/604363/ltcube_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604363/Model_4FGL_J0710.4+5908_monthly_bin151.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0710.4+5908'

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  2.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/604363/ft1_filtered_4FGL_J0710.4+5908_monthly_bin151.fits
Spacecraft file(s): /scratch/kocevski/604363/ft2_4FGL_J0710.4+5908_monthly_bin151.fits
Exposure map: /scratch/kocevski/604363/expmap_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits
Exposure cube: /scratch/kocevski/604363/ltcube_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604363/Model_4FGL_J0710.4+5908_monthly_bin151.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 76035.9757687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9914       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43404       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.852       1.0000         .10000E-03   10000.    
    16 'norm      '    .26278E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49342E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .96577E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5987       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5529       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .85529       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1266       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1705       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95335       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   76035.12     FROM MIGRAD    STATUS=FAILED      1242 CALLS     3551 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.788        11.428        .72234E-04   -.42306E-04
   2  Prefactor     9.8177        7.9309        .12776E-03   -.27052E-04
   3  Prefactor     .10000E-03    1.7698        .18142E-02** at limit **
   4  Prefactor     10.173        3.0442        .12560E-03   -.35625E-03
   5  Prefactor     1.9858        7.4351        .29359E-03   -.71251E-04
   6  Prefactor     .10000E-03    4.0301        .18142E-02** at limit **
   7  norm          .10000E-03    .80645        .27742E-02** at limit **
   8  norm          .10000E-03    .36561        .32007E-03** at limit **
   9  Prefactor     .10000E-03    .97125        .10492    ** at limit **
  10  Prefactor     2.4615        1.7751        .26070E-03   -.42562E-04
  11  Prefactor     2.3507        3.2748        .13386E-02   -.14521E-02
  12  Prefactor     3.8264        6.1685        .10306E-02   -.49330E-03
  13  Prefactor     .48299        15.882        .57389E-02    .40127E-03
  14  Prefactor     55.779        11.916        .53663E-04    .20677E-03
  15  Prefactor     18.878        24.154        .92246E-04    .29184E-04
  16  norm          .26269E-01    .15679        .11664E-02    .10995    
  17  Prefactor     .10273E-03    .97813        .86906E-01** at limit **
  18  Prefactor     .10067E-03    2.0532        .11898    ** at limit **
  19  norm          .94581E-01    1.9038        .18224E-02    .11055E-02
  20  Prefactor     .10000E-03    2.1766        .18142E-02** at limit **
  21  norm          3.5984        1.2228        .16914E-03   -.48396E-04
  22  norm          1.5528        .48465        .10263E-03   -.35449E-04
  23  Prefactor     .85507        .43397        .11934E-03   -.13413E-02
  24  Prefactor     6.1297        2.9212        .16220E-03   -.14579E-04
  25  Prefactor     1.1692        1.6238        .39145E-03   -.47491E-03
  26  Normalizat    .95341        .73213E-01    .33196E-03   -.23014E-04
  27  Prefactor     1.0630        .37873E-01    .17680E-03    .10920E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   76035.12     FROM SIMPLEX   STATUS=UNCHANGED   1320 CALLS     4871 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.788        11.428        .34607E-06   -1.4598    
   2  Prefactor     9.8177        7.9309        .42487E-06   -1.5081    
   3  Prefactor     .10000E-03    1.7698        .21101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.173        3.0442        .10148E-06   -1.5070    
   5  Prefactor     1.9858        7.4351        .10623E-06   -1.5426    
   6  Prefactor     .10000E-03    4.0301        .31521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .80645        .67254E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .36561        .45416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .97125        .20829E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4615        1.7751        .10319E-06   -1.5394    
  11  Prefactor     2.3507        3.2748        .10574E-06   -1.5401    
  12  Prefactor     3.8264        6.1685        .10797E-06   -1.5317    
  13  Prefactor     .48299        15.882        .12757E-06   -1.5569    
  14  Prefactor     55.779        11.916        .96923E-07   -1.4213    
  15  Prefactor     18.878        24.154        .10152E-06   -1.4839    
  16  norm          .26269E-01    .15679        .10434E-06   -1.5676    
  17  Prefactor     .10273E-03    .97813        .27835E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10067E-03    2.0532        .15679E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .94581E-01    1.9038        .99268E-07   -1.5646    
  20  Prefactor     .10000E-03    2.1766        .29018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5984        1.2228        .10273E-06   -1.5329    
  22  norm          1.5528        .48465        .10429E-06   -1.5459    
  23  Prefactor     .85507        .43397        .10527E-06   -1.5523    
  24  Prefactor     6.1297        2.9212        .10422E-06   -1.5213    
  25  Prefactor     1.1692        1.6238        .10513E-06   -1.5492    
  26  Normalizat    .95341        .73213E-01    .64656E-07   -.94608    
  27  Prefactor     1.0630        .37873E-01    .60849E-07   -.90657    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   76035.12     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     5376 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.788        11.428        .14447E-04    .15109E-04
   2  Prefactor     9.8177        7.9287        .51102E-05    .14238E-04
   3  Prefactor     .10000E-03    1.7702        .36285E-03** at limit **
   4  Prefactor     10.173        3.0437        .50242E-05    .13034E-03
   5  Prefactor     1.9858        7.4304        .11743E-04    .27881E-04
   6  Prefactor     .10000E-03    4.0323        .36285E-03** at limit **
   7  norm          .10000E-03    .81554        .55483E-03** at limit **
   8  norm          .10000E-03    .36562        .64015E-04** at limit **
   9  Prefactor     .10000E-03    .97529        .10420    ** at limit **
  10  Prefactor     2.4615        1.7745        .10428E-04    .62797E-04
  11  Prefactor     2.3508        3.2730        .53545E-04    .51976E-03
  12  Prefactor     3.8265        6.1352        .41225E-04    .22062E-03
  13  Prefactor     .48290        16.006        .22956E-03   -.37242E-04
  14  Prefactor     55.779        11.908        .21465E-05    .27117E-03
  15  Prefactor     18.878        24.153        .18449E-04    .29578E-04
  16  norm          .26274E-01    .15689        .23328E-03    .14012E-02
  17  Prefactor     .10264E-03    .96329        .88155E-01** at limit **
  18  Prefactor     .10059E-03    2.0197        .12051    ** at limit **
  19  norm          .94568E-01    1.8796        .72897E-04    .42420E-04
  20  Prefactor     .10000E-03    2.1769        .36285E-03** at limit **
  21  norm          3.5984        1.2226        .67654E-05    .11830E-03
  22  norm          1.5528        .48462        .41051E-05    .15952E-03
  23  Prefactor     .85508        .43311        .47737E-05    .24768E-02
  24  Prefactor     6.1297        2.9202        .64880E-05    .56073E-04
  25  Prefactor     1.1692        1.6229        .15658E-04    .19981E-03
  26  Normalizat    .95341        .72475E-01    .13279E-04    .75891E-03
  27  Prefactor     1.0630        .37828E-01    .35360E-04    .62554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7879
  Prefactor  = 9.81774
  Prefactor  = 0.0001
  Prefactor  = 10.1731
  Prefactor  = 1.98578
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46153
  Prefactor  = 2.35084
  Prefactor  = 3.82651
  Prefactor  = 0.482898
  Prefactor  = 55.7792
  Prefactor  = 18.8778
  norm       = 0.0262736
  Prefactor  = 0.000102642
  Prefactor  = 0.000100589
  norm       = 0.0945675
  Prefactor  = 0.0001
  norm       = 3.59835
  norm       = 1.55284
  Prefactor  = 0.855082
  Prefactor  = 6.12972
  Prefactor  = 1.16924
  Normalizat = 0.953412
  Prefactor  = 1.06302
 **********
 **   18 **HESSE 
 **********

 FCN=   76035.12     FROM HESSE     STATUS=OK           492 CALLS     5868 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.788        11.425        .28894E-05   -1.4598    
   2  Prefactor     9.8177        7.9130        .10220E-05   -1.5081    
   3  Prefactor     .10000E-03    1.7702        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.173        3.0436        .10048E-05   -1.5070    
   5  Prefactor     1.9858        7.4645        .23487E-05   -1.5426    
   6  Prefactor     .10000E-03    4.0324        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .81591        .11097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .36562        .12803E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .97501        .10423       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4615        1.7743        .20856E-05   -1.5394    
  11  Prefactor     2.3508        3.2741        .21418E-05   -1.5401    
  12  Prefactor     3.8265        6.1267        .16490E-05   -1.5317    
  13  Prefactor     .48290        15.967        .91823E-05   -1.5569    
  14  Prefactor     55.779        11.874        .42931E-06   -1.4213    
  15  Prefactor     18.878        24.072        .36898E-05   -1.4839    
  16  norm          .26274E-01    .15680        .93311E-05   -1.5676    
  17  Prefactor     .10264E-03    .96527        .87974E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10059E-03    2.0246        .12024       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .94568E-01    1.8796        .29159E-05   -1.5646    
  20  Prefactor     .10000E-03    2.1769        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5984        1.2224        .13531E-05   -1.5329    
  22  norm          1.5528        .48453        .82101E-06   -1.5459    
  23  Prefactor     .85508        .43311        .95474E-06   -1.5523    
  24  Prefactor     6.1297        2.9197        .12976E-05   -1.5213    
  25  Prefactor     1.1692        1.6230        .31316E-05   -1.5492    
  26  Normalizat    .95341        .72401E-01    .26557E-05   -.94608    
  27  Prefactor     1.0630        .37815E-01    .70719E-05   -.90657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27391e-09
Minuit parameter uncertainties:
  1  11.4255
  2  7.91386
  3  4.3318e-07
  4  3.04368
  5  7.46799
  6  3.89945e-06
  7  1.57755e-06
  8  5.16198e-07
  9  8.78411e-06
  10  1.77429
  11  3.27436
  12  6.12766
  13  5.55449
  14  11.8749
  15  24.0839
  16  0.128125
  17  0.0031941
  18  0.00218452
  19  0.842793
  20  9.6753e-07
  21  1.22243
  22  0.484535
  23  0.433115
  24  2.91976
  25  1.62302
  26  0.0724084
  27  0.037816
Done.

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

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  8.784e-06  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  1.689e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.063e+00  3.782e-02  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.534e-01  7.241e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 107.623 59.135
Photon Flux Upper Limit: 7.89e-09 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604363/likelihoodResults_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.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) = 76035.116201
delta logL = -0.000635226926534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 76035.1155652
delta logL = 5.84186636843e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   76034.47     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      313 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45224E-01    .62533E-01     .0000       -.47305E-01
   2  Index         3.5159        .45624         .0000        .44101E-02
   3  Normalizat    .93278        .66505E-01     .0000        .29731E-03
   4  Prefactor     1.0688        .33691E-01     .0000       -.61091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0452235
  Index      = 3.51589
  Normalizat = 0.932782
  Prefactor  = 1.06877
 **********
 **   18 **HESSE 
 **********

 FCN=   76034.47     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      348 TOTAL
                     EDM=   .69E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45224E-01    1.7780        .41609E-03   -1.5750    
   2  Index         3.5159        3.2883        .12671E-01   -.30136    
   3  Normalizat    .93278        .70242E-01    .33535E-03   -.95318    
   4  Prefactor     1.0688        .34941E-01    .17639E-03   -.90471    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.94833e-05
Minuit parameter uncertainties:
  1  0.566511
  2  3.62721
  3  0.0702485
  4  0.0349421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604363': 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): 102
logL (Free Index) = 76034.467928
delta logL = 0.647637840564

Extracting fit parameters...

4FGL J0710.4+5908
   Spectrum: PowerLaw
266    Prefactor:  4.522e-02  5.665e-01  1.000e-04  1.000e+04 ( 1.000e-14)
267        Index:  3.516e+00  3.627e+00  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  4.959e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
660    Prefactor:  1.069e+00  3.494e-02  0.000e+00  1.000e+01 ( 1.000e+00)
661        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
662        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  9.328e-01  7.025e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 107.623 59.135
Photon Index (Free Index): 3.52 +/- 3.63
Photon Flux (Free Index): 1.65e-08 +/- 4.14e-07
Energy Flux (Free Index): 2.73e-06 +/- 6.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/604363/cmap_HighResolution_628387201_630979201_4FGL_J0710.4+5908_monthly_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-04', comment='SUCCESS', energy_flux2='2.73e-06', dlogl='6.48e-01', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-10-17 19:20:32.843194', photon_index_error2='3.63', photon_index2='3.52', ts='-0.00', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='7.89e-09', energy_flux_error2='6.62e-05', EG='0.95', time_epoch_completed='1634523632.84', return_code='0', job_id='604363', GAL2='1.07', EG2='0.93', return_code2='102', photon_flux_error2='4.14e-07', ts2='1.43', photon_index='1.69' WHERE bin_id='151' AND source_name='4FGL J0710.4+5908' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 17 19:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 604363: <4FGL_J0710.4+5908_monthly_bin151> in cluster <slac> Done

Job <4FGL_J0710.4+5908_monthly_bin151> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Oct 17 16:20:18 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 17 16:30:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 17 16:30:55 2021
Terminated at Sun Oct 17 19:20:34 2021
Results reported at Sun Oct 17 19:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.4+5908_monthly_bin151 107.623 59.1352 628387201 630979201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0710.4+5908 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9788.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             414.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10179 sec.
    Turnaround time :                            10816 sec.

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

