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


Performing analysis on: 4FGL_J1749.0+4321_monthly_bin36
RA = 267.255, Dec = 43.3616
tmin = 330307201, tmax = 332899201
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='849974', job_status='RUN', time_executed='2021-10-31 18:09:21.452382', time_epoch_executed='1635728961.45' WHERE source_name='4FGL J1749.0+4321' and cadence='monthly' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849974

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849974/ft1_4FGL_J1749.0+4321_monthly_bin36.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849974/ft1_4FGL_J1749.0+4321_monthly_bin36.fits outfile=/scratch/kocevski/849974/ft1_filteredMKT_4FGL_J1749.0+4321_monthly_bin36.fits ra=267.255 dec=43.3616 rad=12.0 tmin=330307201.0 tmax=332899201.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 159.27
user 30.12
sys 0.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.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/849974/ft1_filteredMKT_4FGL_J1749.0+4321_monthly_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/849974/ft1_filtered_4FGL_J1749.0+4321_monthly_bin36.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 85.49
user 0.67
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849974/ft1_filtered_4FGL_J1749.0+4321_monthly_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/849974/ltcube_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.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/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits
.....................!
real 145.17
user 108.84
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849974/ft1_filtered_4FGL_J1749.0+4321_monthly_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/849974/ltcube_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.fits outfile=/scratch/kocevski/849974/expmap_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.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/849974/ltcube_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.fits
.....................!
real 349.34
user 188.53
sys 4.54

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/849974/ft1_filtered_4FGL_J1749.0+4321_monthly_bin36.fits scfile=/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits outfile=/scratch/kocevski/849974/cmap_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.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 19.61
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849974/ft1_filtered_4FGL_J1749.0+4321_monthly_bin36.fits scfile=/scratch/kocevski/849974/ft2_4FGL_J1749.0+4321_monthly_bin36.fits outfile=/scratch/kocevski/849974/cmap_HighResolution_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.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.78
user 0.61
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76158E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9612       1.0000         .10000E-03   10000.    
     3 'norm      '    .25992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29188       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8466       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .97901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.934       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.372       1.0000         .10000E-03   10000.    
    13 'norm      '    16.675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .75023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5034       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8326       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4468       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2697       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .60840       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8068       1.0000         .10000E-03   10000.    
    25 'norm      '    14.378       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9431       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90462       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=   85456.92     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3566 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77114E-01    .20624       -.77713E-07   -.12072E-02
   2  norm          3.9611        .58093       -.10836E-07    .10233E-03
   3  norm          .25998        .22052       -.32980E-07   -.25023E-02
   4  Prefactor     .10000E-03    .51057       -.17301E-07** at limit **
   5  norm          .29187        .18881       -.69278E-08   -.16135E-02
   6  norm          2.8463        1.8058        .41155E-07   -.84437E-03
   7  norm          2.2808        .49156        .13796E-07   -.41594E-03
   8  Prefactor     1.8889        .67013        .22247E-08    .12647E-03
   9  Prefactor     .10000E-03    2.7050       -.12439E-07** at limit **
  10  norm          .98023        .97714        .10701E-05    .32734E-02
  11  Prefactor     60.919        20.433       -.71849E-05    .14578E-03
  12  Prefactor     24.370        19.848       -.94292E-06    .39412E-04
  13  norm          16.676        2.1324       -.15186E-06    .66881E-03
  14  Prefactor     5.0639        8.3584        .80187E-06   -.33428E-03
  15  Prefactor     1.6959        1.0722        .23596E-07   -.13540E-03
  16  Prefactor     .10000E-03    4.9520       -.14923E-07** at limit **
  17  Prefactor     17.923        10.364       -.14222E-05    .22571E-03
  18  Prefactor     .74475        2.7087       -.10864E-05   -.73798E-03
  19  Prefactor     2.5037        2.3846        .55053E-07   -.22970E-03
  20  norm          2.8327        .58210       -.22025E-07   -.12676E-03
  21  norm          2.4378        18.141        .10198E-04   -.13948E-03
  22  norm          2.2697        .71686        .12587E-06   -.77242E-02
  23  Prefactor     .60935        2.9273       -.15964E-05   -.22497E-03
  24  Prefactor     1.8068        1.4533       -.16898E-06   -.10144E-02
  25  norm          14.379        3.0721       -.12512E-06    .15103E-03
  26  norm          2.9430        1.8184        .19617E-07    .85716E-05
  27  Normalizat    1.2312        .63115E-01    .74169E-06   -.11038E-02
  28  Prefactor     .90465        .37203E-01   -.16258E-06   -.30314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0771139
  norm       = 3.96107
  norm       = 0.25998
  Prefactor  = 0.0001
  norm       = 0.291873
  norm       = 2.84628
  norm       = 2.28076
  Prefactor  = 1.88887
  Prefactor  = 0.0001
  norm       = 0.98023
  Prefactor  = 60.9194
  Prefactor  = 24.3704
  norm       = 16.6757
  Prefactor  = 5.06388
  Prefactor  = 1.69592
  Prefactor  = 0.0001
  Prefactor  = 17.9234
  Prefactor  = 0.744755
  Prefactor  = 2.50375
  norm       = 2.83268
  norm       = 2.43777
  norm       = 2.26974
  Prefactor  = 0.609347
  Prefactor  = 1.80682
  norm       = 14.3787
  norm       = 2.94305
  Normalizat = 1.23118
  Prefactor  = 0.904647
 **********
 **   18 **HESSE 
 **********

 FCN=   85456.92     FROM HESSE     STATUS=OK           545 CALLS     4111 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77114E-01    .30775        .21111E-02   -1.5652    
   2  norm          3.9611        .58015        .82731E-04   -1.5310    
   3  norm          .25998        .21664        .12105E-03   -1.5606    
   4  Prefactor     .10000E-03    .51981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29187        .17070        .96152E-03   -1.5600    
   6  norm          2.8463        1.7900        .24099E-03   -1.5371    
   7  norm          2.2808        .48909        .90240E-04   -1.5406    
   8  Prefactor     1.8889        .67062        .13826E-03   -1.5433    
   9  Prefactor     .10000E-03    2.7139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .98023        1.0112        .26460E-02   -1.5510    
  11  Prefactor     60.919        20.483        .51401E-04   -1.4145    
  12  Prefactor     24.370        19.806        .81141E-04   -1.4720    
  13  norm          16.676        2.1297        .98080E-04   -1.4891    
  14  Prefactor     5.0639        8.4115        .89335E-03   -1.5258    
  15  Prefactor     1.6959        1.0730        .16156E-03   -1.5448    
  16  Prefactor     .10000E-03    4.9728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.923        10.321        .94608E-04   -1.4861    
  18  Prefactor     .74475        2.7612        .49012E-03   -1.5535    
  19  Prefactor     2.5037        2.3748        .25828E-03   -1.5391    
  20  norm          2.8327        .58147        .98068E-04   -1.5371    
  21  norm          2.4378        17.519        .26153E-03   -1.5396    
  22  norm          2.2697        1.6446        .13630E-02   -1.5407    
  23  Prefactor     .60935        3.0564        .46823E-03   -1.5552    
  24  Prefactor     1.8068        1.4550        .30435E-03   -1.5439    
  25  norm          14.379        3.0691        .10563E-03   -1.4949    
  26  norm          2.9430        1.8208        .23675E-03   -1.5365    
  27  Normalizat    1.2312        .74395E-01    .29096E-03   -.85645    
  28  Prefactor     .90465        .44448E-01    .20844E-03   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10684e-06
