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


Performing analysis on: 4FGL_J1749.0+4321_daily_bin1192
RA = 267.255, Dec = 43.3616
tmin = 548294401, tmax = 548553601
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='196860', job_status='RUN', time_executed='2021-09-18 16:07:54.935721', time_epoch_executed='1632006474.94' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196860

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196860/ft1_4FGL_J1749.0+4321_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196860/ft1_4FGL_J1749.0+4321_daily_bin1192.fits outfile=/scratch/kocevski/196860/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1192.fits ra=267.255 dec=43.3616 rad=12.0 tmin=548294401.0 tmax=548553601.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 2.98
user 2.78
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.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/196860/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.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.41
user 0.25
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/196860/ltcube_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.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/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits
.....................!
real 8.92
user 8.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/196860/ltcube_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits outfile=/scratch/kocevski/196860/expmap_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.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/196860/ltcube_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits
.....................!
real 145.67
user 142.05
sys 3.34

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/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits outfile=/scratch/kocevski/196860/cmap_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits outfile=/scratch/kocevski/196860/cmap_HighResolution_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.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.46
user 0.32
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196860/Model_4FGL_J1749.0+4321_daily_bin1192.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/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits....................................!
real 13.39
user 12.34
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits', '/scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits', expMap='/scratch/kocevski/196860/expmap_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits', expCube='/scratch/kocevski/196860/ltcube_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/196860/Model_4FGL_J1749.0+4321_daily_bin1192.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/196860/ft1_filtered_4FGL_J1749.0+4321_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/196860/ft2_4FGL_J1749.0+4321_daily_bin1192.fits
Exposure map: /scratch/kocevski/196860/expmap_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits
Exposure cube: /scratch/kocevski/196860/ltcube_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/196860/Model_4FGL_J1749.0+4321_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 480.082675112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 477.530374719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35521E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57720       1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .27436E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .17583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .61256E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .19521E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2244       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6530       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6255       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6567       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24642E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10073       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0856       1.0000         .10000E-03   10000.    
    22 'norm      '    .54885       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8885       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.598       1.0000         .10000E-03   10000.    
    25 'norm      '    261.12       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3980       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79651       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .55051       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   477.4972     FROM MIGRAD    STATUS=CONVERGED    196 CALLS      405 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    234.96        .91992E-02** at limit **
   2  norm          .10000E-03    15.366        .90712E-02** at limit **
   3  norm          1.0706        1.2141         .0000         .0000    
   4  Prefactor     2.4936        1.8286        .11963E-03   -.44953E-02
   5  norm          .10000E-03    .20571        .79297E-06** at limit **
   6  norm          .10000E-03    .20973        .33784E-06** at limit **
   7  norm          .10000E-03    .24338       -.28742E-05** at limit **
   8  Prefactor     1.8498        1.0422         .0000         .0000    
   9  Prefactor     .10006E-03    .27702        .60605E-06** at limit **
  10  norm          .10000E-03    .20571        .68465E-06** at limit **
  11  Prefactor     .10001E-03    .25901       -.67067E-05** at limit **
  12  Prefactor     .10002E-03    .16844        .33614E-04** at limit **
  13  norm          3.6247        1.0098         .0000         .0000    
  14  Prefactor     .15400E-01    .48209E-01    .13126E-03   -.86232E-03
  15  Prefactor     5.8055        1.0038         .0000         .0000    
  16  Prefactor     8.6567        1.0017         .0000         .0000    
  17  Prefactor     .22187E-03    .32691        .92806E-04** at limit **
  18  Prefactor     .10000E-03    .25080       -.15044E-05** at limit **
  19  Prefactor     .10000E-03    .22632       -.10709E-05** at limit **
  20  norm          .10000E-03    .20571        .22104E-06** at limit **
  21  norm          .10000E-03    .33163        .15253E-04** at limit **
  22  norm          .10000E-03    .32882        .12928E-04** at limit **
  23  Prefactor     2.8885        1.0158         .0000         .0000    
  24  Prefactor     30.721        1.0021       -.62049E-06    .78125E-02
  25  norm          314.03        1.0937       -.76980E-04   -.80730E-02
  26  norm          .10001E-03    .21058        .51204E-05** at limit **
  27  Normalizat    .79479        1.1342        .15161E-04   -.60212E-06
  28  Prefactor     .54985        .89554       -.13583E-04   -.10062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100972
  norm       = 0.0001
  norm       = 1.07056
  Prefactor  = 2.49363
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.84976
  Prefactor  = 0.000100061
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100017
  norm       = 3.62474
  Prefactor  = 0.0154002
  Prefactor  = 5.80546
  Prefactor  = 8.65668
  Prefactor  = 0.000221873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 2.88854
  Prefactor  = 30.7209
  norm       = 314.032
  norm       = 0.000100006
  Normalizat = 0.794793
  Prefactor  = 0.54985
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   477.4972     FROM HESSE     STATUS=FAILED        13 CALLS      418 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    234.96        .91992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          586.71        585.29         .0000       -1.5501    
   4  Prefactor     2.4936        1.8286        .11963E-03   -1.6024    
   5  norm          .10000E-03    .20571        .79297E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .20973        .33784E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .24338       -.28742E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8498        1.0422         .0000       -1.5436    
   9  Prefactor     .10006E-03    .27702        .60605E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571        .68465E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    .25901       -.67067E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    .16844        .33614E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6247        1.0098         .0000       -1.5327    
  14  Prefactor     .15400E-01    .48209E-01    .13126E-03   -1.5733    
  15  Prefactor     5.8055        1.0038         .0000       -1.5226    
  16  Prefactor     8.6567        1.0017         .0000       -1.5119    
  17  Prefactor     .22187E-03    .32691        .92806E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .25080       -.15044E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .22632       -.10709E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571        .22104E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .33163        .15253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .32882        .12928E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8885        1.0158         .0000       -1.5368    
  24  Prefactor     30.721        1.0021       -.62049E-06   -1.4599    
  25  norm          314.03        1.0937       -.76980E-04   -1.2145    
  26  norm          .10001E-03    .21058        .51204E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .79479        1.1342        .15161E-04   -1.0026    
  28  Prefactor     .54985        .89554       -.13583E-04   -1.0974    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.80301e-09
