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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin41
RA = 117.485, Dec = 18.387
tmin = 249955201, tmax = 250214401
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='929534', job_status='RUN', time_executed='2021-08-28 15:33:15.175429', time_epoch_executed='1630189995.18' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929534/ft1_4FGL_J0749.9+1823_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929534/ft1_4FGL_J0749.9+1823_daily_bin41.fits outfile=/scratch/kocevski/929534/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin41.fits ra=117.485 dec=18.387 rad=12.0 tmin=249955201.0 tmax=250214401.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 10.14
user 1.25
sys 8.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.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/929534/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.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 9.19
user 0.31
sys 8.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/929534/ltcube_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.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/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits
.....................!
real 23.07
user 12.99
sys 10.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/929534/ltcube_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits outfile=/scratch/kocevski/929534/expmap_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.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/929534/ltcube_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits
.....................!
real 202.27
user 186.13
sys 15.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 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/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits outfile=/scratch/kocevski/929534/cmap_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.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 10.04
user 0.39
sys 9.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits outfile=/scratch/kocevski/929534/cmap_HighResolution_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.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 8.11
user 0.38
sys 7.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929534/Model_4FGL_J0749.9+1823_daily_bin41.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/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits.....................!
real 83.15
user 70.60
sys 12.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits', '/scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits', expMap='/scratch/kocevski/929534/expmap_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits', expCube='/scratch/kocevski/929534/ltcube_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929534/Model_4FGL_J0749.9+1823_daily_bin41.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/929534/ft1_filtered_4FGL_J0749.9+1823_daily_bin41.fits
Spacecraft file(s): /scratch/kocevski/929534/ft2_4FGL_J0749.9+1823_daily_bin41.fits
Exposure map: /scratch/kocevski/929534/expmap_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits
Exposure cube: /scratch/kocevski/929534/ltcube_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929534/Model_4FGL_J0749.9+1823_daily_bin41.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) = 6008.85723234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    72.953       1.0000         .10000E-03   10000.    
     4 'norm      '    .57078       1.0000         .10000E-03   10000.    
     5 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.921       1.0000         .10000E-03   10000.    
     7 'norm      '    .64713E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0034       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .55440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81943       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=   6008.841     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2979 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.665       -.14200E-05** at limit **
   2  Prefactor     .10000E-03    4.3817       -.35273E-08** at limit **
   3  norm          72.952        17.085        .73596E-07    .10143E-04
   4  norm          .57054        .71971        .26753E-07    .88546E-05
   5  norm          .10000E-03    .79367        .59273E-07** at limit **
   6  Prefactor     39.926        13.778       -.37800E-06   -.37491E-05
   7  norm          .10007E-03    2.7891       -.43296E-07** at limit **
   8  Prefactor     .10000E-03    38.505        .69795E-06** at limit **
   9  Prefactor     4.4172        28.716       -.50090E-06    .19197E-05
  10  Prefactor     59.284        60.409        .40511E-05    .11877E-04
  11  Prefactor     .10000E-03    .69698       -.86338E-08** at limit **
  12  Prefactor     .10000E-03    39.145        .45659E-06** at limit **
  13  norm          2.1851        23.936        .79863E-05    .45066E-05
  14  Prefactor     .10000E-03    4.2633        .17084E-06** at limit **
  15  Prefactor     .10000E-03    56.761       -.36318E-05** at limit **
  16  norm          .10000E-03    35.502        .19066E-05** at limit **
  17  Prefactor     .10000E-03    78.516        .44697E-05** at limit **
  18  Prefactor     .10000E-03    17.559        .95403E-06** at limit **
  19  Prefactor     4.0036        15.488        .28905E-05    .39872E-05
  20  Prefactor     .10000E-03    54.054       -.26469E-05** at limit **
  21  norm          .55390        1.0669       -.51157E-08   -.20625E-03
  22  Prefactor     .10000E-03    13.219        .95933E-07** at limit **
  23  Prefactor     .10000E-03    2.3261       -.17124E-08** at limit **
  24  Normalizat    1.1688        .20337       -.36365E-06    .69931E-04
  25  Prefactor     .81955        .13107       -.37135E-06    .18571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 72.9517
  norm       = 0.570538
  norm       = 0.0001
  Prefactor  = 39.9257
  norm       = 0.000100075
  Prefactor  = 0.0001
  Prefactor  = 4.41721
  Prefactor  = 59.2843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.00364
  Prefactor  = 0.0001
  norm       = 0.553899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16875
  Prefactor  = 0.819552
 **********
 **   18 **HESSE 
 **********

 FCN=   6008.841     FROM HESSE     STATUS=OK           433 CALLS     3412 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3975        .15846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          72.952        17.090        .47004E-04   -1.3998    
   4  norm          .57054        .68120        .71547E-03   -1.5557    
   5  norm          .10000E-03    .79912        .67075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.926        13.735        .63440E-04   -1.4443    
   7  norm          .10007E-03    9.8799        .36590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4172        29.971        .19208E-03   -1.5288    
  10  Prefactor     59.284        60.660        .52093E-04   -1.4167    
  11  Prefactor     .10000E-03    .69875        .63190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1851        23.964        .13923E-02   -1.5412    
  14  Prefactor     .10000E-03    4.2730        .15634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0036        15.520        .10078E-02   -1.5308    
  20  Prefactor     .10000E-03    54.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55390        .89518        .10709E-02   -1.5559    
  22  Prefactor     .10000E-03    13.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3275        .11546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1688        .23833        .27002E-03   -.87574    
  25  Prefactor     .81955        .15287        .21538E-03   -.99012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93424e-09