Minuit parameter uncertainties:
  1  0.30776
  2  0.580153
  3  0.216636
  4  6.80333e-07
  5  0.170703
  6  1.79004
  7  0.489086
  8  0.670626
  9  6.47028e-08
  10  1.01121
  11  20.4854
  12  19.8109
  13  2.12973
  14  8.41341
  15  1.07302
  16  1.21371e-06
  17  10.3215
  18  2.76165
  19  2.37491
  20  0.581475
  21  13.0752
  22  1.64465
  23  2.72939
  24  1.455
  25  3.06917
  26  1.82087
  27  0.074401
  28  0.0444494
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.504e+00  2.375e+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

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.046e-01  4.445e-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:  1.231e+00  7.440e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 267.255 43.362
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.14e-09 +/- 6.77e-09
Energy Flux (Fixed Index): 4.03e-06 +/- 3.82e-06

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

Saving results to:
/scratch/kocevski/849974/likelihoodResults_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.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): 0
logL (Free Index) = 85455.8157366
delta logL = 1.10010593485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 85455.7841864
delta logL = 1.13165616299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1653       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0361       1.0000          .0000       10.000    
     3 'Normalizat'    1.2088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91237       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   85455.78     FROM MIGRAD    STATUS=FAILED       100 CALLS      315 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1639        17.170        .16807E-03    .45348E-03
   2  Index         3.0368        3.4070        .10070E-01    .27000E-03
   3  Normalizat    1.2088        .69656E-01    .29328E-03   -.99237E-05
   4  Prefactor     .91240        .39033E-01    .20764E-03   -.21901E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   85455.78     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      400 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1639        17.170        .76016E-04    .45348E-03
   2  Index         3.0368        3.4070        .83382E-03    .27000E-03
   3  Normalizat    1.2088        .69656E-01    .80711E-04   -.99237E-05
   4  Prefactor     .91240        .39033E-01    .61221E-04   -.21901E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   85455.78     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      431 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1639        1.8533        .67227E-05    .43292E-03
   2  Index         3.0368        .79465        .40279E-03    .45159E-04
   3  Normalizat    1.2088        .72349E-01    .11731E-04   -.12405E-04
   4  Prefactor     .91240        .44403E-01    .83054E-05   -.21901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16391
  Index      = 3.03684
  Normalizat = 1.20876
  Prefactor  = 0.9124
 **********
 **   18 **HESSE 
 **********

 FCN=   85455.78     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1639        1.7750        .13445E-05   -1.5492    
   2  Index         3.0368        .76135        .16112E-04   -.40349    
   3  Normalizat    1.2088        .72363E-01    .23462E-05   -.86332    
   4  Prefactor     .91240        .44427E-01    .16611E-05   -.95709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03624e-12