Minuit parameter uncertainties:
  1  0.0303456
  2  1.38026e-06
  3  1.21409
  4  1.82868
  5  2.47221e-07
  6  9.27464e-07
  7  1.86856e-06
  8  1.04221
  9  0.000260166
  10  3.45215e-07
  11  9.81151e-05
  12  0.000108226
  13  1.00984
  14  0.0482095
  15  1.00376
  16  1.00168
  17  0.012624
  18  8.53319e-09
  19  4.6654e-06
  20  3.38964e-07
  21  7.38984e-05
  22  2.8144e-07
  23  1.01583
  24  1.00214
  25  1.09366
  26  7.31628e-05
  27  1.17093
  28  0.920345
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 477.497233417

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  4.665e-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:  5.499e-01  9.203e-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.948e-01  1.171e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 9.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196860/likelihoodResults_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.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) = 477.497278583
delta logL = -4.51666514891e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 477.497234738
delta logL = -1.32172738176e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   477.4972     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10409E-03    51.802        .13426E-01** at limit **
   2  Index         2.3159        5.6164        .50000        .60916E-05
   3  Normalizat    .79479        .19386E-01    .31335E-03    .25367E-04
   4  Prefactor     .54985        .89083E-02    .16961E-03    .30776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104086
  Index      = 2.31585
  Normalizat = 0.794795
  Prefactor  = 0.54985
 **********
 **   18 **HESSE 
 **********

 FCN=   477.4972     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10409E-03    460.15        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3159        6.1530        .50000       -.56668    
   3  Normalizat    .79479        .58760E-01    .62670E-04   -1.0026    
   4  Prefactor     .54985        .27003E-01    .33922E-04   -1.0974    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.56524e-09
Minuit parameter uncertainties:
  1  0.0874058
  2  720.145
  3  0.0587649
  4  0.0270035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196860': 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) = 477.497233719
delta logL = -3.02202863622e-07

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.041e-04  8.741e-02  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.316e+00  7.201e+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:  5.499e-01  2.700e-02  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.948e-01  5.876e-02  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/196860/cmap_HighResolution_548294401_548553601_4FGL_J1749.0+4321_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-02', job_status='DONE', photon_flux_upper_limit='9.27e-07', time_completed='2021-09-18 16:12:28.068542', job_id='196860', GAL2='0.55', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632006748.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.55', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1192' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 16:12:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 196860: <4FGL_J1749.0+4321_daily_bin1192> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1192> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 16:05:37 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 16:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 16:05:38 2021
Terminated at Sat Sep 18 16:12:28 2021
Results reported at Sat Sep 18 16:12:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1192 267.255 43.3616 548294401 548553601 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 :                                   258.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             395.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   410 sec.
    Turnaround time :                            411 sec.

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

