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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin504
RA = 117.485, Dec = 18.387
tmin = 369964801, tmax = 370224001
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='932913', job_status='RUN', time_executed='2021-08-28 15:42:50.793116', time_epoch_executed='1630190570.79' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932913/ft1_4FGL_J0749.9+1823_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932913/ft1_4FGL_J0749.9+1823_daily_bin504.fits outfile=/scratch/kocevski/932913/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin504.fits ra=117.485 dec=18.387 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.93
user 7.36
sys 0.54

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.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/932913/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.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.84
user 0.34
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/932913/ltcube_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.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/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits
.....................!
real 11.82
user 11.12
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/932913/ltcube_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits outfile=/scratch/kocevski/932913/expmap_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.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/932913/ltcube_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits
.....................!
real 189.92
user 184.87
sys 4.70

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 Monoceros in ROI with RadialGaussian spatial model.
Added 162 point sources and 1 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 J0749.9+1823 @ 117.485 18.387

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits outfile=/scratch/kocevski/932913/cmap_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.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.485 yref=18.387 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.75
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits outfile=/scratch/kocevski/932913/cmap_HighResolution_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.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.485 yref=18.387 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.82
user 0.38
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932913/Model_4FGL_J0749.9+1823_daily_bin504.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
Working on...
/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits.....................!
real 80.96
user 79.35
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits', '/scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits', expMap='/scratch/kocevski/932913/expmap_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits', expCube='/scratch/kocevski/932913/ltcube_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/932913/Model_4FGL_J0749.9+1823_daily_bin504.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0749.9+1823'

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/932913/ft1_filtered_4FGL_J0749.9+1823_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/932913/ft2_4FGL_J0749.9+1823_daily_bin504.fits
Exposure map: /scratch/kocevski/932913/expmap_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits
Exposure cube: /scratch/kocevski/932913/ltcube_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/932913/Model_4FGL_J0749.9+1823_daily_bin504.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) = 7316.77050028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1889       1.0000         .10000E-03   10000.    
     3 'norm      '    29.469       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1191       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3284       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    84.242       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.774       1.0000         .10000E-03   10000.    
    21 'norm      '    16.263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.971       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71286       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7316.764     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2875 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.660       -.45527E-06** at limit **
   2  Prefactor     1.1892        6.7473        .25706E-05   -.54627E-04
   3  norm          29.470        12.600       -.20756E-06   -.40134E-04
   4  norm          3.1193        1.3832       -.20479E-07   -.51140E-04
   5  norm          2.3282        1.2573       -.24675E-07   -.22086E-04
   6  Prefactor     .10000E-03    3.9964        .58295E-07** at limit **
   7  norm          1.1496        4.5551       -.23547E-05   -.87121E-04
   8  Prefactor     38.112        41.122       -.63148E-06   -.55357E-04
   9  Prefactor     24.392        17.900        .17806E-05    .90358E-04
  10  Prefactor     .10000E-03    8.7102       -.22173E-06** at limit **
  11  Prefactor     .10000E-03    1.1715        .41114E-07** at limit **
  12  Prefactor     .10000E-03    24.690       -.11535E-05** at limit **
  13  norm          .10000E-03    8.5119        .11282E-06** at limit **
  14  Prefactor     7.7759        10.343        .16203E-05   -.35988E-04
  15  Prefactor     .10000E-03    53.222        .86842E-06** at limit **
  16  norm          84.245        77.638        .19283E-06    .45398E-05
  17  Prefactor     .10000E-03    11.028        .38626E-07** at limit **
  18  Prefactor     .10000E-03    10.490       -.12407E-07** at limit **
  19  Prefactor     16.836        16.222       -.36202E-06    .85320E-06
  20  Prefactor     25.777        32.146        .14373E-06    .78249E-05
  21  norm          16.264        3.0197       -.38137E-07    .35511E-04
  22  Prefactor     5.8514        10.975       -.13533E-07   -.36512E-05
  23  Prefactor     10.972        8.3914       -.12269E-06    .60528E-05
  24  Normalizat    .71270        .19746        .29886E-05    .64981E-05
  25  Prefactor     1.0831        .13117       -.10389E-05    .18082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.18919
  norm       = 29.4702
  norm       = 3.11927
  norm       = 2.32816
  Prefactor  = 0.0001
  norm       = 1.14963
  Prefactor  = 38.1121
  Prefactor  = 24.3917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.77589
  Prefactor  = 0.0001
  norm       = 84.2449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8365
  Prefactor  = 25.7765
  norm       = 16.2637
  Prefactor  = 5.85137
  Prefactor  = 10.9722
  Normalizat = 0.712705
  Prefactor  = 1.08306
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.764     FROM HESSE     STATUS=OK           429 CALLS     3304 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1892        6.6483        .41800E-03   -1.5490    
   3  norm          29.470        12.624        .73804E-04   -1.4622    
   4  norm          3.1193        1.3820        .63918E-04   -1.5355    
   5  norm          2.3282        1.2569        .68245E-04   -1.5403    
   6  Prefactor     .10000E-03    4.0223        .16666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1496        4.4338        .28628E-03   -1.5494    
   8  Prefactor     38.112        40.601        .64866E-04   -1.4472    
   9  Prefactor     24.392        17.915        .81068E-04   -1.4720    
  10  Prefactor     .10000E-03    8.7157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1994        .18063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.5362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7759        10.324        .71904E-03   -1.5150    
  15  Prefactor     .10000E-03    53.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          84.245        77.646        .21883E-03   -1.3870    
  17  Prefactor     .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.836        16.241        .97618E-04   -1.4887    
  20  Prefactor     25.777        32.260        .78906E-04   -1.4692    
  21  norm          16.264        3.0298        .53437E-04   -1.4901    
  22  Prefactor     5.8514        10.967        .16604E-03   -1.5224    
  23  Prefactor     10.972        8.3943        .12096E-03   -1.5045    
  24  Normalizat    .71270        .21561        .34872E-03   -1.0339    
  25  Prefactor     1.0831        .14505        .20190E-03   -.90010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22494e-10
