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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin748
RA = 117.485, Dec = 18.387
tmin = 433209601, tmax = 433468801
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='934537', job_status='RUN', time_executed='2021-08-28 15:47:54.509096', time_epoch_executed='1630190874.51' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934537/ft1_4FGL_J0749.9+1823_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934537/ft1_4FGL_J0749.9+1823_daily_bin748.fits outfile=/scratch/kocevski/934537/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin748.fits ra=117.485 dec=18.387 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.30
user 5.68
sys 0.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.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/934537/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/934537/ft1_filtered_4FGL_J0749.9+1823_daily_bin748.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.80
user 0.32
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934537/ft1_filtered_4FGL_J0749.9+1823_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/934537/ltcube_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.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/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits
.....................!
real 12.25
user 11.55
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934537/ft1_filtered_4FGL_J0749.9+1823_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/934537/ltcube_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.fits outfile=/scratch/kocevski/934537/expmap_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.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/934537/ltcube_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.fits
.....................!
real 192.80
user 187.84
sys 4.58

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/934537/ft1_filtered_4FGL_J0749.9+1823_daily_bin748.fits scfile=/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits outfile=/scratch/kocevski/934537/cmap_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.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.84
user 0.38
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934537/ft1_filtered_4FGL_J0749.9+1823_daily_bin748.fits scfile=/scratch/kocevski/934537/ft2_4FGL_J0749.9+1823_daily_bin748.fits outfile=/scratch/kocevski/934537/cmap_HighResolution_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.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.86
user 0.37
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.240       1.0000         .10000E-03   10000.    
     3 'norm      '    13.060       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1441       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.382       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7366       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9961       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.597       1.0000         .10000E-03   10000.    
    13 'norm      '    17.596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2990       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .68076E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8748       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51605       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7049       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73636       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=   6310.259     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2902 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.791        50.074        .42683E-04   -.24495E-05
   2  Prefactor     11.247        11.273        .15113E-06   -.61994E-04
   3  norm          13.062        11.905       -.97608E-06   -.76716E-04
   4  norm          2.1441        1.4812       -.56993E-07   -.54574E-03
   5  norm          2.8430        2.5925        .13073E-06   -.30932E-03
   6  Prefactor     15.398        18.308       -.38539E-06   -.40192E-04
   7  norm          3.7344        4.6329       -.12827E-05   -.63049E-03
   8  Prefactor     6.0219        81.645        .19344E-04   -.86238E-06
   9  Prefactor     .10000E-03    4.8900        .67103E-07** at limit **
  10  Prefactor     .10000E-03    32.589        .51669E-06** at limit **
  11  Prefactor     1.6203        3.7801       -.54989E-06   -.92983E-03
  12  Prefactor     31.609        48.693        .99259E-06   -.25303E-04
  13  norm          17.600        14.155        .59984E-06    .53051E-05
  14  Prefactor     8.3002        8.1537        .35124E-06    .37097E-04
  15  Prefactor     .10000E-03    67.994       -.13795E-05** at limit **
  16  norm          .10000E-03    232.06        .21757E-04** at limit **
  17  Prefactor     2.8894        71.633       -.78083E-05   -.25278E-04
  18  Prefactor     .10000E-03    17.432        .39661E-07** at limit **
  19  Prefactor     .10000E-03    5.2720        .66771E-07** at limit **
  20  Prefactor     .10000E-03    25.130       -.13503E-06** at limit **
  21  norm          .51729        .85006        .39792E-08   -.50137E-03
  22  Prefactor     .10000E-03    2.8464        .29818E-07** at limit **
  23  Prefactor     9.7069        10.883        .10169E-06   -.51526E-04
  24  Normalizat    1.4125        .21241        .59587E-06   -.13384E-03
  25  Prefactor     .73612        .13472       -.29821E-05    .42903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7906
  Prefactor  = 11.2474
  norm       = 13.0623
  norm       = 2.1441
  norm       = 2.84304
  Prefactor  = 15.3976
  norm       = 3.7344
  Prefactor  = 6.02186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62033
  Prefactor  = 31.6089
  norm       = 17.6004
  Prefactor  = 8.30015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.8894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.517291
  Prefactor  = 0.0001
  Prefactor  = 9.70685
  Normalizat = 1.41251
  Prefactor  = 0.736117
 **********
 **   18 **HESSE 
 **********

 FCN=   6310.259     FROM HESSE     STATUS=OK           435 CALLS     3337 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.791        49.649        .82216E-04   -1.4732    
   2  Prefactor     11.247        11.268        .11950E-03   -1.5037    
   3  norm          13.062        11.913        .11084E-03   -1.4985    
   4  norm          2.1441        1.4744        .76089E-04   -1.5415    
   5  norm          2.8430        2.6138        .90414E-04   -1.5371    
   6  Prefactor     15.398        18.639        .10212E-03   -1.4923    
   7  norm          3.7344        4.5995        .16056E-03   -1.5321    
   8  Prefactor     6.0219        79.168        .16398E-03   -1.5217    
   9  Prefactor     .10000E-03    4.8953        .17154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6203        3.7875        .21982E-03   -1.5453    
  12  Prefactor     31.609        48.372        .71282E-04   -1.4583    
  13  norm          17.600        14.152        .95479E-04   -1.4869    
  14  Prefactor     8.3002        8.1526        .13916E-03   -1.5132    
  15  Prefactor     .10000E-03    68.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    234.31        .18744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8894        72.123        .23973E-03   -1.5368    
  18  Prefactor     .10000E-03    17.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2780        .17814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51729        .69704        .90921E-03   -1.5564    
  22  Prefactor     .10000E-03    2.8493        .13088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.7069        10.903        .12863E-03   -1.5085    
  24  Normalizat    1.4125        .24561        .26600E-03   -.80268    
  25  Prefactor     .73612        .15467        .23355E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12495e-09
