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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin786
RA = 117.701, Dec = 12.494
tmin = 443059201, tmax = 443318401
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='944529', job_status='RUN', time_executed='2021-08-28 16:13:36.873232', time_epoch_executed='1630192416.87' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/944529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/944529/ft1_4FGL_J0750.8+1229_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/944529/ft1_4FGL_J0750.8+1229_daily_bin786.fits outfile=/scratch/kocevski/944529/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin786.fits ra=117.701 dec=12.494 rad=12.0 tmin=443059201.0 tmax=443318401.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 4.55
user 3.55
sys 0.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.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/944529/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/944529/ft1_filtered_4FGL_J0750.8+1229_daily_bin786.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.31
user 0.33
sys 0.90

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/944529/ft1_filtered_4FGL_J0750.8+1229_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/944529/ltcube_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.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/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits
.....................!
real 12.68
user 11.45
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/944529/ft1_filtered_4FGL_J0750.8+1229_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/944529/ltcube_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.fits outfile=/scratch/kocevski/944529/expmap_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.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/944529/ltcube_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.fits
.....................!
real 192.24
user 186.23
sys 5.64

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/944529/ft1_filtered_4FGL_J0750.8+1229_daily_bin786.fits scfile=/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits outfile=/scratch/kocevski/944529/cmap_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.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.32
user 0.36
sys 0.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/944529/ft1_filtered_4FGL_J0750.8+1229_daily_bin786.fits scfile=/scratch/kocevski/944529/ft2_4FGL_J0750.8+1229_daily_bin786.fits outfile=/scratch/kocevski/944529/cmap_HighResolution_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.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.38
user 0.37
sys 0.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.818       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5005       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5450       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3515       1.0000         .10000E-03   10000.    
     7 'norm      '    15.615       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34954       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.263       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.289       1.0000         .10000E-03   10000.    
    15 'norm      '    37.766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    50.722       1.0000         .10000E-03   10000.    
    18 'norm      '    9.9483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0711       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97508       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=   6189.282     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2382 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.815        10.991        .14284E-04   -.27702E-04
   2  norm          4.4998        2.8763       -.31928E-06   -.28369E-03
   3  norm          1.2138        1.2982       -.27352E-06   -.67972E-03
   4  Prefactor     .10000E-03    80.684       -.15209E-04** at limit **
   5  Prefactor     5.5504        118.99        .14142E-04   -.12000E-05
   6  norm          2.3341        2.3866        .13828E-06   -.13963E-03
   7  norm          15.617        3.8295       -.11534E-06   -.12302E-04
   8  Prefactor     .53569        21.061        .27782E-06    .11364E-03
   9  Prefactor     13.640        23.198        .13493E-05   -.32400E-05
  10  Prefactor     5.0710        67.971       -.34641E-04   -.18600E-04
  11  Prefactor     .10000E-03    1.5591        .29606E-06** at limit **
  12  norm          .10000E-03    11.678        .96603E-06** at limit **
  13  Prefactor     11.271        12.719       -.91255E-05   -.54305E-04
  14  Prefactor     50.255        102.53       -.37076E-04    .13333E-05
  15  norm          37.763        93.243       -.82802E-06    .22370E-05
  16  Prefactor     .10000E-03    12.480       -.87120E-07** at limit **
  17  norm          50.724        30.985       -.14494E-04   -.20472E-05
  18  norm          9.9492        6.3913       -.29095E-05    .13499E-04
  19  Prefactor     29.458        46.608        .26271E-04    .19702E-04
  20  Prefactor     .10000E-03    6.7498       -.77298E-07** at limit **
  21  Normalizat    1.0701        .22538        .29550E-05   -.98061E-04
  22  Prefactor     .97560        .13914       -.97147E-06    .16259E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8145
  norm       = 4.49984
  norm       = 1.21379
  Prefactor  = 0.0001
  Prefactor  = 5.55039
  norm       = 2.33411
  norm       = 15.6165
  Prefactor  = 0.535686
  Prefactor  = 13.6405
  Prefactor  = 5.07102
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 11.2705
  Prefactor  = 50.2551
  norm       = 37.7631
  Prefactor  = 0.0001
  norm       = 50.7238
  norm       = 9.94916
  Prefactor  = 29.4581
  Prefactor  = 0.0001
  Normalizat = 1.07009
  Prefactor  = 0.975603
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.282     FROM HESSE     STATUS=OK           350 CALLS     2732 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.815        10.973        .12181E-03   -1.5050    
   2  norm          4.4998        2.8694        .98984E-04   -1.5284    
   3  norm          1.2138        1.2800        .87068E-04   -1.5488    
   4  Prefactor     .10000E-03    80.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5504        117.59        .17062E-03   -1.5237    
   6  norm          2.3341        3.5156        .79644E-04   -1.5402    
   7  norm          15.617        3.8244        .72053E-04   -1.4917    
   8  Prefactor     .53569        250.15        .42144E-02   -1.5562    
   9  Prefactor     13.640        23.222        .10845E-03   -1.4969    
  10  Prefactor     5.0710        71.358        .17705E-03   -1.5258    
  11  Prefactor     .10000E-03    1.5794        .95848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.271        12.749        .11937E-03   -1.5036    
  14  Prefactor     50.255        102.55        .56551E-04   -1.4289    
  15  norm          37.763        93.304        .65218E-04   -1.4478    
  16  Prefactor     .10000E-03    12.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          50.724        30.964        .56310E-04   -1.4282    
  18  norm          9.9492        6.3901        .12704E-03   -1.5077    
  19  Prefactor     29.458        47.141        .73884E-04   -1.4622    
  20  Prefactor     .10000E-03    6.7766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0701        .27115        .30414E-03   -.90718    
  22  Prefactor     .97560        .16473        .20944E-03   -.93547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57748e-09
