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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin472
RA = 117.485, Dec = 18.387
tmin = 361670401, tmax = 361929601
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='932849', job_status='RUN', time_executed='2021-08-28 15:42:46.732109', time_epoch_executed='1630190566.73' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932849/ft1_4FGL_J0749.9+1823_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932849/ft1_4FGL_J0749.9+1823_daily_bin472.fits outfile=/scratch/kocevski/932849/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin472.fits ra=117.485 dec=18.387 rad=12.0 tmin=361670401.0 tmax=361929601.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 3.82
user 3.28
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932849/ft1_filtered_4FGL_J0749.9+1823_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/932849/ltcube_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.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/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits
.....................!
real 12.30
user 11.58
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932849/ft1_filtered_4FGL_J0749.9+1823_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/932849/ltcube_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.fits outfile=/scratch/kocevski/932849/expmap_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.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/932849/ltcube_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.fits
.....................!
real 194.40
user 186.75
sys 6.28

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/932849/ft1_filtered_4FGL_J0749.9+1823_daily_bin472.fits scfile=/scratch/kocevski/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits outfile=/scratch/kocevski/932849/cmap_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.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.36
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932849/ft1_filtered_4FGL_J0749.9+1823_daily_bin472.fits scfile=/scratch/kocevski/932849/ft2_4FGL_J0749.9+1823_daily_bin472.fits outfile=/scratch/kocevski/932849/cmap_HighResolution_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.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.84
user 0.36
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .77989E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2116       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1929       1.0000         .10000E-03   10000.    
     5 'norm      '    8.5294       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5075       1.0000         .10000E-03   10000.    
     7 'norm      '    .50324       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27714       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.803       1.0000         .10000E-03   10000.    
    16 'norm      '    19.175       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.494       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15937E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    77.793       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6601       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1943       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93463       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1932       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=   7228.844     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2950 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.025        .21438E-06** at limit **
   2  Prefactor     .15617        6.8372        .10364E-05   -.33233E-03
   3  norm          5.2076        9.3215        .37502E-06   -.42553E-04
   4  norm          2.1933        1.4027        .17570E-07   -.15771E-03
   5  norm          8.5295        3.4477       -.71312E-06   -.17624E-03
   6  Prefactor     7.5072        15.510        .57612E-05   -.48520E-03
   7  norm          .50716        4.7716        .36717E-05   -.24764E-03
   8  Prefactor     .10000E-03    10.730       -.82131E-07** at limit **
   9  Prefactor     8.5248        21.428       -.25711E-05   -.13343E-03
  10  Prefactor     .10005E-03    82.340        .11807E-04** at limit **
  11  Prefactor     .27621        1.6451        .12082E-07   -.93803E-04
  12  Prefactor     .10000E-03    13.385       -.85684E-07** at limit **
  13  norm          .10000E-03    6.2578        .82536E-08** at limit **
  14  Prefactor     .10000E-03    4.2227        .25899E-07** at limit **
  15  Prefactor     59.828        63.528        .38414E-05    .21843E-03
  16  norm          19.179        57.462        .23985E-05    .45145E-04
  17  Prefactor     37.466        41.361       -.14769E-05   -.81274E-04
  18  Prefactor     .10003E-03    73.636       -.97098E-05** at limit **
  19  Prefactor     .10000E-03    4.8361        .17337E-07** at limit **
  20  Prefactor     77.791        33.990        .49880E-06    .11377E-03
  21  norm          2.6603        1.9286       -.19627E-07   -.10221E-03
  22  Prefactor     9.9282        13.909        .66951E-06    .11676E-03
  23  Prefactor     1.1924        10.248        .21660E-05   -.19962E-03
  24  Normalizat    .93466        .22223       -.23295E-05   -.21024E-03
  25  Prefactor     1.1931        .14524        .14334E-06   -.40993E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.156173
  norm       = 5.20764
  norm       = 2.19327
  norm       = 8.5295
  Prefactor  = 7.50718
  norm       = 0.507158
  Prefactor  = 0.0001
  Prefactor  = 8.52476
  Prefactor  = 0.00010005
  Prefactor  = 0.276209
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.828
  norm       = 19.1792
  Prefactor  = 37.4661
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 77.7909
  norm       = 2.66028
  Prefactor  = 9.92818
  Prefactor  = 1.19243
  Normalizat = 0.934665
  Prefactor  = 1.19308
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.844     FROM HESSE     STATUS=OK           435 CALLS     3385 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .15617        11.688        .65646E-01   -1.5629    
   3  norm          5.2076        9.3194        .17608E-03   -1.5252    
   4  norm          2.1933        1.4002        .76705E-04   -1.5412    
   5  norm          8.5295        3.5021        .72162E-04   -1.5124    
   6  Prefactor     7.5072        15.886        .73184E-03   -1.5160    
   7  norm          .50716        4.7078        .32664E-03   -1.5566    
   8  Prefactor     .10000E-03    10.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5248        20.848        .13720E-03   -1.5124    
  10  Prefactor     .10005E-03    87.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .27621        10.617        .20219E-02   -1.5603    
  12  Prefactor     .10000E-03    13.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2271        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.828        64.538        .51882E-04   -1.4159    
  16  norm          19.179        57.585        .91466E-04   -1.4832    
  17  Prefactor     37.466        41.392        .65454E-04   -1.4483    
  18  Prefactor     .10003E-03    76.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     77.791        34.011        .45530E-04   -1.3942    
  21  norm          2.6603        1.9149        .84929E-04   -1.5382    
  22  Prefactor     9.9282        13.900        .12722E-03   -1.5078    
  23  Prefactor     1.1924        10.436        .41626E-03   -1.5490    
  24  Normalizat    .93466        .25589        .33429E-03   -.95253    
  25  Prefactor     1.1931        .16794        .20952E-03   -.86545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78068e-08
