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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin173
RA = 117.701, Dec = 12.494
tmin = 284169601, tmax = 284428801
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='941205', job_status='RUN', time_executed='2021-08-28 16:03:42.625457', time_epoch_executed='1630191822.63' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941205/ft1_4FGL_J0750.8+1229_daily_bin173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941205/ft1_4FGL_J0750.8+1229_daily_bin173.fits outfile=/scratch/kocevski/941205/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin173.fits ra=117.701 dec=12.494 rad=12.0 tmin=284169601.0 tmax=284428801.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 3.79
user 3.32
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.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/941205/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.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.73
user 0.34
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/941205/ltcube_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.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/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits
.....................!
real 12.32
user 11.68
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/941205/ltcube_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits outfile=/scratch/kocevski/941205/expmap_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.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/941205/ltcube_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits
.....................!
real 191.27
user 185.49
sys 5.38

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/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits outfile=/scratch/kocevski/941205/cmap_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.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 0.76
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits outfile=/scratch/kocevski/941205/cmap_HighResolution_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.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 0.78
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/941205/Model_4FGL_J0750.8+1229_daily_bin173.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/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits.....................!
real 99.83
user 97.88
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits', '/scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits', expMap='/scratch/kocevski/941205/expmap_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits', expCube='/scratch/kocevski/941205/ltcube_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/941205/Model_4FGL_J0750.8+1229_daily_bin173.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/941205/ft1_filtered_4FGL_J0750.8+1229_daily_bin173.fits
Spacecraft file(s): /scratch/kocevski/941205/ft2_4FGL_J0750.8+1229_daily_bin173.fits
Exposure map: /scratch/kocevski/941205/expmap_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits
Exposure cube: /scratch/kocevski/941205/ltcube_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/941205/Model_4FGL_J0750.8+1229_daily_bin173.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) = 7641.95927664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .45744E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8230       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9179       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2783       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6293       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.188       1.0000         .10000E-03   10000.    
    17 'norm      '    34.301       1.0000         .10000E-03   10000.    
    18 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.714       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97994       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1251       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=   7641.886     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2406 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1217        .28280E-07** at limit **
   2  norm          .70526E-03    .81541       -.60940E-06** at limit **
   3  norm          5.8227        1.8318        .10867E-06   -.18781E-03
   4  Prefactor     .10000E-03    47.368        .16443E-04** at limit **
   5  Prefactor     2.8898        38.945        .41735E-04   -.15897E-04
   6  norm          3.2774        1.5866        .27873E-06    .37654E-04
   7  norm          2.1647        2.0615       -.44485E-06   -.81793E-03
   8  Prefactor     .10000E-03    9.3928        .48636E-06** at limit **
   9  Prefactor     .10000E-03    12.293        .13799E-06** at limit **
  10  Prefactor     33.358        49.578       -.17622E-04   -.11013E-04
  11  Prefactor     .10000E-03    2.4420        .10436E-06** at limit **
  12  norm          2.6190        20.500        .59513E-05   -.99467E-04
  13  Prefactor     .10000E-03    20.896       -.81037E-06** at limit **
  14  Prefactor     .10000E-03    51.652       -.25029E-04** at limit **
  15  norm          .10000E-03    48.371        .15206E-05** at limit **
  16  Prefactor     16.070        40.134        .16951E-05   -.29554E-04
  17  norm          34.339        29.993        .15458E-04   -.71397E-05
  18  norm          .10000E-03    2.0539       -.15239E-06** at limit **
  19  Prefactor     29.712        28.272       -.66080E-05   -.16132E-04
  20  Prefactor     .10000E-03    6.4602        .15317E-07** at limit **
  21  Normalizat    .97994        .20410       -.64828E-06   -.23147E-04
  22  Prefactor     1.1251        .12689       -.94363E-06    .17624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000705263
  norm       = 5.82267
  Prefactor  = 0.0001
  Prefactor  = 2.88979
  norm       = 3.27744
  norm       = 2.16472
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 33.358
  Prefactor  = 0.0001
  norm       = 2.61896
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0698
  norm       = 34.3387
  norm       = 0.0001
  Prefactor  = 29.7124
  Prefactor  = 0.0001
  Normalizat = 0.979944
  Prefactor  = 1.1251
 **********
 **   18 **HESSE 
 **********

 FCN=   7641.886     FROM HESSE     STATUS=OK           348 CALLS     2754 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .70526E-03    3.3392        .25669E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8227        1.8334        .62928E-04   -1.5225    
   4  Prefactor     .10000E-03    47.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8898        38.627        .23783E-03   -1.5368    
   6  norm          3.2774        1.5811        .73592E-04   -1.5346    
   7  norm          2.1647        2.0524        .11693E-03   -1.5414    
   8  Prefactor     .10000E-03    9.5047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.358        49.948        .69347E-04   -1.4552    
  11  Prefactor     .10000E-03    2.4888        .13318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6190        20.197        .25149E-03   -1.5384    
  13  Prefactor     .10000E-03    21.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    48.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.070        40.058        .99545E-04   -1.4906    
  17  norm          34.339        29.912        .68423E-04   -1.4535    
  18  norm          .10000E-03    2.0648        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.712        28.334        .73500E-04   -1.4617    
  20  Prefactor     .10000E-03    6.4800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97994        .23215        .33381E-03   -.93705    
  22  Prefactor     1.1251        .14548        .20126E-03   -.88668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19406e-10