Minuit parameter uncertainties:
  1  49.7353
  2  11.2699
  3  11.915
  4  1.47441
  5  2.61386
  6  18.6455
  7  4.5999
  8  43.7395
  9  4.50845e-06
  10  4.68666e-05
  11  3.78801
  12  48.432
  13  14.155
  14  8.1537
  15  4.183e-05
  16  0.000136337
  17  28.9102
  18  2.54792e-05
  19  2.98723e-06
  20  7.20443e-05
  21  0.697048
  22  2.06913e-06
  23  10.9056
  24  0.245819
  25  0.154758
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.687e-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:  7.361e-01  1.548e-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.413e+00  2.458e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934537/likelihoodResults_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.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) = 6310.2595403
delta logL = -0.000145988006807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6310.25939687
delta logL = -2.56420480582e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.4259       1.0000          .0000       10.000    
     3 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73612       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6310.104     FROM MIGRAD    STATUS=FAILED       162 CALLS      346 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .84259E-02    .52066E-03** at limit **
   2  Index         9.7328        5.2604        .50000        .21066E-04
   3  Normalizat    1.3733        .75142E-01    .26600E-03    .16027E-04
   4  Prefactor     .75287        .43069E-01    .23355E-03    .68147E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6310.104     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      499 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .84259E-02    .15971E-04** at limit **
   2  Index         9.7328        5.2604        .21222E-02    .21066E-04
   3  Normalizat    1.3733        .75142E-01    .38966E-05    .16027E-04
   4  Prefactor     .75287        .43069E-01    .60453E-06    .68147E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6310.104     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      543 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .21491E-02    .23027E-03** at limit **
   2  Index         9.7328        9.8637        .50000        .21066E-04
   3  Normalizat    1.3733        .25320        .10640E-04    .16241E-04
   4  Prefactor     .75287        .15703        .93422E-05    .68147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.73283
  Normalizat = 1.37327
  Prefactor  = 0.75287
 **********
 **   18 **HESSE 
 **********

 FCN=   6310.104     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      582 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30455E-01    .30733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7328        9.8330        .50000        1.8992    
   3  Normalizat    1.3733        .17134        .21280E-05   -.81405    
   4  Prefactor     .75287        .78631E-01    .18684E-05   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18836e-07
Minuit parameter uncertainties:
  1  5.37685e-08
  2  26.1234
  3  0.171408
  4  0.078643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934537': 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) = 6310.10438939
delta logL = 0.155004923342

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.377e-08  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  9.733e+00  2.612e+01  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:  7.529e-01  7.864e-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:  1.373e+00  1.714e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934537/cmap_HighResolution_433209601_433468801_4FGL_J0749.9+1823_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-28 16:00:15.801288', job_id='934537', GAL2='0.75', fit_tolerance='1e-08', EG2='1.37', EG='1.41', time_epoch_completed='1630191615.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.55e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='748' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:00:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 934537: <4FGL_J0749.9+1823_daily_bin748> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin748 117.485 18.387 433209601 433468801 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