Minuit parameter uncertainties:
  1  6.21109e-06
  2  3.0679e-07
  3  17.0909
  4  0.68121
  5  2.20053e-06
  6  13.7363
  7  0.00171854
  8  1.69991e-05
  9  23.0284
  10  60.7234
  11  6.63666e-07
  12  1.43749e-05
  13  14.4797
  14  1.13183e-06
  15  5.10616e-05
  16  6.8597e-06
  17  0.000255954
  18  5.38656e-06
  19  15.5352
  20  0.000267421
  21  0.895203
  22  2.29867e-05
  23  2.21577e-07
  24  0.238549
  25  0.152947
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  5.928e+01  6.072e+01  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:  8.196e-01  1.529e-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:  1.169e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 6.37e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.81e-05

TS (Fixed Index): 1.42
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929534/likelihoodResults_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.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) = 6007.93184769
delta logL = 0.909300762736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6007.89638709
delta logL = 0.944761363016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.533       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7349       1.0000          .0000       10.000    
     3 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85219       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=   6007.896     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      289 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.525        70.514        .93037E-04   -.26187E-03
   2  Index         3.7352        2.2099        .47199E-02   -.10852E-03
   3  Normalizat    1.0967        .23215        .27693E-03    .33026E-03
   4  Prefactor     .85219        .15510        .21157E-03    .51388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5245
  Index      = 3.73516
  Normalizat = 1.09668
  Prefactor  = 0.852192
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.896     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.525        33.452        .37215E-05   -1.4847    
   2  Index         3.7352        1.0744        .18880E-03   -.25575    
   3  Normalizat    1.0967        .23174        .55386E-04   -.89858    
   4  Prefactor     .85219        .15403        .42314E-04   -.97832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9365e-10
Minuit parameter uncertainties:
  1  33.4863
  2  1.08339
  3  0.231956
  4  0.154104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929534': 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) = 6007.89638704
delta logL = 0.944761407843

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.852e+01  3.349e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.735e+00  1.083e+00  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:  8.522e-01  1.541e-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:  1.097e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 117.485 18.387
Photon Index (Free Index): 3.74 +/- 1.08
Photon Flux (Free Index): 1.25e-07 +/- 7.99e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/929534/cmap_HighResolution_249955201_250214401_4FGL_J0749.9+1823_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='1.96e-05', photon_flux_error='6.37e-08', dlogl='9.45e-01', energy_flux='1.76e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-08-28 15:46:44.892873', photon_index_error2='1.08', photon_index2='3.74', ts='1.42', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.28e-05', EG='1.17', time_epoch_completed='1630190804.89', return_code='0', job_id='929534', GAL2='0.85', EG2='1.10', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='7.99e-08', ts2='3.51', photon_index='2.52' WHERE bin_id='41' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0160>
Subject: Job 929534: <4FGL_J0749.9+1823_daily_bin41> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin41> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:22 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:23 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:30:23 2021
Terminated at Sat Aug 28 15:46:47 2021
Results reported at Sat Aug 28 15:46:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin41 117.485 18.387 249955201 250214401 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 :                                   942.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