Minuit parameter uncertainties:
  1  10.975
  2  2.86945
  3  1.28
  4  1.95373e-05
  5  51.2099
  6  3.51592
  7  3.82447
  8  23.2479
  9  23.2378
  10  38.0999
  11  3.74685e-05
  12  0.000216555
  13  12.7524
  14  102.91
  15  93.6674
  16  6.44305e-05
  17  30.9736
  18  6.3905
  19  47.2008
  20  3.42917e-05
  21  0.2715
  22  0.164816
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.747e-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:  9.756e-01  1.648e-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.070e+00  2.715e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/944529/likelihoodResults_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.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) = 6189.28521396
delta logL = -0.00300995880934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6189.28220412
delta logL = -1.1501924746e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5114       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97564       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.

 FCN=   6189.282     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      235 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    51.911        .95978E-03** at limit **
   2  Index         2.4764        7.0792        .50000        .24319E-04
   3  Normalizat    1.0701        .32179E-01    .30413E-03   -.18500E-03
   4  Prefactor     .97560        .21391E-01    .20944E-03   -.13494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100264
  Index      = 2.4764
  Normalizat = 1.0701
  Prefactor  = 0.975601
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.282     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    195.98        .19196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4764        6.1632        .50000       -.52906    
   3  Normalizat    1.0701        .72794E-01    .12165E-04   -.90718    
   4  Prefactor     .97560        .48293E-01    .41889E-04   -.93547    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.01463e-08
Minuit parameter uncertainties:
  1  0.0144424
  2  817.062
  3  0.0728004
  4  0.0482955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/944529': 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) = 6189.28220383
delta logL = 1.6826470528e-07

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.003e-04  1.444e-02  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.476e+00  8.171e+02  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:  9.756e-01  4.830e-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.070e+00  7.280e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.701 12.494

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/944529/cmap_HighResolution_443059201_443318401_4FGL_J0750.8+1229_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-28 16:25:03.406974', job_id='944529', GAL2='0.98', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630193103.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='786' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 944529: <4FGL_J0750.8+1229_daily_bin786> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin786> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 16:10:36 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:10:36 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:10:36 2021
Terminated at Sat Aug 28 16:25:04 2021
Results reported at Sat Aug 28 16:25:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin786 117.701 12.494 443059201 443318401 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 :                                   687.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

