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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin331
RA = 117.701, Dec = 12.494
tmin = 325123201, tmax = 325382401
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='941426', job_status='RUN', time_executed='2021-08-28 16:03:31.669666', time_epoch_executed='1630191811.67' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941426

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941426/ft1_4FGL_J0750.8+1229_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941426/ft1_4FGL_J0750.8+1229_daily_bin331.fits outfile=/scratch/kocevski/941426/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin331.fits ra=117.701 dec=12.494 rad=12.0 tmin=325123201.0 tmax=325382401.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.00
user 3.35
sys 0.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.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/941426/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin331.fits evtable="EVENTS" outfile="/scratch/kocevski/941426/ft1_filtered_4FGL_J0750.8+1229_daily_bin331.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.93
user 0.36
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941426/ft1_filtered_4FGL_J0750.8+1229_daily_bin331.fits" evtable="EVENTS" scfile=/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits sctable="SC_DATA" outfile=/scratch/kocevski/941426/ltcube_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.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/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits
.....................!
real 12.54
user 11.73
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941426/ft1_filtered_4FGL_J0750.8+1229_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/941426/ltcube_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.fits outfile=/scratch/kocevski/941426/expmap_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.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/941426/ltcube_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.fits
.....................!
real 190.22
user 185.06
sys 4.77

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/941426/ft1_filtered_4FGL_J0750.8+1229_daily_bin331.fits scfile=/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits outfile=/scratch/kocevski/941426/cmap_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.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.90
user 0.38
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941426/ft1_filtered_4FGL_J0750.8+1229_daily_bin331.fits scfile=/scratch/kocevski/941426/ft2_4FGL_J0750.8+1229_daily_bin331.fits outfile=/scratch/kocevski/941426/cmap_HighResolution_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.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.90
user 0.40
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6520       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.424       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6310       1.0000         .10000E-03   10000.    
    12 'norm      '    9.3671       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    111.69       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.454       1.0000         .10000E-03   10000.    
    17 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23517E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9635       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4118       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82528       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=   6971.238     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     3070 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1362        .18142E-02** at limit **
   2  norm          .10000E-03    .58952        .62233E-03** at limit **
   3  norm          1.3035        1.1253        .38678E-04   -.52319E-04
   4  Prefactor     69.569        59.241        .24065E-03   -.52438E-05
   5  Prefactor     .10000E-03    42.668        .18142E-02** at limit **
   6  norm          1.6521        1.3728        .86540E-04   -.53992E-04
   7  norm          1.4949        2.0106        .13242E-03   -.24201E-03
   8  Prefactor     .10000E-03    5.3607        .18142E-02** at limit **
   9  Prefactor     20.421        17.930        .88627E-04   -.10775E-04
  10  Prefactor     .10000E-03    119.46        .18142E-02** at limit **
  11  Prefactor     2.6315        3.0241        .14875E-03   -.17074E-03
  12  norm          9.3664        10.307        .13094E-03   -.11808E-04
  13  Prefactor     .10000E-03    4.5861        .17450E-02** at limit **
  14  Prefactor     .10000E-03    28.359        .18142E-02** at limit **
  15  norm          111.70        110.83        .38062E-04   -.26284E-05
  16  Prefactor     25.448        34.842        .79400E-04   -.34364E-05
  17  norm          .10000E-03    30.446        .18142E-02** at limit **
  18  norm          9.1851        6.1526        .13224E-03   -.98007E-05
  19  Prefactor     .10000E-03    46.663        .13959    ** at limit **
  20  Prefactor     5.9580        17.705        .16443E-03   -.65613E-04
  21  Normalizat    1.4116        .23939        .27818E-03   -.58565E-04
  22  Prefactor     .82536        .14183        .21878E-03   -.23395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.30352
  Prefactor  = 69.5691
  Prefactor  = 0.0001
  norm       = 1.65215
  norm       = 1.49489
  Prefactor  = 0.0001
  Prefactor  = 20.4212
  Prefactor  = 0.0001
  Prefactor  = 2.6315
  norm       = 9.36639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 111.703
  Prefactor  = 25.448
  norm       = 0.0001
  norm       = 9.1851
  Prefactor  = 0.000100001
  Prefactor  = 5.95797
  Normalizat = 1.4116
  Prefactor  = 0.825355
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.238     FROM HESSE     STATUS=OK           330 CALLS     3400 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .58955        .12447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3035        1.1253        .15471E-05   -1.5480    
   4  Prefactor     69.569        59.240        .96260E-05   -1.4038    
   5  Prefactor     .10000E-03    42.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6521        1.3726        .34616E-05   -1.5451    
   7  norm          1.4949        2.0105        .52970E-05   -1.5463    
   8  Prefactor     .10000E-03    5.3613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.421        17.931        .35451E-05   -1.4804    
  10  Prefactor     .10000E-03    119.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6315        3.0239        .59501E-05   -1.5384    
  12  norm          9.3664        10.307        .52377E-05   -1.5096    
  13  Prefactor     .10000E-03    4.5863        .34900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          111.70        110.83        .76124E-05   -1.3590    
  16  Prefactor     25.448        34.849        .31760E-05   -1.4699    
  17  norm          .10000E-03    30.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1851        6.1525        .52895E-05   -1.5102    
  19  Prefactor     .10000E-03    47.412        .13822       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9580        17.704        .65772E-05   -1.5220    
  21  Normalizat    1.4116        .23957        .11127E-04   -.80294    
  22  Prefactor     .82536        .14194        .43755E-04   -.98800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29283e-10
