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


Performing analysis on: 4FGL_J0750.8+1229_daily_bin434
RA = 117.701, Dec = 12.494
tmin = 351820801, tmax = 352080001
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='942602', job_status='RUN', time_executed='2021-08-28 16:05:59.302082', time_epoch_executed='1630191959.3' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942602

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942602/ft1_4FGL_J0750.8+1229_daily_bin434.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942602/ft1_4FGL_J0750.8+1229_daily_bin434.fits outfile=/scratch/kocevski/942602/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin434.fits ra=117.701 dec=12.494 rad=12.0 tmin=351820801.0 tmax=352080001.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.71
user 3.39
sys 1.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942602/ft1_filtered_4FGL_J0750.8+1229_daily_bin434.fits" evtable="EVENTS" scfile=/scratch/kocevski/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits sctable="SC_DATA" outfile=/scratch/kocevski/942602/ltcube_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.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/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits
.....................!
real 13.50
user 11.93
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942602/ft1_filtered_4FGL_J0750.8+1229_daily_bin434.fits evtable="EVENTS" scfile=/scratch/kocevski/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits sctable="SC_DATA" expcube=/scratch/kocevski/942602/ltcube_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.fits outfile=/scratch/kocevski/942602/expmap_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.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/942602/ltcube_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.fits
.....................!
real 193.56
user 187.08
sys 5.90

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/942602/ft1_filtered_4FGL_J0750.8+1229_daily_bin434.fits scfile=/scratch/kocevski/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits outfile=/scratch/kocevski/942602/cmap_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.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.65
user 0.38
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942602/ft1_filtered_4FGL_J0750.8+1229_daily_bin434.fits scfile=/scratch/kocevski/942602/ft2_4FGL_J0750.8+1229_daily_bin434.fits outfile=/scratch/kocevski/942602/cmap_HighResolution_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.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.57
user 0.38
sys 1.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6115       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6021       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.198       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2255       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9550       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8796       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1274       1.0000         .10000E-03   10000.    
    12 'norm      '    .11115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.009       1.0000         .10000E-03   10000.    
    17 'norm      '    .10694E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5683       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73370       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=   6523.653     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2346 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6114        7.1678        .79013E-05   -.16992E-04
   2  norm          1.6056        2.3176       -.12539E-05   -.45366E-03
   3  norm          3.0395        1.3864        .34225E-07    .18836E-04
   4  Prefactor     35.810        86.200        .26272E-04   -.21264E-04
   5  Prefactor     29.187        43.258        .17681E-05    .19583E-04
   6  norm          2.2237        1.3985       -.13482E-08   -.82231E-04
   7  norm          1.9559        1.9353       -.21583E-06   -.85679E-04
   8  Prefactor     .10000E-03    21.215        .36961E-06** at limit **
   9  Prefactor     7.8770        20.678        .56583E-06   -.41115E-06
  10  Prefactor     .10000E-03    12.193        .46953E-07** at limit **
  11  Prefactor     1.1292        1.9698       -.23395E-06   -.53208E-03
  12  norm          .10000E-03    16.949       -.54295E-06** at limit **
  13  Prefactor     23.303        12.983        .17186E-06    .38133E-04
  14  Prefactor     .10000E-03    35.487       -.69333E-06** at limit **
  15  norm          .10000E-03    24.650       -.18899E-06** at limit **
  16  Prefactor     52.011        35.315       -.26156E-07    .35923E-05
  17  norm          .10000E-03    20.412        .62238E-06** at limit **
  18  norm          .10000E-03    4.4465        .43698E-08** at limit **
  19  Prefactor     .10000E-03    37.343       -.85738E-07** at limit **
  20  Prefactor     .10000E-03    3.6631       -.95983E-08** at limit **
  21  Normalizat    1.5682        .20235       -.45464E-06    .15604E-04
  22  Prefactor     .73371        .12721       -.41584E-06    .10293E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61143
  norm       = 1.60555
  norm       = 3.03952
  Prefactor  = 35.8104
  Prefactor  = 29.1873
  norm       = 2.22372
  norm       = 1.95588
  Prefactor  = 0.0001
  Prefactor  = 7.87702
  Prefactor  = 0.0001
  Prefactor  = 1.12917
  norm       = 0.0001
  Prefactor  = 23.3031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.0114
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.56819
  Prefactor  = 0.733715
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.653     FROM HESSE     STATUS=OK           344 CALLS     2690 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6114        7.1940        .16682E-02   -1.5454    
   2  norm          1.6056        2.2982        .13486E-03   -1.5455    
   3  norm          3.0395        1.3846        .61472E-04   -1.5359    
   4  Prefactor     35.810        86.064        .33392E-03   -1.4510    
   5  Prefactor     29.187        43.117        .74145E-04   -1.4627    
   6  norm          2.2237        1.3886        .72720E-04   -1.5410    
   7  norm          1.9559        1.9192        .10694E-03   -1.5428    
   8  Prefactor     .10000E-03    21.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8770        20.721        .14284E-03   -1.5147    
  10  Prefactor     .10000E-03    12.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1292        1.5936        .14423E-02   -1.5495    
  12  norm          .10000E-03    17.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.303        12.974        .82977E-04   -1.4742    
  14  Prefactor     .10000E-03    35.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    24.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.011        35.419        .55613E-04   -1.4264    
  17  norm          .10000E-03    20.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5009        .16629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.6662        .15097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5682        .23030        .25990E-03   -.75880    
  22  Prefactor     .73371        .14482        .23031E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15117e-09
