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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1056
RA = 264.584, Dec = 32.4823
tmin = 513043201, tmax = 513302401
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='957029', job_status='RUN', time_executed='2021-09-18 01:43:40.281640', time_epoch_executed='1631954620.28' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957029/ft1_4FGL_J1738.3+3228_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957029/ft1_4FGL_J1738.3+3228_daily_bin1056.fits outfile=/scratch/kocevski/957029/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1056.fits ra=264.584 dec=32.4823 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.45
user 6.11
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.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/957029/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/957029/ltcube_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.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/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits
.....................!
real 15.81
user 15.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/957029/ltcube_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits outfile=/scratch/kocevski/957029/expmap_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.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/957029/ltcube_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits
.....................!
real 191.60
user 186.88
sys 4.40

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 205 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits outfile=/scratch/kocevski/957029/cmap_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.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=264.584 yref=32.4823 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits outfile=/scratch/kocevski/957029/cmap_HighResolution_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.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=264.584 yref=32.4823 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957029/Model_4FGL_J1738.3+3228_daily_bin1056.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/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits......................!
real 41.00
user 39.76
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits', '/scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits', expMap='/scratch/kocevski/957029/expmap_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits', expCube='/scratch/kocevski/957029/ltcube_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957029/Model_4FGL_J1738.3+3228_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/957029/ft1_filtered_4FGL_J1738.3+3228_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/957029/ft2_4FGL_J1738.3+3228_daily_bin1056.fits
Exposure map: /scratch/kocevski/957029/expmap_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits
Exposure cube: /scratch/kocevski/957029/ltcube_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957029/Model_4FGL_J1738.3+3228_daily_bin1056.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) = 3678.05704636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .14121E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    236.65       1.0000         .10000E-03   10000.    
     5 'norm      '    18.359       1.0000         .10000E-03   10000.    
     6 'norm      '    306.68       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14984E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10877E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    235.30       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18304E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10655E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.547       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3950       1.0000         .10000E-03   10000.    
    21 'norm      '    18.549       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84186       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3678.029     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2537 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2325        2.2576        .75803E-07   -.83404E-04
   2  Prefactor     .10000E-03    40.898       -.20162E-04** at limit **
   3  norm          .10006E-03    9.6260        .35117E-05** at limit **
   4  Prefactor     236.66        129.83        .61859E-05   -.13515E-03
   5  norm          18.355        12.326       -.56912E-05   -.40061E-03
   6  norm          307.04        283.09        .20206E-03   -.53257E-05
   7  Prefactor     .10000E-03    56.768       -.26602E-04** at limit **
   8  Prefactor     .10000E-03    80.953        .32070E-04** at limit **
   9  Prefactor     .10000E-03    46.407        .53939E-04** at limit **
  10  Prefactor     235.42        132.54        .70011E-04    .79574E-05
  11  Prefactor     .10000E-03    18.383        .11442E-05** at limit **
  12  Prefactor     40.897        128.04        .52856E-04    .30431E-04
  13  Prefactor     19.626        624.67       -.33305E-03   -.13146E-04
  14  Prefactor     .10000E-03    4.9817       -.87184E-07** at limit **
  15  norm          .10000E-03    3.1834        .51017E-06** at limit **
  16  norm          .10000E-03    58.154       -.38687E-04** at limit **
  17  Prefactor     11.545        12.099       -.55982E-05   -.13328E-03
  18  norm          .10000E-03    6.8925        .30967E-06** at limit **
  19  Prefactor     9.4826        11.563       -.34459E-05   -.96349E-04
  20  Prefactor     8.5567        84.427       -.46660E-05   -.94124E-06
  21  norm          18.572        48.538       -.93893E-05   -.87705E-05
  22  Normalizat    .84237        .29927        .31944E-05   -.34873E-03
  23  Prefactor     .83126        .15266       -.51413E-05   -.58582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23251
  Prefactor  = 0.0001
  norm       = 0.000100062
  Prefactor  = 236.659
  norm       = 18.3548
  norm       = 307.043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 235.42
  Prefactor  = 0.0001
  Prefactor  = 40.8971
  Prefactor  = 19.6256
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 11.5454
  norm       = 0.0001
  Prefactor  = 9.48256
  Prefactor  = 8.5567
  norm       = 18.5724
  Normalizat = 0.842374
  Prefactor  = 0.83126
 **********
 **   18 **HESSE 
 **********

 FCN=   3678.029     FROM HESSE     STATUS=OK           362 CALLS     2899 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2325        2.2580        .73952E-04   -1.5348    
   2  Prefactor     .10000E-03    40.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10006E-03    53.391        .36117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     236.66        129.75        .26315E-04   -1.2619    
   5  norm          18.355        12.244        .93476E-04   -1.4851    
   6  norm          307.04        283.32        .11600E-03   -1.2185    
   7  Prefactor     .10000E-03    56.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     235.42        132.52        .13195E-03   -1.2627    
  11  Prefactor     .10000E-03    18.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     40.897        126.21        .62642E-04   -1.4428    
  13  Prefactor     19.626        615.98        .89946E-04   -1.4822    
  14  Prefactor     .10000E-03    4.9832        .13220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5283        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    58.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.545        12.100        .11789E-03   -1.5028    
  18  norm          .10000E-03    6.8938        .15550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4826        11.481        .13008E-03   -1.5092    
  20  Prefactor     8.5567        83.144        .13836E-03   -1.5123    
  21  norm          18.572        48.679        .92997E-04   -1.4846    
  22  Normalizat    .84237        .34915        .35984E-03   -.98516    
  23  Prefactor     .83126        .17964        .18437E-03   -.98586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41242e-09
