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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin764
RA = 267.255, Dec = 43.3616
tmin = 437356801, tmax = 437616001
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='193688', job_status='RUN', time_executed='2021-09-18 15:55:44.911745', time_epoch_executed='1632005744.91' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193688

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193688/ft1_4FGL_J1749.0+4321_daily_bin764.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193688/ft1_4FGL_J1749.0+4321_daily_bin764.fits outfile=/scratch/kocevski/193688/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin764.fits ra=267.255 dec=43.3616 rad=12.0 tmin=437356801.0 tmax=437616001.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.54
user 5.26
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.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/193688/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin764.fits evtable="EVENTS" outfile="/scratch/kocevski/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits" evtable="EVENTS" scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits sctable="SC_DATA" outfile=/scratch/kocevski/193688/ltcube_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.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/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits
.....................!
real 12.76
user 12.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits sctable="SC_DATA" expcube=/scratch/kocevski/193688/ltcube_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits outfile=/scratch/kocevski/193688/expmap_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.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/193688/ltcube_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits
.....................!
real 191.58
user 186.15
sys 4.97

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/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits outfile=/scratch/kocevski/193688/cmap_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits outfile=/scratch/kocevski/193688/cmap_HighResolution_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.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/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193688/Model_4FGL_J1749.0+4321_daily_bin764.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/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits.....................!
real 50.33
user 48.76
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits', '/scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits', expMap='/scratch/kocevski/193688/expmap_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits', expCube='/scratch/kocevski/193688/ltcube_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193688/Model_4FGL_J1749.0+4321_daily_bin764.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/193688/ft1_filtered_4FGL_J1749.0+4321_daily_bin764.fits
Spacecraft file(s): /scratch/kocevski/193688/ft2_4FGL_J1749.0+4321_daily_bin764.fits
Exposure map: /scratch/kocevski/193688/expmap_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits
Exposure cube: /scratch/kocevski/193688/ltcube_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193688/Model_4FGL_J1749.0+4321_daily_bin764.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) = 5156.91118269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0164       1.0000         .10000E-03   10000.    
     3 'norm      '    .59140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0005       1.0000         .10000E-03   10000.    
     5 'norm      '    .61199       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8347       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3360       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16205E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12548E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    71.344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    97.787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1682       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.347       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    82.402       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9103       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9783       1.0000         .10000E-03   10000.    
    25 'norm      '    12.010       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .67910       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0630       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5156.896     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3551 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6692        .18204E-06** at limit **
   2  norm          3.0163        1.8964        .26486E-07   -.61494E-04
   3  norm          .59139        2.2690        .15494E-05    .24894E-03
   4  Prefactor     4.9949        19.662       -.37336E-05   -.10276E-03
   5  norm          .61226        .85030        .20696E-06    .26409E-03
   6  norm          4.8328        14.097       -.17255E-06   -.28027E-04
   7  norm          4.3349        3.4898       -.15862E-07   -.33882E-04
   8  Prefactor     .10000E-03    2.9913       -.47313E-06** at limit **
   9  Prefactor     .10000E-03    15.652        .17690E-06** at limit **
  10  norm          10.594        6.9570        .80308E-06    .14835E-04
  11  Prefactor     .10000E-03    27.672        .22445E-07** at limit **
  12  Prefactor     .10000E-03    29.256        .34186E-06** at limit **
  13  norm          .10000E-03    12.904       -.34879E-05** at limit **
  14  Prefactor     .10000E-03    169.84       -.11735E-04** at limit **
  15  Prefactor     .10000E-03    5.2121       -.39689E-05** at limit **
  16  Prefactor     71.079        119.06       -.11394E-05   -.41760E-04
  17  Prefactor     97.671        97.575        .10630E-05   -.13883E-04
  18  Prefactor     3.1683        14.453        .13562E-05   -.24539E-04
  19  Prefactor     25.345        17.038        .21767E-07   -.60339E-05
  20  norm          .10000E-03    .67107        .18583E-06** at limit **
  21  norm          82.399        73.669       -.10896E-05   -.28970E-04
  22  norm          .10000E-03    5.7637       -.12774E-07** at limit **
  23  Prefactor     6.9052        25.135       -.17682E-06    .80588E-05
  24  Prefactor     9.9785        7.7818        .19221E-05    .34689E-04
  25  norm          12.008        18.361        .49707E-06   -.12179E-04
  26  norm          .10000E-03    8.6110        .52469E-07** at limit **
  27  Normalizat    .67976        .30114        .59592E-05   -.96111E-04
  28  Prefactor     1.0626        .16404       -.39199E-05    .16170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.01635
  norm       = 0.591389
  Prefactor  = 4.99487
  norm       = 0.612257
  norm       = 4.8328
  norm       = 4.33494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.0792
  Prefactor  = 97.6707
  Prefactor  = 3.16831
  Prefactor  = 25.3446
  norm       = 0.0001
  norm       = 82.3995
  norm       = 0.0001
  Prefactor  = 6.9052
  Prefactor  = 9.97846
  norm       = 12.0081
  norm       = 0.0001
  Normalizat = 0.679762
  Prefactor  = 1.0626
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.896     FROM HESSE     STATUS=OK           525 CALLS     4076 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6886        .90596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0163        1.8939        .76252E-04   -1.5361    
   3  norm          .59139        2.1589        .17166E-03   -1.5554    
   4  Prefactor     4.9949        18.507        .17983E-03   -1.5261    
   5  norm          .61226        .79574        .72655E-03   -1.5551    
   6  norm          4.8328        13.984        .18296E-03   -1.5268    
   7  norm          4.3349        3.4606        .10823E-03   -1.5292    
   8  Prefactor     .10000E-03    2.9987        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.594        6.9321        .61547E-03   -1.5057    
  11  Prefactor     .10000E-03    27.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    170.69        .20409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2263        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     71.079        119.08        .23764E-03   -1.4020    
  17  Prefactor     97.671        97.621        .20325E-03   -1.3728    
  18  Prefactor     3.1683        14.225        .22769E-03   -1.5352    
  19  Prefactor     25.345        17.029        .79567E-04   -1.4701    
  20  norm          .10000E-03    .95732        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          82.399        73.440        .44248E-04   -1.3890    
  22  norm          .10000E-03    5.7723        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.9052        25.120        .15262E-03   -1.5182    
  24  Prefactor     9.9785        7.7683        .63426E-03   -1.5076    
  25  norm          12.008        18.346        .11559E-03   -1.5015    
  26  norm          .10000E-03    8.6179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .67976        .33071        .39064E-03   -1.0470    
  28  Prefactor     1.0626        .18030        .18534E-03   -.90671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13522e-10
