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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1311
RA = 264.584, Dec = 32.4823
tmin = 579139201, tmax = 579398401
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='958529', job_status='RUN', time_executed='2021-09-18 01:45:26.060788', time_epoch_executed='1631954726.06' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/958529/ft1_4FGL_J1738.3+3228_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958529/ft1_4FGL_J1738.3+3228_daily_bin1311.fits outfile=/scratch/kocevski/958529/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1311.fits ra=264.584 dec=32.4823 rad=12.0 tmin=579139201.0 tmax=579398401.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 3.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.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/958529/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1311.fits evtable="EVENTS" outfile="/scratch/kocevski/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/958529/ltcube_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.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/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits
.....................!
real 11.96
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/958529/ltcube_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits outfile=/scratch/kocevski/958529/expmap_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.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/958529/ltcube_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits
.....................!
real 191.20
user 184.86
sys 5.97

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/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits scfile=/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits outfile=/scratch/kocevski/958529/cmap_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits scfile=/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits outfile=/scratch/kocevski/958529/cmap_HighResolution_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits', '/scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits', expMap='/scratch/kocevski/958529/expmap_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits', expCube='/scratch/kocevski/958529/ltcube_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958529/Model_4FGL_J1738.3+3228_daily_bin1311.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/958529/ft1_filtered_4FGL_J1738.3+3228_daily_bin1311.fits
Spacecraft file(s): /scratch/kocevski/958529/ft2_4FGL_J1738.3+3228_daily_bin1311.fits
Exposure map: /scratch/kocevski/958529/expmap_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits
Exposure cube: /scratch/kocevski/958529/ltcube_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958529/Model_4FGL_J1738.3+3228_daily_bin1311.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) = 8498.43401803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10991E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5096       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6703       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.575       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83973       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .75074E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0622       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8498.429     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     2126 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7901        1.6578       -.16116E-06   -.20014E-03
   2  Prefactor     .10092E-03    11.987       -.42067E-04** at limit **
   3  norm          4.5102        7.8824        .15248E-04   -.16632E-02
   4  Prefactor     .10043E-03    18.885       -.45568E-04** at limit **
   5  norm          4.6701        5.6123       -.55318E-05   -.24300E-03
   6  norm          .10001E-03    28.570        .73194E-04** at limit **
   7  Prefactor     32.576        1.0255        .29311E-06   -.24177E-03
   8  Prefactor     .10636E-03    108.60       -.12589E-03** at limit **
   9  Prefactor     9.5866        1.8963        .23380E-05    .22857E-02
  10  Prefactor     .10012E-03    26.044        .72369E-04** at limit **
  11  Prefactor     3.9591        2.8879        .11600E-04    .58250E-02
  12  Prefactor     8.1911        1.0380       -.75277E-06   -.23682E-04
  13  Prefactor     26.806        1.0034        .38772E-07   -.61568E-04
  14  Prefactor     .84165        14.380        .83207E-05    .17902E-03
  15  norm          .10000E-03    .39719        .25255E-07** at limit **
  16  norm          .10671E-03    41.928       -.82051E-05** at limit **
  17  Prefactor     .10000E-03    1.3705        .10965E-05** at limit **
  18  norm          .20553        32.188        .79405E-05   -.31499E-03
  19  Prefactor     7.0611        4.4114       -.48704E-06    .54876E-03
  20  Prefactor     .10000E-03    4.3583        .92345E-06** at limit **
  21  norm          .10002E-03    30.660        .44047E-05** at limit **
  22  Normalizat    1.2797        .22710       -.60341E-05   -.63925E-03
  23  Prefactor     .86243        .11488        .85092E-06   -.55980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79011
  Prefactor  = 0.000100921
  norm       = 4.51015
  Prefactor  = 0.000100432
  norm       = 4.67014
  norm       = 0.000100006
  Prefactor  = 32.5757
  Prefactor  = 0.000106361
  Prefactor  = 9.58663
  Prefactor  = 0.000100115
  Prefactor  = 3.95909
  Prefactor  = 8.19111
  Prefactor  = 26.8061
  Prefactor  = 0.841645
  norm       = 0.0001
  norm       = 0.000106707
  Prefactor  = 0.0001
  norm       = 0.205528
  Prefactor  = 7.06107
  Prefactor  = 0.000100001
  norm       = 0.000100015
  Normalizat = 1.27969
  Prefactor  = 0.862433
 **********
 **   18 **HESSE 
 **********

 FCN=   8498.429     FROM HESSE     STATUS=OK           424 CALLS     2550 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7901        1.6547        .60897E-02   -1.5374    
   2  Prefactor     .10092E-03    207.41        .10350E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5102        8.4381        .47397E-02   -1.5283    
   4  Prefactor     .10043E-03    49.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6701        5.8241        .46555E-02   -1.5276    
   6  norm          .10001E-03    75.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.576        63.206        .17552E-02   -1.4566    
   8  Prefactor     .10636E-03    163.38        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5866        11.303        .32355E-02   -1.5089    
  10  Prefactor     .10012E-03    71.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9591        7.0156        .50695E-02   -1.5310    
  12  Prefactor     8.1911        18.846        .35024E-02   -1.5135    
  13  Prefactor     26.806        34.644        .19344E-02   -1.4672    
  14  Prefactor     .84165        5.4446        .65132E-01   -1.5524    
  15  norm          .10000E-03    .39681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10671E-03    110.42        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .20553        3.3700        .93917E-01   -1.5617    
  19  Prefactor     7.0611        4.4169        .37738E-02   -1.5176    
  20  Prefactor     .10000E-03    4.3511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10002E-03    32.133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2797        .19486        .68647E-01   -.84175    
  23  Prefactor     .86243        .96968E-01    .44529E-01   -.97466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2255e-07
