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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin223
RA = 117.485, Dec = 18.387
tmin = 297129601, tmax = 297388801
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='931155', job_status='RUN', time_executed='2021-08-28 15:38:17.687083', time_epoch_executed='1630190297.69' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931155/ft1_4FGL_J0749.9+1823_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931155/ft1_4FGL_J0749.9+1823_daily_bin223.fits outfile=/scratch/kocevski/931155/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin223.fits ra=117.485 dec=18.387 rad=12.0 tmin=297129601.0 tmax=297388801.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.63
user 3.36
sys 1.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931155/ft1_filtered_4FGL_J0749.9+1823_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/931155/ltcube_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.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/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits
.....................!
real 13.35
user 11.69
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931155/ft1_filtered_4FGL_J0749.9+1823_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/931155/ltcube_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.fits outfile=/scratch/kocevski/931155/expmap_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.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/931155/ltcube_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.fits
.....................!
real 192.29
user 186.05
sys 5.84

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/931155/ft1_filtered_4FGL_J0749.9+1823_daily_bin223.fits scfile=/scratch/kocevski/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits outfile=/scratch/kocevski/931155/cmap_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.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.65
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931155/ft1_filtered_4FGL_J0749.9+1823_daily_bin223.fits scfile=/scratch/kocevski/931155/ft2_4FGL_J0749.9+1823_daily_bin223.fits outfile=/scratch/kocevski/931155/cmap_HighResolution_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.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.65
user 0.38
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8042       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4217       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0686       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.989       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .66257E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.725       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89711       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1278       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=   7350.247     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2483 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.375        .20225E-05** at limit **
   2  Prefactor     5.8033        8.5560        .35595E-05   -.34311E-03
   3  norm          .10000E-03    4.1108       -.26554E-07** at limit **
   4  norm          5.4216        1.6431        .44789E-07   -.70486E-04
   5  norm          2.0685        1.2641        .13674E-07   -.13586E-04
   6  Prefactor     .10000E-03    5.7601       -.40614E-07** at limit **
   7  norm          1.7127        4.0942        .97207E-06   -.95522E-04
   8  Prefactor     .10000E-03    18.564       -.27239E-07** at limit **
   9  Prefactor     .10000E-03    12.945       -.72488E-06** at limit **
  10  Prefactor     .10000E-03    14.132        .68428E-06** at limit **
  11  Prefactor     .10000E-03    1.5781        .19453E-06** at limit **
  12  Prefactor     30.996        30.295        .77329E-07    .35304E-04
  13  norm          .10000E-03    7.0416       -.14472E-06** at limit **
  14  Prefactor     37.947        16.075        .29215E-07   -.31917E-04
  15  Prefactor     .10011E-03    302.26       -.24686E-04** at limit **
  16  norm          .10000E-03    42.394       -.63963E-06** at limit **
  17  Prefactor     .10000E-03    8.1170        .14818E-06** at limit **
  18  Prefactor     17.677        25.573        .25373E-06    .93457E-05
  19  Prefactor     19.717        24.461        .64806E-07   -.37416E-04
  20  Prefactor     .10000E-03    5.9780        .12734E-06** at limit **
  21  norm          .10000E-03    .40618        .54021E-08** at limit **
  22  Prefactor     9.2791        8.3234        .68277E-06   -.10863E-03
  23  Prefactor     .10000E-03    2.6872        .15453E-07** at limit **
  24  Normalizat    .89681        .19416       -.51938E-06   -.58146E-04
  25  Prefactor     1.1279        .13182       -.59795E-06   -.25361E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.80334
  norm       = 0.0001
  norm       = 5.42159
  norm       = 2.06847
  Prefactor  = 0.0001
  norm       = 1.71272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.9963
  norm       = 0.0001
  Prefactor  = 37.9468
  Prefactor  = 0.000100114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6772
  Prefactor  = 19.717
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.27909
  Prefactor  = 0.0001
  Normalizat = 0.896811
  Prefactor  = 1.12788
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.247     FROM HESSE     STATUS=OK           425 CALLS     2908 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8033        8.7499        .83352E-03   -1.5226    
   3  norm          .10000E-03    4.1226        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4216        1.6432        .57802E-04   -1.5242    
   5  norm          2.0685        1.2652        .72948E-04   -1.5420    
   6  Prefactor     .10000E-03    5.8273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7127        4.0752        .24402E-03   -1.5446    
   8  Prefactor     .10000E-03    18.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1318        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.996        30.184        .71976E-04   -1.4594    
  13  norm          .10000E-03    7.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.947        15.901        .65064E-04   -1.4475    
  15  Prefactor     .10011E-03    336.61        .21010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    42.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.677        25.576        .95269E-04   -1.4867    
  19  Prefactor     19.717        24.589        .90182E-04   -1.4820    
  20  Prefactor     .10000E-03    5.9845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .42571        .10659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2791        8.3496        .65790E-03   -1.5099    
  23  Prefactor     .10000E-03    2.6906        .13725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89681        .21912        .31536E-03   -.96572    
  25  Prefactor     1.1279        .15045        .20186E-03   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56602e-10
Minuit parameter uncertainties:
  1  0.000450255
  2  8.75185
  3  3.08832e-06
  4  1.64322
  5  1.26525
  6  1.79699e-06
  7  4.07582
  8  2.44797e-05
  9  7.97502e-05
  10  7.70773e-05
  11  1.64549e-05
  12  30.1992
  13  1.05414e-05
  14  15.9031
  15  0.0124767
  16  0.00012008
  17  1.14268e-05
  18  25.5917
  19  24.6019
  20  8.69176e-06
  21  4.62309e-08
  22  8.35066
  23  7.79625e-07
  24  0.219342
  25  0.150502
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.128e+00  1.505e-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:  8.968e-01  2.193e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931155/likelihoodResults_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.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) = 7350.24747094
delta logL = -0.000336097044965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7350.24713505
delta logL = -2.07057382795e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5095       1.0000          .0000       10.000    
     3 'Normalizat'    .89668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1280       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=   7350.247     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    309.47        .18142E-02** at limit **
   2  Index         2.4232        8.3390        .50000        .56189E-05
   3  Normalizat    .89681        .22417E-01    .31536E-03    .34968E-05
   4  Prefactor     1.1279        .16002E-01    .20186E-03    .43930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101508
  Index      = 2.42325
  Normalizat = 0.896812
  Prefactor  = 1.12788
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.247     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    1184.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4232        5.1617        .50000       -.54142    
   3  Normalizat    .89681        .48429E-01    .12614E-04   -.96572    
   4  Prefactor     1.1279        .34570E-01    .80743E-05   -.88580    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4418e-08
Minuit parameter uncertainties:
  1  0.0863102
  2  2127.23
  3  0.0484313
  4  0.0345705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931155': 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) = 7350.24713474
delta logL = 1.01756086224e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.128e+00  3.457e-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:  8.968e-01  4.843e-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/931155/cmap_HighResolution_297129601_297388801_4FGL_J0749.9+1823_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-08-28 15:50:55.964411', job_id='931155', GAL2='1.13', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630191055.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='223' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:50:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 931155: <4FGL_J0749.9+1823_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin223 117.485 18.387 297129601 297388801 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 :                                   751.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

