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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin824
RA = 114.82, Dec = 1.6216
tmin = 452908801, tmax = 453168001
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='590690', job_status='RUN', time_executed='2021-08-27 20:23:09.128738', time_epoch_executed='1630120989.13' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='824'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590690/ft1_4FGL_J0739.2+0137_daily_bin824.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590690/ft1_4FGL_J0739.2+0137_daily_bin824.fits outfile=/scratch/kocevski/590690/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin824.fits ra=114.82 dec=1.6216 rad=12.0 tmin=452908801.0 tmax=453168001.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 4.28
user 3.90
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.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/590690/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin824.fits evtable="EVENTS" outfile="/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.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.71
user 0.32
sys 0.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits" evtable="EVENTS" scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits sctable="SC_DATA" outfile=/scratch/kocevski/590690/ltcube_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.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/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits
.....................!
real 12.03
user 11.44
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits sctable="SC_DATA" expcube=/scratch/kocevski/590690/ltcube_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits outfile=/scratch/kocevski/590690/expmap_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.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/590690/ltcube_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits
.....................!
real 192.46
user 186.20
sys 5.13

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 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 149 point sources and 2 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 J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits outfile=/scratch/kocevski/590690/cmap_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.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.82 yref=1.6216 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.72
user 0.37
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits outfile=/scratch/kocevski/590690/cmap_HighResolution_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.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.82 yref=1.6216 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.79
user 0.35
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits evtable="EVENTS" scfile=/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590690/Model_4FGL_J0739.2+0137_daily_bin824.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits.....................!
real 125.23
user 122.72
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits', '/scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits', expMap='/scratch/kocevski/590690/expmap_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits', expCube='/scratch/kocevski/590690/ltcube_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590690/Model_4FGL_J0739.2+0137_daily_bin824.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.2+0137'

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.536e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/590690/ft1_filtered_4FGL_J0739.2+0137_daily_bin824.fits
Spacecraft file(s): /scratch/kocevski/590690/ft2_4FGL_J0739.2+0137_daily_bin824.fits
Exposure map: /scratch/kocevski/590690/expmap_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits
Exposure cube: /scratch/kocevski/590690/ltcube_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590690/Model_4FGL_J0739.2+0137_daily_bin824.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) = 8330.11183134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.971       1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.337       1.0000         .10000E-03   10000.    
    10 'norm      '    7.4202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2054       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.328       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4076       1.0000         .10000E-03   10000.    
    18 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10485E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.7660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0886       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8330.097     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2872 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0984        .11830E-06** at limit **
   2  norm          18.125        33.834        .65716E-06    .12135E-04
   3  Prefactor     35.950        40.664       -.21457E-06   -.76121E-04
   4  norm          .10000E-03    2.7176        .13446E-06** at limit **
   5  norm          1.0430        1.7353        .27288E-06    .22354E-04
   6  Prefactor     .10000E-03    25.800       -.13126E-06** at limit **
   7  Prefactor     .10000E-03    4.0148        .20402E-07** at limit **
   8  Prefactor     4.3007        12.272        .49231E-06   -.52204E-05
   9  Prefactor     57.321        36.802       -.28331E-06   -.94297E-04
  10  norm          7.4196        2.4083       -.67159E-08   -.42904E-04
  11  Prefactor     .10000E-03    20.620        .26476E-06** at limit **
  12  norm          .10000E-03    14.601        .67948E-07** at limit **
  13  Prefactor     1.2048        2.4547        .60431E-06    .36645E-05
  14  norm          .10000E-03    7.3047        .54673E-07** at limit **
  15  Prefactor     11.324        11.096       -.61958E-07   -.15643E-04
  16  Prefactor     .10000E-03    2.0038        .25667E-07** at limit **
  17  Prefactor     4.3921        39.888       -.15153E-05   -.35958E-04
  18  norm          .10000E-03    10.486        .11747E-06** at limit **
  19  norm          .10000E-03    .82948        .97523E-07** at limit **
  20  norm          .10000E-03    .32492        .15031E-07** at limit **
  21  norm          .10000E-03    6.4251       -.33557E-06** at limit **
  22  norm          6.7645        4.7553        .11430E-05   -.95956E-04
  23  Prefactor     .10000E-03    14.694       -.80894E-07** at limit **
  24  Normalizat    1.0889        .19790       -.14826E-07   -.37502E-04
  25  Prefactor     .92767        .69358E-01   -.32905E-06   -.28772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 18.1252
  Prefactor  = 35.9504
  norm       = 0.0001
  norm       = 1.04303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30071
  Prefactor  = 57.3206
  norm       = 7.41958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.20483
  norm       = 0.0001
  Prefactor  = 11.3237
  Prefactor  = 0.0001
  Prefactor  = 4.39208
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.76449
  Prefactor  = 0.0001
  Normalizat = 1.08888
  Prefactor  = 0.927675
 **********
 **   18 **HESSE 
 **********

 FCN=   8330.097     FROM HESSE     STATUS=OK           423 CALLS     3295 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1104        .18048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.125        34.149        .94090E-04   -1.4856    
   3  Prefactor     35.950        40.863        .66821E-04   -1.4508    
   4  norm          .10000E-03    2.7381        .14690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0430        1.7019        .14733E-03   -1.5504    
   6  Prefactor     .10000E-03    25.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0346        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3007        12.260        .19425E-03   -1.5293    
   9  Prefactor     57.321        36.910        .52980E-04   -1.4192    
  10  norm          7.4196        2.4101        .76892E-04   -1.5163    
  11  Prefactor     .10000E-03    20.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2048        2.4296        .19598E-03   -1.5488    
  14  norm          .10000E-03    7.3192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.324        11.105        .11903E-03   -1.5035    
  16  Prefactor     .10000E-03    2.0048        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3921        40.329        .19183E-03   -1.5289    
  18  norm          .10000E-03    10.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4961        .16178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .32573        .50804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.4286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.7645        4.7679        .77127E-03   -1.5188    
  23  Prefactor     .10000E-03    14.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0889        .20945        .38871E-03   -.90110    
  25  Prefactor     .92767        .73823E-01    .15068E-03   -.95181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45497e-11
