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


Performing analysis on: 4FGL_J2234.7+0943_daily_bin1604
RA = 338.691, Dec = 9.732
tmin = 655084801, tmax = 655344001
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='10675', job_status='RUN', time_executed='2021-10-08 00:27:42.789295', time_epoch_executed='1633678062.79' WHERE source_name='4FGL J2234.7+0943' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10675

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10675/ft1_4FGL_J2234.7+0943_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10675/ft1_4FGL_J2234.7+0943_daily_bin1604.fits outfile=/scratch/kocevski/10675/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1604.fits ra=338.691 dec=9.732 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.90
user 2.66
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.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/10675/ft1_filteredMKT_4FGL_J2234.7+0943_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/10675/ltcube_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.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/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits
.....................!
real 13.56
user 13.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/10675/ltcube_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits outfile=/scratch/kocevski/10675/expmap_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.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/10675/ltcube_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits
.....................!
real 191.30
user 185.91
sys 4.96

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

Setting source of interest to:
4FGL J2234.7+0943 @ 338.691 9.732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits outfile=/scratch/kocevski/10675/cmap_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.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=338.691 yref=9.732 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/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits outfile=/scratch/kocevski/10675/cmap_HighResolution_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.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=338.691 yref=9.732 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10675/Model_4FGL_J2234.7+0943_daily_bin1604.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/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits.....................!
real 34.38
user 33.14
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits', '/scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits', expMap='/scratch/kocevski/10675/expmap_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits', expCube='/scratch/kocevski/10675/ltcube_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10675/Model_4FGL_J2234.7+0943_daily_bin1604.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.7+0943'

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  3.256e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10675/ft1_filtered_4FGL_J2234.7+0943_daily_bin1604.fits
Spacecraft file(s): /scratch/kocevski/10675/ft2_4FGL_J2234.7+0943_daily_bin1604.fits
Exposure map: /scratch/kocevski/10675/expmap_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits
Exposure cube: /scratch/kocevski/10675/ltcube_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10675/Model_4FGL_J2234.7+0943_daily_bin1604.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) = 2403.47946899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2835       1.0000         .10000E-03   10000.    
     2 'norm      '    74.498       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    82.993       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40156       1.0000         .10000E-03   10000.    
    17 'Prefactor '    237.08       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24631E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3493       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75936       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2403.436     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2380 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2849        4.8215        .47278E-06    .11255E-03
   2  norm          74.497        50.757       -.77469E-06   -.20869E-04
   3  norm          .10000E-03    .51218        .18728E-06** at limit **
   4  Prefactor     12.780        37.709       -.98607E-06   -.96019E-05
   5  Prefactor     .10000E-03    10.349        .97867E-07** at limit **
   6  Prefactor     .10000E-03    173.37        .23344E-05** at limit **
   7  norm          10.502        9.4672       -.22439E-06   -.21459E-04
   8  Prefactor     25.981        45.106       -.19416E-05   -.13706E-04
   9  Prefactor     .10000E-03    14.853        .21798E-06** at limit **
  10  Prefactor     .50941        .63221        .74558E-07    .30293E-03
  11  Prefactor     .10000E-03    11.398       -.17425E-06** at limit **
  12  norm          .10000E-03    1.6417        .91042E-07** at limit **
  13  Prefactor     .10000E-03    63.203        .14796E-06** at limit **
  14  Prefactor     83.002        57.178       -.33275E-06    .35616E-05
  15  Prefactor     2.5859        461.84        .16628E-05   -.10193E-05
  16  Prefactor     .40038        .45786       -.86846E-07   -.62025E-03
  17  Prefactor     236.77        231.77       -.38947E-05   -.43644E-04
  18  Prefactor     .10000E-03    12.694       -.21467E-06** at limit **
  19  Prefactor     .10000E-03    42.563       -.17692E-05** at limit **
  20  Prefactor     .10020E-03    979.25       -.35356E-04** at limit **
  21  Normalizat    1.3498        .57325        .12255E-04   -.82697E-04
  22  Prefactor     .75899        .27035       -.76384E-05    .21982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.28489
  norm       = 74.4965
  norm       = 0.0001
  Prefactor  = 12.7798
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.5019
  Prefactor  = 25.981
  Prefactor  = 0.0001
  Prefactor  = 0.509406
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.0021
  Prefactor  = 2.58589
  Prefactor  = 0.400378
  Prefactor  = 236.768
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100196
  Normalizat = 1.34976
  Prefactor  = 0.75899
 **********
 **   18 **HESSE 
 **********

 FCN=   2403.436     FROM HESSE     STATUS=OK           338 CALLS     2718 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2849        4.7915        .14187E-03   -1.5406    
   2  norm          74.497        50.505        .46518E-04   -1.3980    
   3  norm          .10000E-03    .52523        .34287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.780        37.741        .11209E-03   -1.4993    
   5  Prefactor     .10000E-03    10.352        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    174.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.502        9.4721        .12364E-03   -1.5060    
   8  Prefactor     25.981        44.286        .78594E-04   -1.4688    
   9  Prefactor     .10000E-03    14.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50941        .60477        .33715E-04   -1.5565    
  11  Prefactor     .10000E-03    11.421        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6432        .61351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    63.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     83.002        57.098        .22046E-03   -1.3883    
  15  Prefactor     2.5859        451.26        .28937E-03   -1.5386    
  16  Prefactor     .40038        .44249        .29699E-04   -1.5581    
  17  Prefactor     236.77        232.18        .13146E-03   -1.2618    
  18  Prefactor     .10000E-03    12.699        .17064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10020E-03    1047.3        .20033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3498        .59169        .33557E-03   -.82093    
  22  Prefactor     .75899        .27895        .22069E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06594e-10
