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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin775
RA = 117.485, Dec = 18.387
tmin = 440208001, tmax = 440467201
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='934578', job_status='RUN', time_executed='2021-08-28 15:48:11.623254', time_epoch_executed='1630190891.62' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934578/ft1_4FGL_J0749.9+1823_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934578/ft1_4FGL_J0749.9+1823_daily_bin775.fits outfile=/scratch/kocevski/934578/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin775.fits ra=117.485 dec=18.387 rad=12.0 tmin=440208001.0 tmax=440467201.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.94
user 3.24
sys 1.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.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/934578/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/934578/ft1_filtered_4FGL_J0749.9+1823_daily_bin775.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 2.00
user 0.33
sys 1.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934578/ft1_filtered_4FGL_J0749.9+1823_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/934578/ltcube_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.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/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits
.....................!
real 13.39
user 11.38
sys 1.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934578/ft1_filtered_4FGL_J0749.9+1823_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/934578/ltcube_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.fits outfile=/scratch/kocevski/934578/expmap_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.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/934578/ltcube_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.fits
.....................!
real 192.07
user 185.44
sys 6.01

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/934578/ft1_filtered_4FGL_J0749.9+1823_daily_bin775.fits scfile=/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits outfile=/scratch/kocevski/934578/cmap_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.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.99
user 0.38
sys 1.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934578/ft1_filtered_4FGL_J0749.9+1823_daily_bin775.fits scfile=/scratch/kocevski/934578/ft2_4FGL_J0749.9+1823_daily_bin775.fits outfile=/scratch/kocevski/934578/cmap_HighResolution_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.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.87
user 0.38
sys 1.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9048       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.763       1.0000         .10000E-03   10000.    
     3 'norm      '    17.285       1.0000         .10000E-03   10000.    
     4 'norm      '    .79772       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11891E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85292       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1711       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .60442E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89731       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=   7474.640     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2955 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8147        222.13       -.29114E-05   -.32000E-04
   2  Prefactor     17.761        12.466        .12910E-06   -.22111E-04
   3  norm          17.283        13.989       -.29177E-06   -.55052E-04
   4  norm          .79789        1.5054        .54264E-06    .18330E-03
   5  norm          .10000E-03    .51269        .15392E-07** at limit **
   6  Prefactor     .10000E-03    11.917       -.14582E-06** at limit **
   7  norm          .39397        2.1145       -.34181E-06    .95637E-03
   8  Prefactor     38.347        42.253       -.27618E-05    .22852E-04
   9  Prefactor     .10000E-03    6.7145        .10489E-06** at limit **
  10  Prefactor     44.596        42.743        .43540E-06   -.39088E-04
  11  Prefactor     3.5520        2.9680        .15949E-06   -.49164E-04
  12  Prefactor     .10000E-03    12.169        .43624E-06** at limit **
  13  norm          .10000E-03    5.8596        .41715E-08** at limit **
  14  Prefactor     13.634        14.004        .39000E-06   -.25928E-04
  15  Prefactor     .10000E-03    33.937        .33824E-07** at limit **
  16  norm          .10000E-03    74.757       -.51292E-08** at limit **
  17  Prefactor     13.824        13.775       -.28658E-08   -.50613E-05
  18  Prefactor     .10000E-03    10.940        .39582E-07** at limit **
  19  Prefactor     .10000E-03    5.2155        .65161E-07** at limit **
  20  Prefactor     .10000E-03    17.582        .16813E-06** at limit **
  21  norm          .85302        .99639       -.13045E-06   -.80388E-03
  22  Prefactor     1.1720        21.255        .55535E-05   -.39940E-05
  23  Prefactor     .10181E-03    5.5622        .88809E-06** at limit **
  24  Normalizat    1.3589        .20723       -.26947E-05   -.23411E-03
  25  Prefactor     .89731        .13222        .35469E-06   -.42427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81474
  Prefactor  = 17.7613
  norm       = 17.283
  norm       = 0.797888
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.393965
  Prefactor  = 38.3474
  Prefactor  = 0.0001
  Prefactor  = 44.5955
  Prefactor  = 3.55202
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.85302
  Prefactor  = 1.17201
  Prefactor  = 0.000101809
  Normalizat = 1.35888
  Prefactor  = 0.897313
 **********
 **   18 **HESSE 
 **********

 FCN=   7474.640     FROM HESSE     STATUS=OK           437 CALLS     3392 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8147        223.87        .23840E-03   -1.5372    
   2  Prefactor     17.761        12.471        .95031E-04   -1.4865    
   3  norm          17.283        13.998        .96334E-04   -1.4876    
   4  norm          .79789        1.5134        .13582E-03   -1.5529    
   5  norm          .10000E-03    .52094        .60412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .39397        8.3078        .21814E-02   -1.5582    
   8  Prefactor     38.347        43.258        .64766E-04   -1.4469    
   9  Prefactor     .10000E-03    6.7325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.596        42.915        .60031E-04   -1.4371    
  11  Prefactor     3.5520        2.9660        .12929E-03   -1.5331    
  12  Prefactor     .10000E-03    12.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.8607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.634        14.012        .10846E-03   -1.4969    
  15  Prefactor     .10000E-03    33.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    74.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.824        13.777        .10773E-03   -1.4964    
  18  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85302        .88094        .88956E-03   -1.5523    
  22  Prefactor     1.1720        21.237        .42399E-03   -1.5491    
  23  Prefactor     .10181E-03    7.7015        .68048E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3589        .23714        .28174E-03   -.81825    
  25  Prefactor     .89731        .15415        .22542E-03   -.96235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5576e-09
