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


Performing analysis on: 4FGL_J2234.2-4156_daily_bin1661
RA = 338.568, Dec = -41.9411
tmin = 669859201, tmax = 670118401
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='85270', job_status='RUN', time_executed='2022-03-28 00:41:35.531069', time_epoch_executed='1648453295.53' WHERE source_name='4FGL J2234.2-4156' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85270/ft1_4FGL_J2234.2-4156_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85270/ft1_4FGL_J2234.2-4156_daily_bin1661.fits outfile=/scratch/kocevski/85270/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1661.fits ra=338.568 dec=-41.9411 rad=12.0 tmin=669859201.0 tmax=670118401.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.63
user 3.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.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/85270/ft1_filteredMKT_4FGL_J2234.2-4156_daily_bin1661.fits evtable="EVENTS" outfile="/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.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.55
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85270/ltcube_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.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/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits
.....................!
real 11.91
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85270/ltcube_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits outfile=/scratch/kocevski/85270/expmap_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.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/85270/ltcube_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits
.....................!
real 191.41
user 185.76
sys 5.35

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

Setting source of interest to:
4FGL J2234.2-4156 @ 338.568 -41.9411

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits outfile=/scratch/kocevski/85270/cmap_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.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.568 yref=-41.9411 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits outfile=/scratch/kocevski/85270/cmap_HighResolution_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.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.568 yref=-41.9411 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85270/Model_4FGL_J2234.2-4156_daily_bin1661.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/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits.....................!
real 45.18
user 43.93
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits', '/scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits', expMap='/scratch/kocevski/85270/expmap_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits', expCube='/scratch/kocevski/85270/ltcube_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85270/Model_4FGL_J2234.2-4156_daily_bin1661.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2234.2-4156'

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  4.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/85270/ft1_filtered_4FGL_J2234.2-4156_daily_bin1661.fits
Spacecraft file(s): /scratch/kocevski/85270/ft2_4FGL_J2234.2-4156_daily_bin1661.fits
Exposure map: /scratch/kocevski/85270/expmap_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits
Exposure cube: /scratch/kocevski/85270/ltcube_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85270/Model_4FGL_J2234.2-4156_daily_bin1661.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) = 5492.04507768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8817       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.6891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5259       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.687       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.521       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0144       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46681       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    12.015       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
    29 'norm      '    .11071E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.8374       1.0000         .10000E-03   10000.    
    31 'norm      '    .47861E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5491.927     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     3264 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.928        .15230E-05** at limit **
   2  norm          2.8159        3.0960       -.36617E-06    .18846E-06
   3  Prefactor     5.8396        1.3693        .13162E-08    .10353E-02
   4  Prefactor     .10000E-03    3.8912       -.11428E-06** at limit **
   5  Prefactor     .10000E-03    137.67        .19772E-05** at limit **
   6  Prefactor     7.8765        8.0895       -.24747E-06   -.23731E-03
   7  Prefactor     .10001E-03    41.094       -.13802E-06** at limit **
   8  norm          5.6895        5.6631       -.40240E-06    .17676E-04
   9  Prefactor     .10000E-03    4.1025       -.17632E-06** at limit **
  10  Prefactor     .10000E-03    4.2597       -.22379E-06** at limit **
  11  Prefactor     .10000E-03    25.857        .16060E-06** at limit **
  12  Prefactor     4.5258        6.6155       -.94443E-07   -.48634E-05
  13  Prefactor     26.689        3.3702        .25239E-07   -.22428E-03
  14  Prefactor     .10000E-03    8.0582        .33401E-06** at limit **
  15  Prefactor     9.4961        2.2339        .75287E-07    .11693E-02
  16  Prefactor     14.406        2.5160       -.29271E-07    .11759E-02
  17  Prefactor     .10000E-03    29.447        .26928E-06** at limit **
  18  Prefactor     13.524        1.2022       -.26670E-08    .38584E-03
  19  Prefactor     4.3761        5.4743       -.25408E-06    .23064E-04
  20  Prefactor     3.9996        1.5265        .45432E-08    .23923E-03
  21  Prefactor     .10000E-03    14.366       -.19290E-05** at limit **
  22  Prefactor     .58344        28.242       -.24401E-06    .10443E-03
  23  norm          .10000E-03    3.3637        .17588E-06** at limit **
  24  norm          .10000E-03    1.7880       -.36577E-07** at limit **
  25  norm          .10000E-03    1.6150        .10095E-06** at limit **
  26  norm          12.017        1.3030        .15385E-07   -.55013E-03
  27  Prefactor     .10000E-03    2.7805       -.19215E-06** at limit **
  28  Prefactor     11.951        36.796       -.28728E-05   -.13006E-04
  29  norm          .10000E-03    3.1270        .30995E-06** at limit **
  30  Prefactor     6.8370        2.3085        .10508E-07    .14638E-02
  31  norm          .81082E-01    60.989        .62505E-05   -.15681E-04
  32  Normalizat    1.2148        .23961       -.70284E-06    .78351E-05
  33  Prefactor     .85197        .21424        .12830E-06    .70338E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.81593
  Prefactor  = 5.83962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87654
  Prefactor  = 0.000100007
  norm       = 5.6895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52579
  Prefactor  = 26.6892
  Prefactor  = 0.0001
  Prefactor  = 9.49614
  Prefactor  = 14.4059
  Prefactor  = 0.000100001
  Prefactor  = 13.5243
  Prefactor  = 4.3761
  Prefactor  = 3.99956
  Prefactor  = 0.0001
  Prefactor  = 0.58344
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.0168
  Prefactor  = 0.0001
  Prefactor  = 11.9506
  norm       = 0.0001
  Prefactor  = 6.83705
  norm       = 0.0810823
  Normalizat = 1.21477
  Prefactor  = 0.85197
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.927     FROM HESSE     STATUS=OK           777 CALLS     4041 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.908        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8159        3.0979        .60603E-02   -1.5372    
   3  Prefactor     5.8396        11.604        .41560E-02   -1.5225    
   4  Prefactor     .10000E-03    3.8773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    137.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8765        8.1445        .35706E-02   -1.5147    
   7  Prefactor     .10001E-03    42.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.6895        5.6634        .42102E-02   -1.5231    
   9  Prefactor     .10000E-03    4.0821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0396        .38049E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.826        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5258        6.9503        .47310E-02   -1.5282    
  13  Prefactor     26.689        22.147        .19387E-02   -1.4674    
  14  Prefactor     .10000E-03    8.0420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4961        30.746        .32521E-02   -1.5092    
  16  Prefactor     14.406        14.586        .26382E-02   -1.4949    
  17  Prefactor     .10000E-03    48.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.524        12.468        .27233E-02   -1.4972    
  19  Prefactor     4.3761        5.4875        .48140E-02   -1.5290    
  20  Prefactor     3.9996        110.20        .50319E-02   -1.5308    
  21  Prefactor     .10000E-03    14.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .58344        10.307        .11135       -1.5555    
  23  norm          .10000E-03    3.3588        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.017        11.083        .28892E-02   -1.5015    
  27  Prefactor     .10000E-03    2.7713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     11.951        36.461        .28769E-02   -1.5016    
  29  norm          .10000E-03    3.0969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.8370        12.226        .38360E-02   -1.5185    
  31  norm          .81082E-01    3.2967        .70829E-01   -1.5651    
  32  Normalizat    1.2148        .20644        .53921E-01   -.86148    
  33  Prefactor     .85197        .18044        .44392E-01   -.97840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9848e-08