Minuit parameter uncertainties:
  1  4.79227
  2  50.5341
  3  2.79966e-06
  4  37.8116
  5  6.49272e-06
  6  0.000785563
  7  9.47348
  8  44.3425
  9  1.83273e-05
  10  0.604778
  11  1.41758e-05
  12  3.45458e-06
  13  3.97925e-05
  14  57.1357
  15  68.8526
  16  0.442496
  17  233.088
  18  2.10022e-05
  19  0.000294083
  20  0.0291487
  21  0.594715
  22  0.279471
Done.

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

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.418e-05  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.408e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.590e-01  2.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.350e+00  5.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.691 9.732
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10675/likelihoodResults_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.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) = 2403.43683889
delta logL = -0.000414504204855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2403.43642475
delta logL = -3.63746949006e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .94609       1.0000          .0000       10.000    
     3 'Normalizat'    1.3493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75921       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2403.436     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6221.2        .90712E-02** at limit **
   2  Index1        .95153        8.3844        .45590       -.17214E-05
   3  Normalizat    1.3498        .33391        .75820E-01   -.23106E-06
   4  Prefactor     .75899        .17150        .43184E-01    .12703E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.951533
  Normalizat = 1.34977
  Prefactor  = 0.758987
 **********
 **   18 **HESSE 
 **********

 FCN=   2403.436     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.966        .16171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .95153        5.2376        .50000       -.94363    
   3  Normalizat    1.3498        .52809        .33555E-03   -.82093    
   4  Prefactor     .75899        .27144        .22069E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.625e-12
Minuit parameter uncertainties:
  1  1.72248e-06
  2  3.13161
  3  0.530231
  4  0.27192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10675': 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) = 2403.43642438
delta logL = 6.28369889455e-09

Extracting fit parameters...

4FGL J2234.7+0943
   Spectrum: PLSuperExpCutoff2
279    Prefactor:  1.000e-04  1.722e-06  1.000e-04  1.000e+04 ( 1.000e-12)
280       Index1:  9.515e-01  3.132e+00  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.647e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
282    Expfactor:  1.040e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
283       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  7.590e-01  2.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.350e+00  5.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.691 9.732

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/10675/cmap_HighResolution_655084801_655344001_4FGL_J2234.7+0943_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-10-08 00:34:47.007964', job_id='10675', GAL2='0.76', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1633678487.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='6.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='0.94' WHERE bin_id='1604' AND source_name='4FGL J2234.7+0943' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:34:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 10675: <4FGL_J2234.7+0943_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2234.7+0943_daily_bin1604> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct  8 00:25:16 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:25:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:25:20 2021
Terminated at Fri Oct  8 00:34:47 2021
Results reported at Fri Oct  8 00:34:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.7+0943_daily_bin1604 338.691 9.732 655084801 655344001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.7+0943 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   426.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             263.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            571 sec.

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