Minuit parameter uncertainties:
  1  6.81073
  2  2.29837
  3  1.38466
  4  86.3647
  5  43.1634
  6  1.38863
  7  1.91928
  8  8.28813e-06
  9  20.7403
  10  9.76565e-07
  11  1.59364
  12  9.57792e-06
  13  12.9759
  14  1.11275e-05
  15  3.07749e-06
  16  35.4332
  17  3.73251e-06
  18  2.1508e-06
  19  8.3251e-06
  20  4.3852e-07
  21  0.230452
  22  0.144893
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.129e+00  1.594e+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:  7.337e-01  1.449e-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.568e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/942602/likelihoodResults_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.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) = 6523.37705814
delta logL = 0.275584187131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.36769712
delta logL = 0.284945205814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6534       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8105       1.0000          .0000       10.000    
     3 'Normalizat'    1.5760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73020       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=   6523.368     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6535        1.7551        .43619E-06   -.63258E-03
   2  Index         1.8105        .64118       -.43721E-05   -.10396E-03
   3  Normalizat    1.5760        .19418        .74168E-07   -.42283E-05
   4  Prefactor     .73022        .12363       -.51523E-07    .11062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.65346
  Index      = 1.81054
  Normalizat = 1.576
  Prefactor  = 0.730223
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.368     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6535        2.0818        .12762E-03   -1.5451    
   2  Index         1.8105        .80475        .13287E-01   -.69176    
   3  Normalizat    1.5760        .22007        .25935E-03   -.75664    
   4  Prefactor     .73022        .14015        .23074E-03   -1.0235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59287e-10
Minuit parameter uncertainties:
  1  2.08189
  2  0.810731
  3  0.220209
  4  0.140213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942602': 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) = 6523.36769711
delta logL = 0.284945222509

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.653e+00  2.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  1.811e+00  8.107e-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:  7.302e-01  1.402e-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.576e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 117.701 12.494
Photon Index (Free Index): 1.81 +/- 0.81
Photon Flux (Free Index): 9.34e-09 +/- 1.41e-08
Energy Flux (Free Index): 1.08e-05 +/- 2.17e-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/942602/cmap_HighResolution_351820801_352080001_4FGL_J0750.8+1229_daily_bin434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='2.85e-01', photon_flux2='9.34e-09', job_status='DONE', time_completed='2021-08-28 16:17:38.205364', photon_index_error2='0.81', photon_index2='1.81', ts='0.98', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='2.17e-05', EG='1.57', time_epoch_completed='1630192658.21', return_code='0', job_id='942602', GAL2='0.73', EG2='1.58', return_code2='0', photon_flux_error2='1.41e-08', ts2='1.54', photon_index='2.52' WHERE bin_id='434' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 942602: <4FGL_J0750.8+1229_daily_bin434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin434 117.701 12.494 351820801 352080001 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 :                                   709.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