Minuit parameter uncertainties:
  1  2.25803
  2  5.52915e-05
  3  0.00362803
  4  129.903
  5  12.2454
  6  284.614
  7  0.000240024
  8  6.49811e-05
  9  3.08651e-05
  10  132.688
  11  8.58707e-05
  12  127.045
  13  222.45
  14  4.98477e-05
  15  0.000266554
  16  7.13069e-05
  17  12.1027
  18  3.40429e-05
  19  11.4837
  20  53.4424
  21  48.7832
  22  0.350089
  23  0.179765
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  6.498e-05  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.313e-01  1.798e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.424e-01  3.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957029/likelihoodResults_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.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) = 3678.02886969
delta logL = -5.86162400396e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3678.02886961
delta logL = -5.85272205171e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95977E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4540       1.0000          .0000       10.000    
     3 'Normalizat'    .84247       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3678.029     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      195 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.134        .90750E-02** at limit **
   2  Index         2.4371        6.2176        .50000        .17994E-05
   3  Normalizat    .84239        .28934        .81275E-01    .15908E-04
   4  Prefactor     .83125        .14864        .44122E-01    .52611E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43712
  Normalizat = 0.842388
  Prefactor  = 0.831254
 **********
 **   18 **HESSE 
 **********

 FCN=   3678.029     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.453        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4371        6.2173        .50000       -.53818    
   3  Normalizat    .84239        .33675        .35983E-03   -.98515    
   4  Prefactor     .83125        .17342        .18437E-03   -.98586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22693e-12
Minuit parameter uncertainties:
  1  0.00027059
  2  4.29712
  3  0.337594
  4  0.173532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957029': 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) = 3678.02881107
delta logL = 7.97126631369e-09

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.706e-04  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.437e+00  4.297e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  8.313e-01  1.735e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  8.424e-01  3.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.584 32.482

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/957029/cmap_HighResolution_513043201_513302401_4FGL_J1738.3+3228_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-18 01:55:23.807290', job_id='957029', GAL2='0.83', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1631955323.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.97e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1056' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 957029: <4FGL_J1738.3+3228_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1056> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 01:40:24 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:40:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 01:40:25 2021
Terminated at Sat Sep 18 01:55:24 2021
Results reported at Sat Sep 18 01:55:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1056 264.584 32.4823 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.3+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             249.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

