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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin512
RA = 117.701, Dec = 12.494
tmin = 372038401, tmax = 372297601
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='942724', job_status='RUN', time_executed='2021-08-28 16:07:47.419010', time_epoch_executed='1630192067.42' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942724/ft1_4FGL_J0750.8+1229_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942724/ft1_4FGL_J0750.8+1229_daily_bin512.fits outfile=/scratch/kocevski/942724/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin512.fits ra=117.701 dec=12.494 rad=12.0 tmin=372038401.0 tmax=372297601.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 5.15
user 4.16
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.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/942724/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin512.fits evtable="EVENTS" outfile="/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.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 1.29
user 0.32
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits" evtable="EVENTS" scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits sctable="SC_DATA" outfile=/scratch/kocevski/942724/ltcube_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.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/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits
.....................!
real 12.75
user 11.64
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/942724/ltcube_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits outfile=/scratch/kocevski/942724/expmap_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.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/942724/ltcube_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits
.....................!
real 191.38
user 185.36
sys 5.65

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 168 point sources and 2 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 J0750.8+1229 @ 117.701 12.494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits outfile=/scratch/kocevski/942724/cmap_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.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=117.701 yref=12.494 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 1.11
user 0.37
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits outfile=/scratch/kocevski/942724/cmap_HighResolution_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.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=117.701 yref=12.494 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 1.13
user 0.37
sys 0.73

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942724/Model_4FGL_J0750.8+1229_daily_bin512.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits.....................!
real 111.12
user 108.82
sys 1.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits', '/scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits', expMap='/scratch/kocevski/942724/expmap_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits', expCube='/scratch/kocevski/942724/ltcube_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942724/Model_4FGL_J0750.8+1229_daily_bin512.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0750.8+1229'

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942724/ft1_filtered_4FGL_J0750.8+1229_daily_bin512.fits
Spacecraft file(s): /scratch/kocevski/942724/ft2_4FGL_J0750.8+1229_daily_bin512.fits
Exposure map: /scratch/kocevski/942724/expmap_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits
Exposure cube: /scratch/kocevski/942724/ltcube_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942724/Model_4FGL_J0750.8+1229_daily_bin512.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) = 8445.43627905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    51.020       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6648       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0313       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    18.931       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8642       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3260       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82353       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8445.421     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2448 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          51.020        15.896        .38603E-07    .15385E-04
   2  norm          4.6645        2.2005       -.28398E-07   -.23661E-03
   3  norm          .10000E-03    .44921        .12145E-07** at limit **
   4  Prefactor     .10000E-03    53.856        .48797E-05** at limit **
   5  Prefactor     .10000E-03    21.497        .14122E-05** at limit **
   6  norm          5.0317        1.7271        .62665E-07    .41286E-03
   7  norm          1.9204        1.6125       -.99358E-08   -.12201E-03
   8  Prefactor     .10000E-03    8.9176       -.37540E-06** at limit **
   9  Prefactor     .77388        9.0020        .32847E-06   -.69237E-04
  10  Prefactor     .10000E-03    36.876       -.38040E-05** at limit **
  11  Prefactor     .10000E-03    1.1958        .69321E-07** at limit **
  12  norm          .10000E-03    19.505        .20905E-05** at limit **
  13  Prefactor     1.9509        5.9186       -.69607E-06   -.16163E-03
  14  Prefactor     .10000E-03    30.809       -.25892E-05** at limit **
  15  norm          .10000E-03    23.611        .92237E-06** at limit **
  16  Prefactor     .10000E-03    10.238        .98556E-06** at limit **
  17  norm          18.935        18.311       -.38281E-06    .90604E-05
  18  norm          2.8646        4.1304        .24289E-05   -.57705E-04
  19  Prefactor     .10000E-03    14.101       -.18437E-05** at limit **
  20  Prefactor     .10000E-03    3.1581        .80994E-08** at limit **
  21  Normalizat    1.3260        .17405       -.30878E-07    .11101E-04
  22  Prefactor     .82357        .11131       -.12339E-06    .12282E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 51.0204
  norm       = 4.66449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.03169
  norm       = 1.92043
  Prefactor  = 0.0001
  Prefactor  = 0.773883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.9509
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9353
  norm       = 2.86459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32598
  Prefactor  = 0.823571
 **********
 **   18 **HESSE 
 **********

 FCN=   8445.421     FROM HESSE     STATUS=OK           344 CALLS     2792 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          51.020        15.902        .56146E-04   -1.4278    
   2  norm          4.6645        2.2058        .88674E-04   -1.5276    
   3  norm          .10000E-03    .87920        .11921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    53.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0317        1.7217        .68133E-04   -1.5259    
   7  norm          1.9204        1.6007        .10268E-03   -1.5431    
   8  Prefactor     .10000E-03    8.9829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77388        43.642        .53207E-02   -1.5532    
  10  Prefactor     .10000E-03    36.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3904        .19108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9509        5.9072        .29721E-03   -1.5429    
  14  Prefactor     .10000E-03    30.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          18.935        18.333        .92054E-04   -1.4837    
  18  norm          2.8646        4.1325        .10880E-02   -1.5369    
  19  Prefactor     .10000E-03    14.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1633        .15949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3260        .19745        .27325E-03   -.82794    
  22  Prefactor     .82357        .12842        .21583E-03   -.98865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66562e-08