Minuit parameter uncertainties:
  1  7.94487e-06
  2  0.0899176
  3  1.83345
  4  5.43281e-05
  5  21.1468
  6  1.58113
  7  2.05249
  8  0.000148102
  9  4.9568e-05
  10  50.0102
  11  1.47632e-05
  12  14.5523
  13  0.000320017
  14  2.97811e-05
  15  5.88066e-05
  16  40.1253
  17  29.9253
  18  2.36086e-05
  19  28.3467
  20  3.93812e-06
  21  0.232389
  22  0.145532
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.476e-05  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:  1.125e+00  1.455e-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:  9.799e-01  2.324e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941205/likelihoodResults_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.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) = 7641.8880822
delta logL = -0.00191484887364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7641.88616717
delta logL = 1.78520167537e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5416       1.0000          .0000       10.000    
     3 'Normalizat'    .97997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1251       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=   7641.886     FROM MIGRAD    STATUS=FAILED        91 CALLS      243 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    10.651        .27338E-03** at limit **
   2  Index         2.5687        5.2433        .50000       -.98917E-04
   3  Normalizat    .97994        .21562        .33381E-03   -.13963E-05
   4  Prefactor     1.1251        .13927        .20126E-03    .38649E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7641.886     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      379 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    10.651        .23210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5687        5.2433        .28376E-03   -.50779    
   3  Normalizat    .97994        .21562        .32365E-04   -.93705    
   4  Prefactor     1.1251        .13927        .21195E-04   -.88668    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7640.079     FROM MIGRAD    STATUS=CONVERGED    224 CALLS      603 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .63227E-02    .17825E-03** at limit **
   2  Index         8.6610        2.7093        .17075        .12598E-03
   3  Normalizat    .83957        .69329E-01    .13352E-03   -.59771E-04
   4  Prefactor     1.1845        .43781E-01    .40251E-04   -.27572E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.66097
  Normalizat = 0.83957
  Prefactor  = 1.18446
 **********
 **   18 **HESSE 
 **********

 FCN=   7640.079     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      640 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .11042E-01    .16880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6610        7.8151        .71791E-02    .82154    
   3  Normalizat    .83957        .12053        .53410E-05   -.98617    
   4  Prefactor     1.1845        .76206E-01    .80503E-05   -.86811    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.918e-11
Minuit parameter uncertainties:
  1  4.11627e-08
  2  4.17627
  3  0.120569
  4  0.0762136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941205': 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) = 7640.07869048
delta logL = 1.80747686611

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.116e-08  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  8.661e+00  4.176e+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:  1.184e+00  7.621e-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:  8.396e-01  1.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 117.701 12.494
Photon Index (Free Index): 8.66 +/- 4.18
Photon Flux (Free Index): 1.20e-07 +/- 9.69e-07
Energy Flux (Free Index): 1.37e-05 +/- 1.10e-04

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/941205/cmap_HighResolution_284169601_284428801_4FGL_J0750.8+1229_daily_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', comment='SUCCESS', energy_flux2='1.37e-05', dlogl='1.81e+00', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-08-28 16:16:19.989476', photon_index_error2='4.18', photon_index2='8.66', ts='-0.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.90e-08', energy_flux_error2='1.10e-04', EG='0.98', time_epoch_completed='1630192579.99', return_code='0', job_id='941205', GAL2='1.18', EG2='0.84', return_code2='102', photon_flux_error2='9.69e-07', ts2='3.98', photon_index='2.52' WHERE bin_id='173' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 941205: <4FGL_J0750.8+1229_daily_bin173> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin173> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 16:00:37 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:00:38 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:00:38 2021
Terminated at Sat Aug 28 16:16:20 2021
Results reported at Sat Aug 28 16:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin173 117.701 12.494 284169601 284428801 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