Minuit parameter uncertainties:
  1  3.20842e-05
  2  5.6243
  3  12.625
  4  1.38205
  5  1.2569
  6  6.26662e-06
  7  4.43507
  8  40.6306
  9  17.9194
  10  1.25499e-05
  11  6.61813e-06
  12  9.62447e-05
  13  1.70011e-05
  14  10.3266
  15  3.87835e-05
  16  77.7393
  17  1.82851e-06
  18  1.15688e-06
  19  16.2451
  20  32.282
  21  3.02982
  22  10.971
  23  8.3952
  24  0.215868
  25  0.145102
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.255e-05  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.083e+00  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  7.127e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 4.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932913/likelihoodResults_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.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) = 7316.76445044
delta logL = -0.000545127861187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.76390527
delta logL = 3.52292772732e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5014       1.0000          .0000       10.000    
     3 'Normalizat'    .71277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0830       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   7316.764     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      255 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.494        .18142E-01** at limit **
   2  Index         1.8950        8.9946        .50000        .38167E-06
   3  Normalizat    .71271        .91589E-02    .34871E-03   -.13690E-03
   4  Prefactor     1.0831        .64658E-02    .20191E-03   -.23329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89503
  Normalizat = 0.712706
  Prefactor  = 1.08306
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.764     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    269.92        .28718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8950        8.3467        .50000       -.67001    
   3  Normalizat    .71271        .23374E-01    .13948E-04   -1.0339    
   4  Prefactor     1.0831        .16501E-01    .40381E-04   -.90010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16938e-09
Minuit parameter uncertainties:
  1  6.60375e-05
  2  899.297
  3  0.0233738
  4  0.0165011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932913': 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) = 7316.7639038
delta logL = 1.50698178913e-06

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.604e-05  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.895e+00  8.993e+02  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.083e+00  1.650e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  7.127e-01  2.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.485 18.387

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/932913/cmap_HighResolution_369964801_370224001_4FGL_J0749.9+1823_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-08-28 15:55:59.158007', job_id='932913', GAL2='1.08', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630191359.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='504' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 932913: <4FGL_J0749.9+1823_daily_bin504> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:35 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:40: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 15:40:35 2021
Terminated at Sat Aug 28 15:55:59 2021
Results reported at Sat Aug 28 15:55:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin504 117.485 18.387 369964801 370224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0749.9+1823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            924 sec.

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