Minuit parameter uncertainties:
  1  1.65472
  2  0.0277433
  3  8.44029
  4  0.00927544
  5  5.82478
  6  0.00135125
  7  63.3366
  8  0.0646523
  9  11.3052
  10  0.00575543
  11  7.0171
  12  18.8601
  13  34.6705
  14  4.28164
  15  1.49195e-06
  16  0.0545305
  17  2.66459e-05
  18  1.6642
  19  4.41709
  20  0.000143436
  21  0.00140483
  22  0.194968
  23  0.0969874
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.064e-04  6.465e-02  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.624e-01  9.699e-02  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:  1.280e+00  1.950e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958529/likelihoodResults_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.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) = 8498.429391
delta logL = -2.88890187221e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8498.42935139
delta logL = 1.07144769572e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8498.414     FROM MIGRAD    STATUS=CONVERGED    145 CALLS      328 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0107        6379.2        .20297E-02    .19088E-04
   2  Index         3.5983        5.2176        .30861E-02    .20482E-05
   3  Normalizat    1.2690        .22998        .30485E-03    .11039E-04
   4  Prefactor     .86503        .10282        .18266E-03    .12199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01075
  Index      = 3.59826
  Normalizat = 1.26897
  Prefactor  = 0.86503
 **********
 **   18 **HESSE 
 **********

 FCN=   8498.414     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0107        52.457        .81190E-04   -1.5424    
   2  Index         3.5983        3.4932        .12345E-03   -.28416    
   3  Normalizat    1.2690        .22963        .12194E-04   -.84497    
   4  Prefactor     .86503        .11354        .73062E-05   -.97374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5463e-12
Minuit parameter uncertainties:
  1  20.56
  2  3.9123
  3  0.229812
  4  0.113573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958529': 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) = 8498.41428959
delta logL = 0.0150725174371

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  2.011e+00  2.056e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  3.598e+00  3.912e+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.650e-01  1.136e-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:  1.269e+00  2.298e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/958529/cmap_HighResolution_579139201_579398401_4FGL_J1738.3+3228_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-18 01:59:26.115048', job_id='958529', GAL2='0.87', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1631955566.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.51e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1311' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 958529: <4FGL_J1738.3+3228_daily_bin1311> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1311> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 01:45:16 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:45:18 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:45:18 2021
Terminated at Sat Sep 18 01:59:26 2021
Results reported at Sat Sep 18 01:59:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1311 264.584 32.4823 579139201 579398401 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 :                                   833.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             338.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