Minuit parameter uncertainties:
  1  5.02965e-05
  2  2.70182
  3  9.32202
  4  1.40021
  5  3.50218
  6  15.8944
  7  3.09039
  8  9.30988e-06
  9  20.8654
  10  0.0041805
  11  3.42488
  12  1.11375e-05
  13  1.79889e-06
  14  2.74618e-06
  15  64.6133
  16  57.7521
  17  41.4238
  18  0.00306213
  19  2.34725e-06
  20  34.0191
  21  1.91493
  22  13.9044
  23  7.05651
  24  0.256223
  25  0.168018
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  4.181e-03  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.193e+00  1.680e-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:  9.347e-01  2.562e-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: 9.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932849/likelihoodResults_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.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) = 7228.84400945
delta logL = -5.43476744497e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7228.84400944
delta logL = -5.43456390005e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5219       1.0000          .0000       10.000    
     3 'Normalizat'    .93466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1931       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=   7228.842     FROM MIGRAD    STATUS=FAILED       221 CALLS      366 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1558        8059.8        .18142E-01    .20199E-03
   2  Index         1.8035        8.4257        .50000       -.31940E-04
   3  Normalizat    .93434        .48498E-01    .33429E-03   -.77592E-02
   4  Prefactor     1.1928        .34801E-01    .20952E-03    .11085E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7228.842     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      463 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1558        8059.8        .13018E-02    .20199E-03
   2  Index         1.8035        8.4257        .25534E-02   -.31940E-04
   3  Normalizat    .93434        .48498E-01    .21621E-04   -.77592E-02
   4  Prefactor     1.1928        .34801E-01    .10726E-04    .11085E-01
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7228.842     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      508 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1561        121.24        .72570E-02    .29181E-04
   2  Index         1.8035        2.7403        .31816E-01   -.98417E-04
   3  Normalizat    .93458        .22739        .66858E-04    .29247E-05
   4  Prefactor     1.1926        .16008        .41905E-04    .36354E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15612
  Index      = 1.80346
  Normalizat = 0.934583
  Prefactor  = 1.19265
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.842     FROM HESSE     STATUS=OK            27 CALLS      535 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1561        121.73        .29028E-03   -1.5414    
   2  Index         1.8035        2.7467        .63633E-02   -.69360    
   3  Normalizat    .93458        .22742        .13372E-04   -.95255    
   4  Prefactor     1.1926        .16007        .83809E-05   -.86558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91913e-12
Minuit parameter uncertainties:
  1  32.4701
  2  3.05951
  3  0.227654
  4  0.160133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932849': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7228.84164136
delta logL = 0.00231373725455

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.156e+00  3.247e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.803e+00  3.060e+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:  1.193e+00  1.601e-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:  9.346e-01  2.277e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/932849/cmap_HighResolution_361670401_361929601_4FGL_J0749.9+1823_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-08-28 15:56:00.262345', job_id='932849', GAL2='1.19', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630191360.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.31e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='472' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 932849: <4FGL_J0749.9+1823_daily_bin472> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin472> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:31 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:40:32 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:40:32 2021
Terminated at Sat Aug 28 15:56:01 2021
Results reported at Sat Aug 28 15:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin472 117.485 18.387 361670401 361929601 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

