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


Performing analysis on: 4FGL_J0738.1+1742_monthly_bin118
RA = 114.539, Dec = 17.7066
tmin = 542851201, tmax = 545443201
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='775364', job_status='RUN', time_executed='2021-10-18 03:33:48.612053', time_epoch_executed='1634553228.61' WHERE source_name='4FGL J0738.1+1742' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775364

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775364/ft1_4FGL_J0738.1+1742_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775364/ft1_4FGL_J0738.1+1742_monthly_bin118.fits outfile=/scratch/kocevski/775364/ft1_filteredMKT_4FGL_J0738.1+1742_monthly_bin118.fits ra=114.539 dec=17.7066 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.35
user 17.80
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.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/775364/ft1_filteredMKT_4FGL_J0738.1+1742_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.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.60
user 0.43
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/775364/ltcube_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.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/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits
.....................!
real 44.76
user 44.16
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/775364/ltcube_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits outfile=/scratch/kocevski/775364/expmap_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.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/775364/ltcube_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits
.....................!
real 192.10
user 187.07
sys 4.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 174 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0738.1+1742 @ 114.539 17.7066

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits outfile=/scratch/kocevski/775364/cmap_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.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=114.539 yref=17.7066 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.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits outfile=/scratch/kocevski/775364/cmap_HighResolution_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.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=114.539 yref=17.7066 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.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775364/Model_4FGL_J0738.1+1742_monthly_bin118.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source IC 443
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits......................!
real 50.08
user 48.76
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits', '/scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits', expMap='/scratch/kocevski/775364/expmap_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits', expCube='/scratch/kocevski/775364/ltcube_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775364/Model_4FGL_J0738.1+1742_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0738.1+1742'

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.808e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/775364/ft1_filtered_4FGL_J0738.1+1742_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/775364/ft2_4FGL_J0738.1+1742_monthly_bin118.fits
Exposure map: /scratch/kocevski/775364/expmap_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits
Exposure cube: /scratch/kocevski/775364/ltcube_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775364/Model_4FGL_J0738.1+1742_monthly_bin118.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) = 2995.34493937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10598E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.014       1.0000         .10000E-03   10000.    
     5 'norm      '    .30295E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41932E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    164.73       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2787       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .41545       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   2994.992     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     2487 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    102.62        .14748    ** at limit **
   2  Prefactor     .10000E-03    25.164        .18142E-02** at limit **
   3  norm          .10000E-03    13.941        .18142E-02** at limit **
   4  Prefactor     28.000        29.704        .75692E-04   -.16747E-04
   5  norm          .10001E-03    23.177        .12054E-02** at limit **
   6  norm          3.9887        3.6708        .94908E-04   -.58396E-04
   7  Prefactor     .10001E-03    173.03        .47387E-02** at limit **
   8  norm          6.8314        8.7890        .76764E-03    .10759E-03
   9  Prefactor     .10000E-03    64.718        .18142E-02** at limit **
  10  Prefactor     .10001E-03    85.080        .18142E-02** at limit **
  11  Prefactor     164.59        111.07        .15713E-03   -.60009E-04
  12  Prefactor     10.128        6.8210        .10069E-03    .59838E-05
  13  Prefactor     .10000E-03    56.798        .18142E-02** at limit **
  14  norm          4.2649        21.670        .19477E-03   -.55567E-04
  15  Prefactor     .10000E-03    14.332        .18142E-02** at limit **
  16  Prefactor     .10000E-03    56.288        .18142E-02** at limit **
  17  norm          .10000E-03    56.941        .18142E-02** at limit **
  18  Normalizat    .41555        .37887        .45884E-03    .46172E-04
  19  Prefactor     1.1543        .21396        .17408E-03    .17412E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100186
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.0001
  norm       = 0.000100013
  norm       = 3.9887
  Prefactor  = 0.000100007
  norm       = 6.83139
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 164.585
  Prefactor  = 10.1283
  Prefactor  = 0.0001
  norm       = 4.26491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.415554
  Prefactor  = 1.15431
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.992     FROM HESSE     STATUS=OK           258 CALLS     2745 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    103.60        .14657       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.000        29.700        .30277E-05   -1.4649    
   5  norm          .10001E-03    23.449        .24108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9887        3.6536        .37963E-05   -1.5309    
   7  Prefactor     .10001E-03    173.66        .94775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8314        8.7884        .30706E-04   -1.5185    
   9  Prefactor     .10000E-03    64.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    85.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     164.59        110.99        .31426E-04   -1.3135    
  12  Prefactor     10.128        6.8200        .40278E-05   -1.5071    
  13  Prefactor     .10000E-03    56.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2649        21.657        .77909E-05   -1.5295    
  15  Prefactor     .10000E-03    14.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    56.941        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .41555        .37879        .18354E-04   -1.1650    
  19  Prefactor     1.1543        .21387        .34817E-04   -.87749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34932e-10