Minuit parameter uncertainties:
  1  50.4001
  2  12.4727
  3  14.0004
  4  1.51346
  5  1.15771e-06
  6  4.29081e-05
  7  3.6184
  8  43.2933
  9  1.87067e-05
  10  42.945
  11  2.96615
  12  3.59169e-05
  13  1.2908e-06
  14  14.0149
  15  1.23959e-05
  16  9.43407e-05
  17  13.7804
  18  3.99611e-06
  19  6.07921e-06
  20  2.93934e-05
  21  0.88095
  22  9.98176
  23  0.00746603
  24  0.237327
  25  0.154223
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.460e+01  4.295e+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.973e-01  1.542e-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.359e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/934578/likelihoodResults_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.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) = 7473.44285944
delta logL = 1.19719842945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7473.17354729
delta logL = 1.46651058041

Fit tolerance = 1e-08

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

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

 FCN=   7473.174     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      306 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21282        1.5175        .45938E-02    .24689E-02
   2  Index         6.3706        2.4278        .11122        .19787E-03
   3  Normalizat    1.2294        .58936E-01    .66343E-01    .16878E-04
   4  Prefactor     .96188        .39479E-01    .45791E-01    .99927E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.212818
  Index      = 6.37063
  Normalizat = 1.22935
  Prefactor  = 0.961876
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.174     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21282        3.0533        .20729E-04   -1.5616    
   2  Index         6.3706        3.6062        .44519E-02    .27768    
   3  Normalizat    1.2294        .20426        .29349E-03   -.85701    
   4  Prefactor     .96188        .13322        .21880E-03   -.94011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.59968e-10
Minuit parameter uncertainties:
  1  1.61191
  2  4.07771
  3  0.204391
  4  0.133265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934578': 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) = 7473.17354263
delta logL = 1.46651523711

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.128e-01  1.612e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  6.371e+00  4.078e+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:  9.619e-01  1.333e-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.229e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 117.485 18.387
Photon Index (Free Index): 6.37 +/- 4.08
Photon Flux (Free Index): 1.47e-07 +/- 7.97e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.09e-05

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/934578/cmap_HighResolution_440208001_440467201_4FGL_J0749.9+1823_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='1.80e-05', photon_flux_error='4.51e-08', dlogl='1.47e+00', energy_flux='1.33e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-08-28 16:01:28.282526', photon_index_error2='4.08', photon_index2='6.37', ts='1.65', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.09e-05', EG='1.36', time_epoch_completed='1630191688.28', return_code='0', job_id='934578', GAL2='0.96', EG2='1.23', return_code2='102', energy_flux_error='1.28e-05', photon_flux_error2='7.97e-08', ts2='5.04', photon_index='2.52' WHERE bin_id='775' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:01:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 934578: <4FGL_J0749.9+1823_daily_bin775> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin775> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:26 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:27 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:45:27 2021
Terminated at Sat Aug 28 16:01:28 2021
Results reported at Sat Aug 28 16:01:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin775 117.485 18.387 440208001 440467201 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 :                                   816.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             258.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