Minuit parameter uncertainties:
  1  0.000146547
  2  3.09811
  3  11.6088
  4  1.6494e-08
  5  0.000196786
  6  8.14569
  7  0.00110653
  8  5.66393
  9  6.0174e-07
  10  3.5673e-07
  11  6.99041e-05
  12  6.95151
  13  22.1535
  14  1.38706e-06
  15  30.7975
  16  14.5897
  17  0.00042473
  18  12.4701
  19  5.48811
  20  42.0734
  21  3.34306e-05
  22  4.90505
  23  1.37819e-07
  24  9.29731e-08
  25  6.54497e-10
  26  11.085
  27  7.42803e-08
  28  36.5287
  29  1.18741e-07
  30  12.23
  31  1.03346
  32  0.206579
  33  0.180563
Done.

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

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  6.990e-05  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  1.992e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.215e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.568 -41.941
Photon Flux Upper Limit: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85270/likelihoodResults_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.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) = 5491.9269131
delta logL = -0.000183845357242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5491.92673105
delta logL = -1.80413826456e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13662E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2563       1.0000          .0000       10.000    
     3 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5491.927     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10313E-03    2.3868        .18142E-01** at limit **
   2  Index         2.1735        8.0961        .50000        .14601E-04
   3  Normalizat    1.2148        .16399E-02    .23842E-03    .85829E-06
   4  Prefactor     .85197        .15299E-02    .25916E-03   -.14345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103128
  Index      = 2.17352
  Normalizat = 1.21477
  Prefactor  = 0.85197
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.927     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10313E-03    52.197        .32631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1735        5.7029        .50000       -.60079    
   3  Normalizat    1.2148        .76314E-02    .95369E-05   -.86148    
   4  Prefactor     .85197        .71191E-02    .10367E-04   -.97840    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67758e-09
Minuit parameter uncertainties:
  1  0.0255781
  2  183.087
  3  0.00763139
  4  0.00711915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85270': 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): 102
logL (Free Index) = 5491.92672982
delta logL = -5.65793015994e-07

Extracting fit parameters...

4FGL J2234.2-4156
   Spectrum: PowerLaw
285    Prefactor:  1.031e-04  2.558e-02  1.000e-04  1.000e+04 ( 1.000e-14)
286        Index:  2.174e+00  1.831e+02  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.380e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.215e+00  7.631e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.568 -41.941

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/85270/cmap_HighResolution_669859201_670118401_4FGL_J2234.2-4156_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2022-03-28 00:54:25.300312', job_id='85270', GAL2='0.85', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1648454065.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-5.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1661' AND source_name='4FGL J2234.2-4156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:54:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 85270: <4FGL_J2234.2-4156_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2234.2-4156_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:33 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:35 2022
Terminated at Mon Mar 28 00:54:26 2022
Results reported at Mon Mar 28 00:54:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2234.2-4156_daily_bin1661 338.568 -41.9411 669859201 670118401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2234.2-4156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

