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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin140
RA = 117.701, Dec = 12.494
tmin = 275616001, tmax = 275875201
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='941158', job_status='RUN', time_executed='2021-08-28 16:05:02.374896', time_epoch_executed='1630191902.37' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941158/ft1_4FGL_J0750.8+1229_daily_bin140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941158/ft1_4FGL_J0750.8+1229_daily_bin140.fits outfile=/scratch/kocevski/941158/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin140.fits ra=117.701 dec=12.494 rad=12.0 tmin=275616001.0 tmax=275875201.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 6.91
user 3.94
sys 2.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.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/941158/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/941158/ft1_filtered_4FGL_J0750.8+1229_daily_bin140.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 3.25
user 0.31
sys 2.89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941158/ft1_filtered_4FGL_J0750.8+1229_daily_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/941158/ltcube_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.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/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits
.....................!
real 14.58
user 11.16
sys 3.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941158/ft1_filtered_4FGL_J0750.8+1229_daily_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/941158/ltcube_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.fits outfile=/scratch/kocevski/941158/expmap_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.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/941158/ltcube_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.fits
.....................!
real 193.30
user 185.13
sys 7.78

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/941158/ft1_filtered_4FGL_J0750.8+1229_daily_bin140.fits scfile=/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits outfile=/scratch/kocevski/941158/cmap_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.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 3.28
user 0.38
sys 2.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941158/ft1_filtered_4FGL_J0750.8+1229_daily_bin140.fits scfile=/scratch/kocevski/941158/ft2_4FGL_J0750.8+1229_daily_bin140.fits outfile=/scratch/kocevski/941158/cmap_HighResolution_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.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 3.23
user 0.39
sys 2.83

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.737       1.0000         .10000E-03   10000.    
     2 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1382       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5907       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.814       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.622       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6720       1.0000         .10000E-03   10000.    
    12 'norm      '    7.8981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.036       1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.636       1.0000         .10000E-03   10000.    
    15 'norm      '    110.02       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.222       1.0000         .10000E-03   10000.    
    18 'norm      '    .14964E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63885       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1144       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=   7121.994     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2368 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.736        16.164       -.11896E-06   -.84179E-04
   2  norm          .10000E-03    .78131       -.68881E-07** at limit **
   3  norm          .22975        .80246        .59797E-06   -.37662E-03
   4  Prefactor     .10000E-03    18.057        .12770E-05** at limit **
   5  Prefactor     3.1375        21.651        .10489E-04   -.30189E-03
   6  norm          2.5895        3.0729       -.51951E-06    .72720E-04
   7  norm          5.4063        1.8127       -.32863E-07    .14034E-04
   8  Prefactor     11.820        17.853        .17238E-05    .37790E-04
   9  Prefactor     47.613        28.199       -.14771E-05   -.38538E-03
  10  Prefactor     .10000E-03    15.304       -.11330E-05** at limit **
  11  Prefactor     4.6719        3.0972        .11982E-06   -.75372E-04
  12  norm          7.8978        8.7864       -.41123E-06    .11897E-03
  13  Prefactor     14.036        9.6156        .88444E-07   -.61415E-05
  14  Prefactor     78.607        100.41       -.62137E-05   -.19168E-03
  15  norm          110.01        101.55       -.30474E-05   -.14606E-03
  16  Prefactor     .10000E-03    9.3204        .73822E-06** at limit **
  17  norm          17.234        18.431        .20883E-05    .45857E-03
  18  norm          .10000E-03    3.4431       -.36636E-06** at limit **
  19  Prefactor     .10000E-03    25.028        .18691E-06** at limit **
  20  Prefactor     .10000E-03    7.0907        .13491E-06** at limit **
  21  Normalizat    .63895        .19247       -.16456E-05    .84937E-05
  22  Prefactor     1.1144        .12366        .17843E-06   -.84610E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.7357
  norm       = 0.0001
  norm       = 0.229755
  Prefactor  = 0.000100001
  Prefactor  = 3.13754
  norm       = 2.58947
  norm       = 5.40633
  Prefactor  = 11.8196
  Prefactor  = 47.6134
  Prefactor  = 0.000100001
  Prefactor  = 4.67187
  norm       = 7.89783
  Prefactor  = 14.0358
  Prefactor  = 78.6068
  norm       = 110.007
  Prefactor  = 0.0001
  norm       = 17.2341
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.638948
  Prefactor  = 1.11444
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.994     FROM HESSE     STATUS=OK           342 CALLS     2710 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.736        16.183        .59941E-04   -1.4369    
   2  norm          .10000E-03    1.2070        .14419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22975        .78670        .13618E-03   -1.5612    
   4  Prefactor     .10000E-03    18.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1375        24.325        .11442E-02   -1.5354    
   6  norm          2.5895        3.3232        .92589E-04   -1.5386    
   7  norm          5.4063        1.8125        .63763E-04   -1.5243    
   8  Prefactor     11.820        19.342        .11655E-03   -1.5020    
   9  Prefactor     47.613        28.616        .58106E-04   -1.4327    
  10  Prefactor     .10000E-03    15.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6719        3.0937        .11448E-03   -1.5276    
  12  norm          7.8978        8.7931        .71338E-03   -1.5146    
  13  Prefactor     14.036        9.6175        .10691E-03   -1.4959    
  14  Prefactor     78.607        103.53        .22643E-03   -1.3932    
  15  norm          110.01        102.73        .19173E-03   -1.3606    
  16  Prefactor     .10000E-03    9.3305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.234        18.733        .96510E-04   -1.4877    
  18  norm          .10000E-03    8.2116        .30069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63895        .21212        .36547E-03   -1.0635    
  22  Prefactor     1.1144        .13747        .18626E-03   -.89007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40289e-09