Minuit parameter uncertainties:
  1  15.9035
  2  2.20581
  3  3.58168e-07
  4  4.95206e-05
  5  2.02697e-05
  6  1.72169
  7  1.60074
  8  3.13358e-06
  9  11.6312
  10  3.6178e-05
  11  9.40022e-06
  12  0.000125043
  13  5.90891
  14  1.38831e-05
  15  5.27961e-06
  16  3.13999e-06
  17  18.3389
  18  4.13286
  19  1.22164e-05
  20  3.74e-07
  21  0.197561
  22  0.128466
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.400e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.236e-01  1.285e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.326e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.701 12.494
Photon Flux Upper Limit: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942724/likelihoodResults_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.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) = 8445.42163802
delta logL = -0.000884691649844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8445.4207547
delta logL = -1.37124152388e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11914E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6072       1.0000          .0000       10.000    
     3 'Normalizat'    1.3265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   8444.876     FROM MIGRAD    STATUS=FAILED       306 CALLS      481 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21396E-01    .20437E-03** at limit **
   2  Index         8.1767        8.7691        .94995E-02    .51729E-03
   3  Normalizat    1.2683        .86453E-01    .27841E-03    .43692E-03
   4  Prefactor     .84780        .55266E-01    .21310E-03    .60631E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8444.876     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      620 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21396E-01    .18894E-04** at limit **
   2  Index         8.1767        8.7691        .14603E-02    .51729E-03
   3  Normalizat    1.2683        .86453E-01    .39024E-04    .43692E-03
   4  Prefactor     .84780        .55266E-01    .15875E-04    .60631E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8444.876     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      660 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14095E-01    .25341E-03** at limit **
   2  Index         8.1767        8.6942        .18999E-02    .52179E-05
   3  Normalizat    1.2683        .79247E-01    .55683E-04    .45995E-03
   4  Prefactor     .84780        .50729E-01    .42621E-04    .61787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.17672
  Normalizat = 1.26828
  Prefactor  = 0.847804
 **********
 **   18 **HESSE 
 **********

 FCN=   8444.876     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      693 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16856E-01    .23336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1767        8.7479        .75996E-04    .68845    
   3  Normalizat    1.2683        .83976E-01    .11137E-04   -.84518    
   4  Prefactor     .84780        .53757E-01    .85242E-05   -.97990    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59456e-10
Minuit parameter uncertainties:
  1  1.64545e-06
  2  6.68463
  3  0.0839848
  4  0.0537608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942724': 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) = 8444.87593191
delta logL = 0.544821419413

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.645e-06  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  8.177e+00  6.685e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.478e-01  5.376e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.268e+00  8.398e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 117.701 12.494
Photon Index (Free Index): 8.18 +/- 6.68
Photon Flux (Free Index): 4.58e-08 +/- 5.91e-07
Energy Flux (Free Index): 5.29e-06 +/- 6.79e-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/942724/cmap_HighResolution_372038401_372297601_4FGL_J0750.8+1229_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', comment='SUCCESS', energy_flux2='5.29e-06', dlogl='5.45e-01', photon_flux2='4.58e-08', job_status='DONE', time_completed='2021-08-28 16:21:40.931579', photon_index_error2='6.68', photon_index2='8.18', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='8.17e-08', energy_flux_error2='6.79e-05', EG='1.33', time_epoch_completed='1630192900.93', return_code='0', job_id='942724', GAL2='0.85', EG2='1.27', return_code2='102', photon_flux_error2='5.91e-07', ts2='1.16', photon_index='2.52' WHERE bin_id='512' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:21:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 942724: <4FGL_J0750.8+1229_daily_bin512> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin512> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 16:05:33 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 16:05:35 2021
Terminated at Sat Aug 28 16:21:41 2021
Results reported at Sat Aug 28 16:21:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin512 117.701 12.494 372038401 372297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0750.8+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

