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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin619
RA = 267.255, Dec = 43.3616
tmin = 399772801, tmax = 400032001
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='193585', job_status='RUN', time_executed='2021-09-18 15:55:35.313528', time_epoch_executed='1632005735.31' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193585/ft1_4FGL_J1749.0+4321_daily_bin619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193585/ft1_4FGL_J1749.0+4321_daily_bin619.fits outfile=/scratch/kocevski/193585/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin619.fits ra=267.255 dec=43.3616 rad=12.0 tmin=399772801.0 tmax=400032001.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 5.17
user 4.95
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.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/193585/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin619.fits evtable="EVENTS" outfile="/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits" evtable="EVENTS" scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits sctable="SC_DATA" outfile=/scratch/kocevski/193585/ltcube_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.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/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits
.....................!
real 12.50
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits sctable="SC_DATA" expcube=/scratch/kocevski/193585/ltcube_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits outfile=/scratch/kocevski/193585/expmap_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.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/193585/ltcube_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits
.....................!
real 192.74
user 187.36
sys 4.88

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
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits outfile=/scratch/kocevski/193585/cmap_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.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=267.255 yref=43.3616 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits outfile=/scratch/kocevski/193585/cmap_HighResolution_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.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=267.255 yref=43.3616 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits evtable="EVENTS" scfile=/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193585/Model_4FGL_J1749.0+4321_daily_bin619.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
Working on...
/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits.....................!
real 57.70
user 56.34
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits', '/scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits', expMap='/scratch/kocevski/193585/expmap_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits', expCube='/scratch/kocevski/193585/ltcube_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193585/Model_4FGL_J1749.0+4321_daily_bin619.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/193585/ft1_filtered_4FGL_J1749.0+4321_daily_bin619.fits
Spacecraft file(s): /scratch/kocevski/193585/ft2_4FGL_J1749.0+4321_daily_bin619.fits
Exposure map: /scratch/kocevski/193585/expmap_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits
Exposure cube: /scratch/kocevski/193585/ltcube_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193585/Model_4FGL_J1749.0+4321_daily_bin619.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) = 6533.533474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    7.3267       1.0000         .10000E-03   10000.    
     3 'norm      '    .95776       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .51691E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8187       1.0000         .10000E-03   10000.    
     6 'norm      '    .10898E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.9532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    98.416       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.140       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7690       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21914E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11055E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10759E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .16289E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    19.073       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .95375       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6533.492     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     3069 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0477        .15838E-06** at limit **
   2  norm          7.3266        2.5379        .28122E-07    .80554E-04
   3  norm          .95811        1.2126       -.89527E-07    .84080E-03
   4  Prefactor     .10003E-03    629.73        .14666E-03** at limit **
   5  norm          1.8194        1.1861       -.15199E-06    .21109E-02
   6  norm          .10000E-03    14.654       -.61458E-05** at limit **
   7  norm          1.9533        1.8107        .60944E-07    .44576E-03
   8  Prefactor     .10000E-03    2.3436       -.92523E-08** at limit **
   9  Prefactor     .10000E-03    14.662        .55146E-05** at limit **
  10  norm          .47202        38.051        .28068E-04   -.20647E-04
  11  Prefactor     99.087        110.87       -.15561E-04   -.14855E-03
  12  Prefactor     30.215        11.806       -.37680E-05    .84547E-03
  13  norm          1.6448        4.1017        .11481E-06    .10903E-04
  14  Prefactor     .10000E-03    18.297        .23134E-05** at limit **
  15  Prefactor     3.7666        4.5401        .23494E-06    .11562E-04
  16  Prefactor     .10000E-03    150.01        .21910E-05** at limit **
  17  Prefactor     .10000E-03    20.223        .23383E-05** at limit **
  18  Prefactor     16.404        11.994        .98050E-06   -.54960E-04
  19  Prefactor     .10000E-03    20.953       -.96150E-06** at limit **
  20  norm          .10000E-03    3.0258        .83337E-07** at limit **
  21  norm          .10000E-03    92.373       -.41710E-06** at limit **
  22  norm          .10000E-03    3.6904       -.21180E-07** at limit **
  23  Prefactor     .10000E-03    8.3693        .92558E-06** at limit **
  24  Prefactor     .10000E-03    4.2011        .55330E-07** at limit **
  25  norm          .10000E-03    3.2580       -.10907E-06** at limit **
  26  norm          19.068        15.269        .60277E-06   -.17074E-04
  27  Normalizat    .95350        .27911        .10046E-06    .22983E-03
  28  Prefactor     1.0535        .16080       -.42069E-06    .22535E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.32661
  norm       = 0.958109
  Prefactor  = 0.000100033
  norm       = 1.8194
  norm       = 0.0001
  norm       = 1.9533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.472018
  Prefactor  = 99.0871
  Prefactor  = 30.2148
  norm       = 1.64484
  Prefactor  = 0.0001
  Prefactor  = 3.76662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4038
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 19.0679
  Normalizat = 0.953499
  Prefactor  = 1.05348
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.492     FROM HESSE     STATUS=OK           595 CALLS     3664 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3266        2.5376        .37045E-02   -1.5167    
   3  norm          .95811        1.2675        .13016E-01   -1.5512    
   4  Prefactor     .10003E-03    7.8377        .71429E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8194        1.2691        .77416E-02   -1.5438    
   6  norm          .10000E-03    14.383        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9533        1.8265        .74226E-02   -1.5428    
   8  Prefactor     .10000E-03    2.2772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .47202        5.3472        .84359E-01   -1.5571    
  11  Prefactor     99.087        102.50        .10130E-02   -1.3714    
  12  Prefactor     30.215        90.328        .18245E-02   -1.4608    
  13  norm          1.6448        4.1467        .82344E-02   -1.5451    
  14  Prefactor     .10000E-03    18.287        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7666        4.5475        .51988E-02   -1.5320    
  16  Prefactor     .10000E-03    148.89        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.404        12.053        .24720E-02   -1.4898    
  19  Prefactor     .10000E-03    4.3792        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2752        .31666E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    91.959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.6809        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.2562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          19.068        15.258        .22927E-02   -1.4834    
  27  Normalizat    .95350        .23700        .74766E-01   -.94605    
  28  Prefactor     1.0535        .13571        .39722E-01   -.90967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21992e-08