Minuit parameter uncertainties:
  1  16.185
  2  1.07047e-05
  3  0.786739
  4  0.000218817
  5  17.4818
  6  3.32342
  7  1.81253
  8  19.3521
  9  28.6238
  10  0.000183883
  11  3.09379
  12  8.79456
  13  9.61857
  14  103.768
  15  102.901
  16  6.04959e-05
  17  18.7398
  18  3.03032e-05
  19  6.31323e-05
  20  1.36212e-05
  21  0.212392
  22  0.137514
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  4.672e+00  3.094e+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:  1.114e+00  1.375e-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:  6.389e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.77
Ra Dec: 117.701 12.494
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.19e-05

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) = 7121.67305186
delta logL = 0.320514978824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7121.67279766
delta logL = 0.320769179053

Fit tolerance = 1e-08

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

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

 FCN=   7121.673     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      239 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9422        114.54        .41182E-02    .33335E-03
   2  Index         2.1004        5.9401        .22277        .77651E-04
   3  Normalizat    .65823        .11961        .81398E-01    .14127E-04
   4  Prefactor     1.1066        .63007E-01    .37341E-01    .98584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94223
  Index      = 2.10043
  Normalizat = 0.658229
  Prefactor  = 1.10662
 **********
 **   18 **HESSE 
 **********

 FCN=   7121.673     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9422        4.0184        .13316E-03   -1.5220    
   2  Index         2.1004        .49768        .77199E-02   -.61862    
   3  Normalizat    .65823        .20320        .36049E-03   -1.0557    
   4  Prefactor     1.1066        .13328        .18682E-03   -.89255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84763e-11
Minuit parameter uncertainties:
  1  4.01857
  2  0.498926
  3  0.20343
  4  0.133317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941158': 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) = 7121.67279766
delta logL = 0.320769179115

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  5.942e+00  4.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.100e+00  4.989e-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:  1.107e+00  1.333e-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:  6.582e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 117.701 12.494
Photon Index (Free Index): 2.10 +/- 0.50
Photon Flux (Free Index): 4.58e-08 +/- 3.88e-08
Energy Flux (Free Index): 2.51e-05 +/- 2.19e-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/941158/cmap_HighResolution_275616001_275875201_4FGL_J0750.8+1229_daily_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='2.51e-05', photon_flux_error='4.17e-08', dlogl='3.21e-01', energy_flux='1.80e-05', photon_flux2='4.58e-08', job_status='DONE', time_completed='2021-08-28 16:16:08.638968', photon_index_error2='0.50', photon_index2='2.10', ts='4.77', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.64', time_epoch_completed='1630192568.64', return_code='0', job_id='941158', GAL2='1.11', EG2='0.66', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.88e-08', ts2='5.39', photon_index='2.52' WHERE bin_id='140' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:16:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 941158: <4FGL_J0750.8+1229_daily_bin140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin140 117.701 12.494 275616001 275875201 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 :                                   708.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            934 sec.

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