Minuit parameter uncertainties:
  1  9.40397e-06
  2  34.1855
  3  40.8944
  4  1.32167e-06
  5  1.70198
  6  3.68611e-05
  7  6.35797e-06
  8  12.2676
  9  36.9244
  10  2.41016
  11  6.47313e-05
  12  9.99677e-06
  13  2.42984
  14  1.22693e-05
  15  11.1069
  16  2.14709e-07
  17  26.6413
  18  1.29917e-05
  19  9.13177e-06
  20  1.72899e-08
  21  8.89811e-06
  22  4.7682
  23  1.32685e-05
  24  0.209607
  25  0.0738306
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  7.420e+00  2.410e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.277e-01  7.383e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.089e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.33
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.84e-07 +/- 5.97e-08
Energy Flux (Fixed Index): 5.94e-05 +/- 1.93e-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) = 8330.04862297
delta logL = 0.0482912894277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8330.0466018
delta logL = 0.0503124661627

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8330.047     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4901        3.2530        .36635E-02    .95007E-03
   2  alpha         2.2005        .42930        .28037       -.24252E-05
   3  Normalizat    1.0997        .18323        .87425E-01    .77339E-04
   4  Prefactor     .92608        .65246E-01    .34126E-01    .19886E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.49009
  alpha      = 2.20053
  Normalizat = 1.09966
  Prefactor  = 0.926075
 **********
 **   18 **HESSE 
 **********

 FCN=   8330.047     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4901        2.4604        .78531E-04   -1.5161    
   2  alpha         2.2005        .35183        .11400E-01   -.12008    
   3  Normalizat    1.0997        .19308        .38716E-03   -.89763    
   4  Prefactor     .92608        .68457E-01    .15080E-03   -.95236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80783e-11
Minuit parameter uncertainties:
  1  2.46045
  2  0.35302
  3  0.193207
  4  0.0684631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590690': 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) = 8330.04660163
delta logL = 0.0503126359672

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  7.490e+00  2.460e+00  1.000e-04  1.000e+04 ( 1.000e-11)
205        alpha:  2.201e+00  3.530e-01  0.000e+00  5.000e+00 ( 1.000e+00)
206         beta:  9.503e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.261e-01  6.846e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.100e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.39
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.20 +/- 0.35
Photon Flux (Free Index): 1.71e-07 +/- 6.96e-08
Energy Flux (Free Index): 6.23e-05 +/- 2.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/590690/cmap_HighResolution_452908801_453168001_4FGL_J0739.2+0137_daily_bin824.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.84e-07', energy_flux2='6.23e-05', photon_flux_error='5.97e-08', dlogl='5.03e-02', energy_flux='5.94e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-08-27 20:35:26.536041', photon_index_error2='0.35', photon_index2='2.20', ts='24.33', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.09', time_epoch_completed='1630121726.54', return_code='0', job_id='590690', GAL2='0.93', EG2='1.10', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.96e-08', ts2='24.39', photon_index='2.31' WHERE bin_id='824' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 20:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 590690: <4FGL_J0739.2+0137_daily_bin824> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin824> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 20:20:32 2021
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 20:20:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 20:20:43 2021
Terminated at Fri Aug 27 20:35:26 2021
Results reported at Fri Aug 27 20:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin824 114.82 1.6216 452908801 453168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.2+0137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            894 sec.

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