Minuit parameter uncertainties:
  1  1.77504
  2  0.764869
  3  0.0723687
  4  0.0444291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849974': 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) = 85455.7841858
delta logL = 1.13165677009

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.164e+00  1.775e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  3.037e+00  7.649e-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:  9.124e-01  4.443e-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:  1.209e+00  7.237e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 267.255 43.362
Photon Index (Free Index): 3.04 +/- 0.76
Photon Flux (Free Index): 2.42e-08 +/- 1.56e-08
Energy Flux (Free Index): 4.74e-06 +/- 2.69e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/849974/cmap_HighResolution_330307201_332899201_4FGL_J1749.0+4321_monthly_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-03', comment='SUCCESS', photon_flux='7.14e-09', energy_flux2='4.74e-06', photon_flux_error='6.77e-09', dlogl='1.13e+00', energy_flux='4.03e-06', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-10-31 21:31:52.008426', photon_index_error2='0.76', photon_index2='3.04', ts='1.42', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.09e-08', energy_flux_error2='2.69e-06', EG='1.23', time_epoch_completed='1635741112.01', return_code='0', job_id='849974', GAL2='0.91', EG2='1.21', return_code2='0', energy_flux_error='3.82e-06', photon_flux_error2='1.56e-08', ts2='3.77', photon_index='2.09' WHERE bin_id='36' AND source_name='4FGL J1749.0+4321' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 31 21:31:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 849974: <4FGL_J1749.0+4321_monthly_bin36> in cluster <slac> Done

Job <4FGL_J1749.0+4321_monthly_bin36> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Oct 31 18:05:20 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 31 18:05:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 31 18:05:24 2021
Terminated at Sun Oct 31 21:31:53 2021
Results reported at Sun Oct 31 21:31:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_monthly_bin36 267.255 43.3616 330307201 332899201 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 :                                   8702.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             287.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12391 sec.
    Turnaround time :                            12393 sec.

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

