/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 5 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 = 7652
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1212.0-2326_daily_bin426
RA = 183.001, Dec = -23.4494
tmin = 349747201, tmax = 350006401
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='405164', job_status='RUN', time_executed='2021-09-05 03:45:48.475502', time_epoch_executed='1630838748.48' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405164

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405164/ft1_4FGL_J1212.0-2326_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405164/ft1_4FGL_J1212.0-2326_daily_bin426.fits outfile=/scratch/kocevski/405164/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin426.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=349747201.0 tmax=350006401.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.43
user 3.20
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.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/405164/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin426.fits evtable="EVENTS" outfile="/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/405164/ltcube_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.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/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits
.....................!
real 11.78
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/405164/ltcube_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits outfile=/scratch/kocevski/405164/expmap_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.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/405164/ltcube_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits
.....................!
real 191.04
user 184.82
sys 5.25

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits outfile=/scratch/kocevski/405164/cmap_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.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=183.001 yref=-23.4494 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits outfile=/scratch/kocevski/405164/cmap_HighResolution_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.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=183.001 yref=-23.4494 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405164/Model_4FGL_J1212.0-2326_daily_bin426.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/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits.....................!
real 67.77
user 66.37
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits', '/scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits', expMap='/scratch/kocevski/405164/expmap_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits', expCube='/scratch/kocevski/405164/ltcube_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405164/Model_4FGL_J1212.0-2326_daily_bin426.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405164/ft1_filtered_4FGL_J1212.0-2326_daily_bin426.fits
Spacecraft file(s): /scratch/kocevski/405164/ft2_4FGL_J1212.0-2326_daily_bin426.fits
Exposure map: /scratch/kocevski/405164/expmap_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits
Exposure cube: /scratch/kocevski/405164/ltcube_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405164/Model_4FGL_J1212.0-2326_daily_bin426.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) = 8241.60197209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0452       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .93595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6612       1.0000         .10000E-03   10000.    
     9 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0453       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.195       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0410       1.0000         .10000E-03   10000.    
    19 'norm      '    6.4491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9787       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1057       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8241.583     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2691 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0419        9.1174        .11282E-04   -.60971E-03
   2  Prefactor     .10000E-03    50.958       -.10851E-05** at limit **
   3  norm          .93616        1.1718        .17437E-06    .10012E-03
   4  Prefactor     .10000E-03    19.373        .39733E-06** at limit **
   5  Prefactor     .10000E-03    3.5881        .10308E-06** at limit **
   6  Prefactor     .10000E-03    41.847        .21433E-05** at limit **
   7  norm          .10000E-03    7.2238        .40465E-07** at limit **
   8  Prefactor     1.6519        27.553        .22918E-05    .14099E-04
   9  norm          .10000E-03    2.8370        .29051E-08** at limit **
  10  Prefactor     6.0456        4.9819        .13925E-06   -.24714E-03
  11  Prefactor     .10000E-03    27.053       -.27215E-05** at limit **
  12  Prefactor     .10000E-03    19.017        .35710E-06** at limit **
  13  Prefactor     .10000E-03    15.374       -.21338E-05** at limit **
  14  Prefactor     40.027        52.174       -.10694E-04   -.61306E-03
  15  Prefactor     22.991        20.055        .11848E-06   -.15456E-04
  16  Prefactor     11.195        5.9194        .70623E-08   -.21216E-04
  17  Prefactor     4.4041        2.0603        .17821E-09    .23760E-04
  18  Prefactor     6.0400        9.3316        .18686E-06   -.54108E-05
  19  norm          6.4490        1.4764        .15358E-07    .29688E-04
  20  Prefactor     .10000E-03    34.970        .93923E-06** at limit **
  21  norm          5.9785        5.0910       -.74256E-08   -.15785E-03
  22  Prefactor     .10000E-03    1.8968       -.11477E-08** at limit **
  23  Normalizat    1.1057        .22699       -.84364E-06   -.50032E-04
  24  Prefactor     1.0093        .11216        .31516E-06   -.18071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04192
  Prefactor  = 0.000100001
  norm       = 0.93616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.65195
  norm       = 0.0001
  Prefactor  = 6.0456
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 40.0274
  Prefactor  = 22.9907
  Prefactor  = 11.1948
  Prefactor  = 4.40412
  Prefactor  = 6.04004
  norm       = 6.44896
  Prefactor  = 0.0001
  norm       = 5.97851
  Prefactor  = 0.0001
  Normalizat = 1.1057
  Prefactor  = 1.00932
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.583     FROM HESSE     STATUS=OK           397 CALLS     3088 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0419        9.3659        .11625E-02   -1.5359    
   2  Prefactor     .10000E-03    51.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .93616        1.0364        .10590E-02   -1.5514    
   4  Prefactor     .10000E-03    19.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7434        .33562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.2294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6519        27.284        .32731E-03   -1.5451    
   9  norm          .10000E-03    2.8504        .14828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0456        4.9699        .16330E-03   -1.5216    
  11  Prefactor     .10000E-03    27.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.027        55.800        .63302E-04   -1.4442    
  15  Prefactor     22.991        20.053        .83537E-04   -1.4749    
  16  Prefactor     11.195        5.9229        .11974E-03   -1.5039    
  17  Prefactor     4.4041        2.0624        .85005E-04   -1.5288    
  18  Prefactor     6.0400        9.3242        .16336E-03   -1.5216    
  19  norm          6.4490        1.4762        .50549E-04   -1.5200    
  20  Prefactor     .10000E-03    35.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9785        5.0832        .16422E-03   -1.5219    
  22  Prefactor     .10000E-03    1.8999        .12195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1057        .26644        .35799E-03   -.89569    
  24  Prefactor     1.0093        .13305        .18896E-03   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16537e-09
