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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin387
RA = 117.485, Dec = 18.387
tmin = 339638401, tmax = 339897601
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='931421', job_status='RUN', time_executed='2021-08-28 15:38:45.772216', time_epoch_executed='1630190325.77' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931421/ft1_4FGL_J0749.9+1823_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931421/ft1_4FGL_J0749.9+1823_daily_bin387.fits outfile=/scratch/kocevski/931421/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin387.fits ra=117.485 dec=18.387 rad=12.0 tmin=339638401.0 tmax=339897601.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.02
user 3.11
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931421/ft1_filtered_4FGL_J0749.9+1823_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/931421/ltcube_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.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/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits
.....................!
real 12.78
user 11.77
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931421/ft1_filtered_4FGL_J0749.9+1823_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/931421/ltcube_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.fits outfile=/scratch/kocevski/931421/expmap_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.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/931421/ltcube_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.fits
.....................!
real 190.83
user 184.87
sys 5.54

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/931421/ft1_filtered_4FGL_J0749.9+1823_daily_bin387.fits scfile=/scratch/kocevski/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits outfile=/scratch/kocevski/931421/cmap_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.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 1.11
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931421/ft1_filtered_4FGL_J0749.9+1823_daily_bin387.fits scfile=/scratch/kocevski/931421/ft2_4FGL_J0749.9+1823_daily_bin387.fits outfile=/scratch/kocevski/931421/cmap_HighResolution_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.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 1.10
user 0.37
sys 0.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9149       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12263E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4084       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10399E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.080       1.0000         .10000E-03   10000.    
    21 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3698       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94842       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=   8802.359     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2514 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9940        48.865        .13932E-03    .81285E-05
   2  Prefactor     .10034E-03    5.1464        .36762E-06** at limit **
   3  norm          .10000E-03    3.7433       -.34421E-06** at limit **
   4  norm          2.4085        1.2183       -.10072E-06   -.89432E-03
   5  norm          2.6622        1.3815        .27717E-06    .11738E-02
   6  Prefactor     .10000E-03    14.213       -.75284E-05** at limit **
   7  norm          .10000E-03    1.3233        .67718E-07** at limit **
   8  Prefactor     .10000E-03    37.178       -.19110E-04** at limit **
   9  Prefactor     .10000E-03    5.5479        .65556E-07** at limit **
  10  Prefactor     .10000E-03    17.569        .60703E-05** at limit **
  11  Prefactor     .10000E-03    1.7975        .90510E-07** at limit **
  12  Prefactor     .10000E-03    15.797       -.35311E-05** at limit **
  13  norm          .10000E-03    9.8715       -.61170E-06** at limit **
  14  Prefactor     4.4235        10.550        .83377E-06   -.13100E-03
  15  Prefactor     .10000E-03    49.860        .18592E-04** at limit **
  16  norm          .10000E-03    22.643        .72507E-05** at limit **
  17  Prefactor     .10000E-03    12.467        .53485E-05** at limit **
  18  Prefactor     .10000E-03    41.796       -.63715E-05** at limit **
  19  Prefactor     32.747        17.703        .95586E-06   -.14783E-04
  20  Prefactor     16.063        17.565        .16038E-05   -.61742E-04
  21  norm          .10000E-03    .54574        .11196E-06** at limit **
  22  Prefactor     .10000E-03    5.1526       -.35084E-07** at limit **
  23  Prefactor     .10000E-03    2.6256        .28426E-07** at limit **
  24  Normalizat    1.3698        .17650        .95281E-06   -.30684E-03
  25  Prefactor     .94847        .11901       -.59936E-05    .35767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99399
  Prefactor  = 0.00010034
  norm       = 0.0001
  norm       = 2.40854
  norm       = 2.66222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.4235
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7474
  Prefactor  = 16.0631
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36984
  Prefactor  = 0.948474
 **********
 **   18 **HESSE 
 **********

 FCN=   8802.359     FROM HESSE     STATUS=OK           419 CALLS     2933 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9940        48.693        .12726E-03   -1.5076    
   2  Prefactor     .10034E-03    77.098        .41031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.7521        .17726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4085        1.2144        .70438E-04   -1.5398    
   5  norm          2.6622        1.3724        .76386E-04   -1.5382    
   6  Prefactor     .10000E-03    14.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3366        .10536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8794        .24529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.8823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4235        10.543        .19168E-03   -1.5287    
  15  Prefactor     .10000E-03    49.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.747        17.742        .70020E-04   -1.4563    
  20  Prefactor     16.063        16.988        .99879E-04   -1.4906    
  21  norm          .10000E-03    3.0801        .12929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6315        .14846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3698        .20438        .27966E-03   -.81505    
  25  Prefactor     .94847        .13715        .22132E-03   -.94467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54472e-09
Minuit parameter uncertainties:
  1  44.1773
  2  0.0102552
  3  6.56942e-05
  4  1.21445
  5  1.37238
  6  7.89753e-05
  7  1.26096e-05
  8  0.000276461
  9  2.11762e-05
  10  4.30332e-05
  11  1.91262e-05
  12  5.04747e-05
  13  2.12369e-05
  14  10.5469
  15  4.95155e-05
  16  1.76804e-05
  17  2.3148e-05
  18  0.000142921
  19  17.7444
  20  16.9936
  21  2.82468e-05
  22  1.46662e-05
  23  5.45425e-06
  24  0.204503
  25  0.137198
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.303e-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:  9.485e-01  1.372e-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.370e+00  2.045e-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: 6.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931421/likelihoodResults_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.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) = 8802.35956287
delta logL = -0.00027082384986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8802.35929332
delta logL = -1.27479324874e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9407       1.0000          .0000       10.000    
     3 'Normalizat'    1.3698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94847       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=   8802.359     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      275 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10406E-03    11.026        .18142E-01** at limit **
   2  Index         2.8382        6.3382        .50000        .18434E-04
   3  Normalizat    1.3698        .42123E-02    .27966E-03   -.70733E-05
   4  Prefactor     .94847        .28524E-02    .22132E-03   -.19519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104056
  Index      = 2.83819
  Normalizat = 1.36984
  Prefactor  = 0.94847
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10406E-03    67.180        .33746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8382        5.2676        .50000       -.44711    
   3  Normalizat    1.3698        .10402E-01    .11187E-04   -.81505    
   4  Prefactor     .94847        .70435E-02    .88529E-05   -.94467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94716e-09
Minuit parameter uncertainties:
  1  0.03305
  2  293.931
  3  0.0104019
  4  0.00704355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931421': 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) = 8802.35929301
delta logL = -9.57938027568e-07

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.041e-04  3.305e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.838e+00  2.939e+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:  9.485e-01  7.044e-03  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.370e+00  1.040e-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/931421/cmap_HighResolution_339638401_339897601_4FGL_J0749.9+1823_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-08-28 15:52:22.541285', job_id='931421', GAL2='0.95', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630191142.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-9.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='387' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:52:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 931421: <4FGL_J0749.9+1823_daily_bin387> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin387> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 15:35:44 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:35:45 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:35:45 2021
Terminated at Sat Aug 28 15:52:23 2021
Results reported at Sat Aug 28 15:52:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin387 117.485 18.387 339638401 339897601 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 :                                   818.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