Minuit parameter uncertainties:
  1  1.11276e-05
  2  3.44567e-07
  3  1.12537
  4  59.2907
  5  1.37941e-05
  6  1.37267
  7  2.01058
  8  1.17141e-05
  9  17.9355
  10  0.000231145
  11  3.02411
  12  10.3091
  13  5.00263e-06
  14  2.40397e-06
  15  111.035
  16  34.8769
  17  5.31936e-05
  18  6.15292
  19  0.000337248
  20  17.7197
  21  0.23976
  22  0.142
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  2.631e+00  3.024e+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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.254e-01  1.420e-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.412e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 117.701 12.494
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.16e-05

TS (Fixed Index): 1.03
Ra Dec: 117.701 12.494
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941426/likelihoodResults_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6971.19147398
delta logL = 0.046747342034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6971.18788246
delta logL = 0.0503388601501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1133       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2635       1.0000          .0000       10.000    
     3 'Normalizat'    1.4190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82225       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=   6971.188     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1134        3.6476        .15981E-03   -.45934E-03
   2  Index         2.2635        .76755        .10687E-01   -.34368E-04
   3  Normalizat    1.4190        .22250        .27756E-03    .39280E-04
   4  Prefactor     .82225        .13751        .21912E-03    .49965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.11339
  Index      = 2.26351
  Normalizat = 1.41897
  Prefactor  = 0.822249
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.188     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1134        3.5987        .63925E-05   -1.5355    
   2  Index         2.2635        .75714        .42747E-03   -.57913    
   3  Normalizat    1.4190        .22264        .11102E-04   -.80082    
   4  Prefactor     .82225        .13759        .87646E-05   -.98913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14316e-10
Minuit parameter uncertainties:
  1  3.59893
  2  0.761332
  3  0.222796
  4  0.137652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941426': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6971.18788246
delta logL = 0.0503388636371

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  3.113e+00  3.599e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.264e+00  7.613e-01  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.222e-01  1.377e-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.419e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 117.701 12.494
Photon Index (Free Index): 2.26 +/- 0.76
Photon Flux (Free Index): 2.95e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/941426/cmap_HighResolution_325123201_325382401_4FGL_J0750.8+1229_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.19e-05', photon_flux_error='4.08e-08', dlogl='5.03e-02', energy_flux='1.01e-05', photon_flux2='2.95e-08', job_status='DONE', time_completed='2021-08-28 16:15:54.071391', photon_index_error2='0.76', photon_index2='2.26', ts='1.03', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.47e-05', EG='1.41', time_epoch_completed='1630192554.07', return_code='0', job_id='941426', GAL2='0.82', EG2='1.42', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.97e-08', ts2='1.13', photon_index='2.52' WHERE bin_id='331' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 941426: <4FGL_J0750.8+1229_daily_bin331> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin331 117.701 12.494 325123201 325382401 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 :                                   742.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