Minuit parameter uncertainties:
  1  9.37037
  2  0.000398678
  3  1.03638
  4  5.72674e-05
  5  9.13197e-06
  6  0.000503866
  7  2.24466e-06
  8  13.434
  9  1.18091e-06
  10  4.97026
  11  0.000315802
  12  0.000134472
  13  0.000175349
  14  55.873
  15  20.059
  16  5.92321
  17  2.06247
  18  9.32646
  19  1.47621
  20  0.000250235
  21  5.08354
  22  2.55674e-06
  23  0.266765
  24  0.133096
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.753e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.009e+00  1.331e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.106e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405164/likelihoodResults_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.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) = 8241.58286094
delta logL = -0.0003105214073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8241.58255184
delta logL = -1.41185228131e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8241.583     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    64.645        .90712E-02** at limit **
   2  Index         1.9432        5.4096        .50000       -.13361E-04
   3  Normalizat    1.1057        .11415E-01    .80864E-01    .46721E-04
   4  Prefactor     1.0093        .58178E-02    .43410E-01    .51655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.94322
  Normalizat = 1.1057
  Prefactor  = 1.00932
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.583     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      239 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    335.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9432        8.6470        .50000       -.65777    
   3  Normalizat    1.1057        .26502E-01    .35799E-03   -.89569    
   4  Prefactor     1.0093        .13530E-01    .18896E-03   -.92420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29304e-10
Minuit parameter uncertainties:
  1  0.00149759
  2  18.2575
  3  0.0265026
  4  0.0135299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405164': 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) = 8241.58255029
delta logL = 1.37211827678e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.498e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.943e+00  1.826e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.009e+00  1.353e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.106e+00  2.650e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/405164/cmap_HighResolution_349747201_350006401_4FGL_J1212.0-2326_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-05 03:59:12.501406', job_id='405164', GAL2='1.01', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630839552.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='426' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 03:59:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 405164: <4FGL_J1212.0-2326_daily_bin426> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin426> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 03:45:27 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 03:45:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 03:45:28 2021
Terminated at Sun Sep  5 03:59:13 2021
Results reported at Sun Sep  5 03:59:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin426 183.001 -23.4494 349747201 350006401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