Minuit parameter uncertainties:
  1  0.00879124
  2  7.14137e-05
  3  2.30566e-05
  4  29.7162
  5  0.00110362
  6  3.65382
  7  0.00222807
  8  8.79007
  9  0.000331961
  10  0.00175994
  11  111.134
  12  6.82049
  13  0.000237035
  14  19.232
  15  7.67708e-06
  16  3.15146e-05
  17  2.42245e-05
  18  0.381162
  19  0.214034
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  3.989e+00  3.654e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.154e+00  2.140e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  4.156e-01  3.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 7.26e-08 +/- 6.65e-08
Energy Flux (Fixed Index): 5.20e-05 +/- 4.77e-05

TS (Fixed Index): 2.12
Ra Dec: 114.539 17.707
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775364/likelihoodResults_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.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) = 2994.89983578
delta logL = 0.092258099698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2994.89256297
delta logL = 0.0995309066989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9322       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4827       1.0000          .0000       5.0000    
     3 'Normalizat'    .36683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1706       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2994.893     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9277        58.889        .59304E-02    .16275E-03
   2  alpha         2.4837        3.4698        .20085        .39685E-04
   3  Normalizat    .36679        .17479        .10980        .24444E-04
   4  Prefactor     1.1707        .67725E-01    .35366E-01   -.12206E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92769
  alpha      = 2.48369
  Normalizat = 0.366793
  Prefactor  = 1.17066
 **********
 **   18 **HESSE 
 **********

 FCN=   2994.893     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9277        5.2619        .72641E-04   -1.5366    
   2  alpha         2.4837        1.3602        .10462E-01   -.65252E-02
   3  Normalizat    .36679        .36821        .48647E-03   -1.1905    
   4  Prefactor     1.1707        .21519        .17292E-03   -.87239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76971e-09
Minuit parameter uncertainties:
  1  5.2627
  2  1.43829
  3  0.370676
  4  0.21535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775364': 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) = 2994.89256235
delta logL = 0.0995315271102

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.928e+00  5.263e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  2.484e+00  1.438e+00  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.171e+00  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  3.668e-01  3.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 114.539 17.707
Photon Index (Free Index): 2.48 +/- 1.44
Photon Flux (Free Index): 1.33e-07 +/- 1.99e-07
Energy Flux (Free Index): 4.31e-05 +/- 3.81e-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/775364/cmap_HighResolution_542851201_545443201_4FGL_J0738.1+1742_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-04', comment='SUCCESS', photon_flux='7.26e-08', energy_flux2='4.31e-05', photon_flux_error='6.65e-08', dlogl='9.95e-02', energy_flux='5.20e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2021-10-18 03:44:34.488411', photon_index_error2='1.44', photon_index2='2.48', ts='2.12', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='2.31e-07', energy_flux_error2='3.81e-05', EG='0.42', time_epoch_completed='1634553874.49', return_code='0', job_id='775364', GAL2='1.17', EG2='0.37', return_code2='0', energy_flux_error='4.77e-05', photon_flux_error2='1.99e-07', ts2='2.35', photon_index='1.98' WHERE bin_id='118' AND source_name='4FGL J0738.1+1742' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 18 03:44:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 775364: <4FGL_J0738.1+1742_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0738.1+1742_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct 18 03:30:14 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 18 03:33:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 18 03:33:18 2021
Terminated at Mon Oct 18 03:44:35 2021
Results reported at Mon Oct 18 03:44:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_monthly_bin118 114.539 17.7066 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0738.1+1742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   606.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            861 sec.

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