Minuit parameter uncertainties:
  1  9.27079e-07
  2  2.53764
  3  1.26758
  4  0.00101352
  5  1.26913
  6  3.75705e-05
  7  1.82651
  8  9.11983e-07
  9  4.76289e-05
  10  3.17743
  11  102.686
  12  90.7413
  13  4.14742
  14  1.57633e-05
  15  4.54795
  16  0.000298308
  17  1.03444e-05
  18  12.0543
  19  6.04842e-06
  20  4.51632e-08
  21  0.000254934
  22  3.89536e-07
  23  1.47227e-07
  24  2.25902e-06
  25  1.10492e-06
  26  15.2609
  27  0.237257
  28  0.135759
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  6.048e-06  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.053e+00  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.535e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193585/likelihoodResults_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.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) = 6533.49240679
delta logL = -0.00022862028527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6533.4921782
delta logL = -2.93366611004e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0767       1.0000          .0000       10.000    
     3 'Normalizat'    .95351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6533.492     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      225 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18476        .90712E-01** at limit **
   2  Index         2.0685        8.7117        .50000        .25603E-05
   3  Normalizat    .95350        .11167E-02    .74766E-01   -.11435E-03
   4  Prefactor     1.0535        .68533E-03    .39710E-01   -.13613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.0685
  Normalizat = 0.953495
  Prefactor  = 1.05348
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.492     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.922        .33256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0685        5.0098        .50000       -.62648    
   3  Normalizat    .95350        .83098E-02    .33085E-03   -.94605    
   4  Prefactor     1.0535        .51085E-02    .19323E-03   -.90967    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.88416e-09
Minuit parameter uncertainties:
  1  0.000317713
  2  109.43
  3  0.00830978
  4  0.00510848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193585': 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) = 6533.49217816
delta logL = 1.49084371515e-08

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  3.177e-04  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.068e+00  1.094e+02  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.053e+00  5.108e-03  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.535e-01  8.310e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.255 43.362

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/193585/cmap_HighResolution_399772801_400032001_4FGL_J1749.0+4321_daily_bin619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-09-18 16:10:00.901137', job_id='193585', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632006600.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='619' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:10:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 193585: <4FGL_J1749.0+4321_daily_bin619> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin619> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 15:55:20 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 15:55:22 2021
Terminated at Sat Sep 18 16:10:01 2021
Results reported at Sat Sep 18 16:10:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin619 267.255 43.3616 399772801 400032001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   863.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