Minuit parameter uncertainties:
  1  9.13675e-07
  2  1.89396
  3  2.15921
  4  18.5286
  5  0.795758
  6  13.9932
  7  3.46073
  8  5.28213e-07
  9  2.4655e-06
  10  6.93265
  11  6.28227e-05
  12  4.44067e-05
  13  8.24606e-06
  14  0.000364967
  15  2.78655e-05
  16  119.479
  17  97.7819
  18  13.432
  19  17.0319
  20  4.88863e-06
  21  73.521
  22  5.10759e-07
  23  25.1581
  24  7.7691
  25  18.3547
  26  5.27824e-06
  27  0.331682
  28  0.180401
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.534e+01  1.703e+01  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.063e+00  1.804e-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:  6.798e-01  3.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.95
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 4.08e-05 +/- 2.74e-05

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): 0
logL (Free Index) = 5156.40538962
delta logL = 0.490296210919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.39679869
delta logL = 0.498887136931

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5156.397     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.857        19.256        .38118E-05   -.22001E-03
   2  Index         1.5438        .50277        .23887E-04   -.42807E-04
   3  Normalizat    .72054        .25798       -.37799E-05   -.55244E-03
   4  Prefactor     1.0517        .15121        .24189E-06   -.93107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8573
  Index      = 1.54385
  Normalizat = 0.720538
  Prefactor  = 1.05166
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.397     FROM HESSE     STATUS=OK            27 CALLS      232 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.857        19.035        .78788E-04   -1.4691    
   2  Index         1.5438        .49803        .79423E-02   -.76319    
   3  Normalizat    .72054        .29776        .38019E-03   -1.0309    
   4  Prefactor     1.0517        .17447        .18618E-03   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62676e-10
Minuit parameter uncertainties:
  1  19.0398
  2  0.499618
  3  0.29843
  4  0.174559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193688': 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) = 5156.39679492
delta logL = 0.498890908321

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.586e+01  1.904e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.544e+00  4.996e-01  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.052e+00  1.746e-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:  7.205e-01  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.95
Ra Dec: 267.255 43.362
Photon Index (Free Index): 1.54 +/- 0.50
Photon Flux (Free Index): 3.24e-08 +/- 3.42e-08
Energy Flux (Free Index): 8.83e-05 +/- 9.78e-05

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/193688/cmap_HighResolution_437356801_437616001_4FGL_J1749.0+4321_daily_bin764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='8.83e-05', photon_flux_error='4.86e-08', dlogl='4.99e-01', energy_flux='4.08e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2021-09-18 16:07:08.033135', photon_index_error2='0.50', photon_index2='1.54', ts='4.95', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.78e-05', EG='0.68', time_epoch_completed='1632006428.03', return_code='0', job_id='193688', GAL2='1.05', EG2='0.72', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='3.42e-08', ts2='5.95', photon_index='2.09' WHERE bin_id='764' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:07:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 193688: <4FGL_J1749.0+4321_daily_bin764> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin764> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 15:55:29 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 15:55:30 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:30 2021
Terminated at Sat Sep 18 16:07:08 2021
Results reported at Sat Sep 18 16:07:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin764 267.255 43.3616 437356801 437616001 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            699 sec.

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

